Configuration Locations
Pixi looks for configuration files in multiple locations, loaded in this order (later overrides earlier):- System configuration (platform-dependent)
- Global configuration (user-level)
- Local configuration (workspace-level)
- Environment variables
- CLI arguments
Global Configuration Paths
Linux
Linux
macOS
macOS
Windows
Windows
Local Configuration
Configuration Format
Configuration files use TOML format:Configuration Options
default-channels
Default conda channels to use when channels are not specified in the workspace.Can also be set via:
tls-no-verify
Disable TLS certificate verification. Use with caution!
authentication-override-file
Override the default authentication credentials file location.Default: Can also use environment variable:
~/.rattler/credentials.jsonchange-ps1
Whether to modify the shell prompt (PS1) when activating an environment.
detached-environments
Directory to store environments outside workspace directories.Useful for:
- Shared environments across workspaces
- Network storage
- Faster rebuilds (keep environments between git clones)
Network Configuration
[mirrors]
Configure channel mirrors for faster downloads or local caching.Pixi will try mirrors in order, falling back to the original if mirrors fail.
[proxy-config]
HTTP/HTTPS proxy configuration.Can also use environment variables:
PyPI Configuration
[pypi-config]
PyPI index and package installation configuration.
index-url
Primary PyPI index:
extra-index-urls
Additional PyPI indexes:
index-strategy
How to search multiple indexes:
first-index(default) - Only search first index that has the packageunsafe-first-match- Use first match across all indexesunsafe-best-match- Use best version across all indexes
no-binary
Don’t use pre-built wheels:
no-build
Don’t build from source:
prerelease-mode
Handle pre-release versions:
disallow(default) - Don’t use pre-releasesallow- Allow pre-releasesif-necessary- Use pre-releases if neededexplicit- Only use explicitly requested pre-releases
Repodata Configuration
[repodata-config]
Control how channel repodata is fetched and cached.
Complete Example
Here’s a complete configuration file with common settings:Managing Configuration
View Configuration
Edit Configuration
Set Values
Configuration Scopes
Use Cases
Corporate Environment
Development Machine
CI/CD Server
Related
pixi config- Manage configuration- Environment Variables - Environment-based configuration
- CLI Options - Command-line configuration