Global Behavior
PIXI_COLOR
Controls colored output in the terminal.Values:Can also be set via
auto- Automatically detect if colors are supportedalways- Always use colorsnever- Never use colors
--color flag.PIXI_NO_PROGRESS
Hide all progress bars. Always enabled if stderr is not a terminal.Can also be set via
--no-progress flag.PIXI_NO_WRAP
Disable line wrapping in error messages. Useful in CI environments.
Lock File Behavior
PIXI_FROZEN
Install the environment as defined in the lockfile without updating it.Can also be set via
--frozen flag.PIXI_LOCKED
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
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
Override the default cache directory.Default locations:
- Linux:
~/.cache/rattler - macOS:
~/Library/Caches/rattler - Windows:
%LOCALAPPDATA%\rattler\Cache
Authentication
RATTLER_AUTH_FILE
Override the default location for authentication credentials.Default:
~/.rattler/credentials.jsonNetwork and Proxy
HTTP_PROXY / HTTPS_PROXY
HTTP/HTTPS proxy server to use for network requests.
NO_PROXY
Comma-separated list of hosts to exclude from proxying.
Conda and Rattler
CONDA_PREFIX
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
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
Name of the currently active pixi environment. Set by pixi during
pixi run and pixi shell.PIXI_WORKSPACE_ROOT
Root directory of the pixi workspace. Set during task execution.
PIXI_WORKSPACE_MANIFEST
Path to the workspace manifest file (pixi.toml or pyproject.toml).
PIXI_WORKSPACE_VERSION
Version of the workspace from the manifest.
PIXI_WORKSPACE_NAME
Name of the workspace from the manifest.
CI/CD Environment
CI
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
Default editor for
pixi config edit.Logging and Debugging
RUST_LOG
Control pixi’s internal logging level. Useful for debugging.Levels:
error, warn, info, debug, traceRUST_BACKTRACE
Show backtraces for errors.Values:
0- No backtrace1- Short backtracefull- Full backtrace
Build System
CARGO_TARGET_DIR
Override Rust build output directory. Can be set in pixi.toml activation.
Shell Integration
_PIXI_PROMPT
Set by pixi shell on Windows to customize the command prompt.Format:
(pixi:{environment_name}) $P$GExample: 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:Related Configuration
- Configuration File - File-based configuration
- CLI Options - Command-line options
- pixi config - Manage configuration