Skip to content

Configure the CLI

AnyCap stores configuration under ~/.anycap/config.toml by default.

Terminal window
anycap config show
anycap 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

Use ANYCAP_CONFIG_DIR when the home directory is read-only, ephemeral, or intentionally isolated:

Terminal window
export ANYCAP_CONFIG_DIR=./.anycap
anycap status

Relative paths are resolved to absolute paths. The directory contains CLI state, credentials or keyring fallback data, and update markers. Do not commit it.

Set the endpoint for one command:

Terminal window
anycap --endpoint https://example.internal status

Or persist it:

Terminal window
anycap config set endpoint https://example.internal

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.