Skip to main content
Pixi can be configured globally using configuration files. These settings affect all pixi commands and workspaces on your system.

Configuration Locations

Pixi looks for configuration files in multiple locations, loaded in this order (later overrides earlier):
  1. System configuration (platform-dependent)
  2. Global configuration (user-level)
  3. Local configuration (workspace-level)
  4. Environment variables
  5. CLI arguments

Global Configuration Paths

Local Configuration

Configuration Format

Configuration files use TOML format:

Configuration Options

default-channels

array
default:"[\"conda-forge\"]"
Default conda channels to use when channels are not specified in the workspace.
Can also be set via:

tls-no-verify

boolean
default:"false"
Disable TLS certificate verification. Use with caution!
Disabling TLS verification is insecure and should only be used for testing or in controlled environments.

authentication-override-file

path
Override the default authentication credentials file location.Default: ~/.rattler/credentials.json
Can also use environment variable:

change-ps1

boolean
default:"true"
Whether to modify the shell prompt (PS1) when activating an environment.

detached-environments

path
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]

object
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]

object
HTTP/HTTPS proxy configuration.
Can also use environment variables:

PyPI Configuration

[pypi-config]

object
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 package
  • unsafe-first-match - Use first match across all indexes
  • unsafe-best-match - Use best version across all indexes

no-binary

Don’t use pre-built wheels:
Or disable all binaries:

no-build

Don’t build from source:

prerelease-mode

Handle pre-release versions:
  • disallow (default) - Don’t use pre-releases
  • allow - Allow pre-releases
  • if-necessary - Use pre-releases if needed
  • explicit - Only use explicitly requested pre-releases

Repodata Configuration

[repodata-config]

object
Control how channel repodata is fetched and cached.
JLAP provides incremental updates to repodata, reducing bandwidth usage.

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