Configure the CLI
Configuration file
Section titled “Configuration file”AnyCap stores configuration under ~/.anycap/config.toml by default.
anycap config showanycap config get <key>anycap config set <key> <value>anycap config unset <key>Common settings:
| Key | Purpose | Default |
|---|---|---|
endpoint |
AnyCap server URL | AnyCap production API |
auto_update |
Check CLI updates on launch | true |
feedback |
Enable direct feedback commands | true |
Custom config directory
Section titled “Custom config directory”Use ANYCAP_CONFIG_DIR when the home directory is read-only, ephemeral, or intentionally isolated:
export ANYCAP_CONFIG_DIR=./.anycapanycap statusRelative paths are resolved to absolute paths. The directory contains CLI state, credentials or keyring fallback data, and update markers. Do not commit it.
Endpoint override
Section titled “Endpoint override”Set the endpoint for one command:
anycap --endpoint https://example.internal statusOr persist it:
anycap config set endpoint https://example.internalMachine-readable output
Section titled “Machine-readable output”Commands write one final JSON document to stdout. Use normal shell redirection or jq; do not wrap MCP stdio with scripts that print banners to stdout.