Configuration

ANT is configured with environment variables. Copy .env.example to .env, set an API key, and then add only the host-specific options you need.

Required

VariableDefaultDescription
ANT_API_KEYrequired for external callersSecret key for CLI, REST, and WebSocket access. Generate one with openssl rand -hex 32.

Server binding

VariableDefaultDescription
ANT_PORT6458HTTP/WebSocket server port.
ANT_HOST0.0.0.0Server bind address.
ANT_SERVER_URLderived from requestPublic URL used in share links, CLI instructions, and prompt injection helpers.
PORTfalls back to ANT_PORTAlternative port variable for platform hosts.
HOSTfalls back to ANT_HOSTAlternative host variable for platform hosts.

Security and network access

VariableDefaultDescription
ANT_TAILSCALE_ONLYfalseWhen true, restrict API requests to Tailscale addresses.
ANT_ALLOW_LOOPBACKtrueAllow loopback requests when Tailscale-only mode is enabled.
ANT_TLS_CERTunsetPath to a TLS certificate for built-in HTTPS.
ANT_TLS_KEYunsetPath to the TLS private key for built-in HTTPS.

Data and workspace paths

VariableDefaultDescription
ANT_DATA_DIR~/.ant-v3Directory for ANT database and local operational state.
ANT_ROOT_DIRunsetOptional root directory for project browsing and launch contexts.
ANT_OBSIDIAN_VAULTauto-detected local defaultObsidian vault path for session exports, docs, and capture output.
ANT_QUICK_LAUNCH_FILE~/.ant/quick-launch.jsonLocal quick-launch preset file for terminal command buttons.

Limits

VariableDefaultDescription
ANT_MAX_ACTIVE_AGENTS0Advisory active-agent cap. 0 means unlimited.

Example .env

# Required for external API/CLI access
ANT_API_KEY=change-me-to-a-long-random-secret
# Server binding
ANT_PORT=6458
ANT_HOST=0.0.0.0
ANT_SERVER_URL=https://ant.example.com
# Optional local paths
ANT_DATA_DIR=/Users/you/.ant-v3
ANT_ROOT_DIR=/Users/you/projects
ANT_OBSIDIAN_VAULT=/Users/you/Notes

Security note

Never commit .env or API keys. Prefer Tailscale or another private network for personal deployments, and rotate ANT_API_KEY if it is exposed.