Skip to main content
Pixi respects various environment variables that control its behavior. This page documents all environment variables recognized by pixi.

Global Behavior

PIXI_COLOR

enum
default:"auto"
Controls colored output in the terminal.Values:
  • auto - Automatically detect if colors are supported
  • always - Always use colors
  • never - Never use colors
Can also be set via --color flag.

PIXI_NO_PROGRESS

boolean
default:"false"
Hide all progress bars. Always enabled if stderr is not a terminal.
Can also be set via --no-progress flag.

PIXI_NO_WRAP

boolean
default:"false"
Disable line wrapping in error messages. Useful in CI environments.

Lock File Behavior

PIXI_FROZEN

boolean
default:"false"
Install the environment as defined in the lockfile without updating it.
Can also be set via --frozen flag.

PIXI_LOCKED

boolean
default:"false"
Check if lockfile is up-to-date before installing. Aborts if lockfile is outdated.
Can also be set via --locked flag.

Pixi Home Directory

PIXI_HOME

path
Override the default pixi home directory where global installations and manifests are stored.Default locations:
  • Linux: ~/.pixi
  • macOS: ~/Library/Application Support/pixi
  • Windows: %USERPROFILE%\.pixi

Cache and Storage

PIXI_CACHE_DIR

path
Override the default cache directory.Default locations:
  • Linux: ~/.cache/rattler
  • macOS: ~/Library/Caches/rattler
  • Windows: %LOCALAPPDATA%\rattler\Cache

Authentication

RATTLER_AUTH_FILE

path
Override the default location for authentication credentials.Default: ~/.rattler/credentials.json

Network and Proxy

HTTP_PROXY / HTTPS_PROXY

url
HTTP/HTTPS proxy server to use for network requests.

NO_PROXY

string
Comma-separated list of hosts to exclude from proxying.

Conda and Rattler

CONDA_PREFIX

path
Set by pixi when activating an environment. Points to the active environment directory.Read by pixi: This is set automatically by pixi and used by tools to detect the active environment.

CONDA_DEFAULT_ENV

string
Name of the active conda environment. Set automatically by pixi.

Pixi-Specific Runtime Variables

These variables are set by pixi when running tasks or activating environments.

PIXI_ENVIRONMENT_NAME

string
Name of the currently active pixi environment. Set by pixi during pixi run and pixi shell.

PIXI_WORKSPACE_ROOT

path
Root directory of the pixi workspace. Set during task execution.

PIXI_WORKSPACE_MANIFEST

path
Path to the workspace manifest file (pixi.toml or pyproject.toml).

PIXI_WORKSPACE_VERSION

string
Version of the workspace from the manifest.

PIXI_WORKSPACE_NAME

string
Name of the workspace from the manifest.

CI/CD Environment

CI

boolean
Detected by pixi to adjust behavior in CI environments.Values: 1, true (case-insensitive)Effects:
  • Disables line wrapping in error messages
  • Adjusts progress bar behavior

Editor Configuration

EDITOR

string
default:"nano (Unix) / notepad (Windows)"
Default editor for pixi config edit.

Logging and Debugging

RUST_LOG

string
Control pixi’s internal logging level. Useful for debugging.Levels: error, warn, info, debug, trace

RUST_BACKTRACE

enum
Show backtraces for errors.Values:
  • 0 - No backtrace
  • 1 - Short backtrace
  • full - Full backtrace

Build System

CARGO_TARGET_DIR

path
Override Rust build output directory. Can be set in pixi.toml activation.

Shell Integration

_PIXI_PROMPT

string
Set by pixi shell on Windows to customize the command prompt.Format: (pixi:{environment_name}) $P$G

Example: CI Configuration

Typical CI environment variable setup:

Example: Custom Cache Location

Use a shared cache location:

Environment Variables in Tasks

You can use environment variables in your pixi tasks: