apix

Configuration

Customize apix behavior, sources, and environment variables.

Config File

apix reads its configuration from ~/.apix/config.toml. Running apix init creates this file with sensible defaults.

color = true
pager = ""
auto_update = true
auto_update_ttl_seconds = 21600
sources = [".local", "core"]

[registry]
remote = "https://github.com/apix-sh/vault.git"

Options

KeyTypeDefaultDescription
colorbooltrueEnable colored output
pagerstring""Custom pager command (fallback: less -FRX)
auto_updatebooltrueAuto-refresh registry on search
auto_update_ttl_secondsint21600Seconds between auto-updates (0 disables)
sourceslist[".local", "core"]Source priority order
registry.remotestringGitHub vault URLDefault registry remote

Adding Third-Party Sources

Register a custom vault repository:

[source.acme]
remote = "https://github.com/acme/apix-vaults.git"

Then update your source priority:

sources = [".local", "core", "acme"]

Private Repositories

apix uses your system's git command for all vault operations. This means it automatically inherits your local Git authentication (SSH keys, credential managers, or tokens). You can maintain and use private API vaults as long as your local Git has the rights to access them.

Or manage sources with the CLI:

apix source add acme --remote https://github.com/acme/apix-vaults.git
apix source list

Environment Variables

Environment variables override their config file counterparts:

VariableOverridesDescription
APIX_HOME~/.apixHome directory path
APIX_REGISTRY_URLregistry.remoteDefault registry remote URL
APIX_AUTO_UPDATEauto_updateEnable/disable auto-update
APIX_AUTO_UPDATE_TTL_SECONDSauto_update_ttl_secondsAuto-update interval
APIX_SOURCESsourcesComma-separated source priority
NO_COLORcolorDisable color output
PAGERpagerPager command

Stateless by design

apix does not store global HTTP state, default headers, or credentials in the config file. Authentication must be passed explicitly to each apix call invocation. This ensures predictable, side-effect-free execution — especially important for agent workflows.

Directory Layout

~/.apix/
├── config.toml           # Configuration file
└── vaults/
    ├── .local/           # Locally imported APIs
    │   └── <namespace>/
    │       └── <version>/
    ├── core/             # Public curated registry
    │   ├── registry.json
    │   └── <namespace>/
    └── <custom-source>/  # Third-party registries
        ├── registry.json
        └── <namespace>/

On this page