Settings Generator
Configure ~/.afk/ without reading the docs.
Pick what you need. Copy the output. Paste it once. Generates ~/.afk/config/afk.config.json and ~/.afk/config/afk.env.
Your input never leaves your browser. No analytics, no telemetry, and zero third-party scripts. The generator runs entirely client-side and makes no network requests. Verify it yourself: open DevTools → Network and reload.
Quick setup: covers 80% of installs
I want to run AFK with using .My ANTHROPIC_API_KEY:
Show all 241 optionsEvery env var + JSON field, by category — skip anything you don't need
Model & Sampling33
Default model for agent turns. Tier names (small/medium/large/local) follow whatever that slot is bound to; sonnet/opus/haiku/fable pin one fixed model. Defaults to the medium tier.
Extended thinking: adaptive lets afk decide per turn, enabled:max always thinks, disabled turns it off. Custom accepts a token budget.
Reasoning-effort level for providers that expose one.
Advanced options
TTL for Anthropic prompt-cache blocks.
Deprecated and ignored by the generation path. Use AFK_MAX_OUTPUT_TOKENS to cap per-response output tokens.
Cap on output tokens per turn. Falls back to the provider default when unset.
Token cap written to afk.config.json.
Sampling temperature. Leave unset to use the provider default.
Hard spend ceiling for a single run, in USD. The run stops when it is reached.
Comma-separated override for image (vision) capability detection on the openai-compatible provider.
Legacy alias for AFK_MODEL, kept for pre-AFK_* deployments. Prefer AFK_MODEL.
Experimental streaming connection retry wall budget in milliseconds.
Disable the temporary within-turn context pressure guard (1/true/yes/on).
Temporary within-turn context guard operational threshold as percent of the effective provider-route limit (catalog metadata for subscription routes; contextLimitFor() for API-k…
Disable Anthropic prompt caching when set to 1/true/yes/on.
Maximum number of simultaneously-running agents across the entire session tree.
Maximum number of child agents a single agent may have running concurrently (per-agent concurrent child cap).
Maximum sub-agent/skill nesting depth; 0 disables nested delegation entirely (the agent, skill, AND compose tools all refuse).
Maximum total agents spawned across the entire session tree (lifetime, not concurrent).
Byte threshold for delegation tool results (agent/compose/skill).
Bypass the process-wide rate-limit admission gate (issue #941).
Jitter ceiling (ms) for the rate-limit admission bucket: each waiter at a window boundary wakes at reset + random(0..ceiling) to avoid re-storming the API.
When set to 1/true, forked sub-agents that hit an OAuth usage-limit 429 will park and wait (up to 2 hours) for a keychain account hot-swap before surfacing the error — the same…
Foreground subagent result size cap in bytes.
Enable LLM-generated empty-prompt suggestions — a proposed next action shown as ghost text when the prompt is blank, accepted with Tab or Right-arrow.
Numeric temperature override for model sampling.
Set to 1 to stop publishing/reading the cross-process usage ledger (namespace `usage` in state/kv/kv.db).
Disable the shared agent workspace (WorkspaceStore + workspace_publish/workspace_query tools + preamble injection).
Base URL for xAI API-key mode.
Override the semver sent as x-grok-client-version to the xAI OAuth CLI chat proxy.
Base URL for xAI SuperGrok / SuperGrok Heavy / X Premium+ OAuth inference.
Default model id / alias.
Standard OpenAI SDK base URL override.
Model Slots & Local Models16
Provider & Endpoints5
API Keys7
Safety & Permissions24
System Prompt2
Telegram15
Daemon15
Auto-routing5
Interactive & UI56
Worktrees12
Browser Control7
Session & Context18
MCP Servers1
Paths5
Updates1
Debug & Diagnostics19
{}Choose options on the left — your config builds here as you go.
Fill in at least one field above and the install commands appear here.
Beyond this form
This page writes two files: afk.config.json and afk.env. These parts of setup live in the CLI, where they belong.
- Check your setup
afk doctorHealth check across auth, config, provider reachability and state directories.
- Sign in
afk loginInteractive auth. Browser OAuth cannot happen in a config file. Use this instead of pasting a token.
- Connect Telegram
afk telegram setupWalks token entry and the chat allowlist without the token passing through anything else. Then afk telegram start.
- Keep it running
afk service installInstalls a launchd agent (macOS) or systemd --user unit (Linux) so the bot and daemon survive reboot.
- Schedule recurring work
afk schedule addCron-driven tasks in schedules.json. afk schedule list / logs to inspect runs.
- Add MCP servers
Edit ~/.afk/config/mcp.json by hand. A repo-local .mcp.json also works, but is fail-closed: set AFK_ALLOW_PROJECT_MCP above to opt in, because it spawns that repo’s commands.
- Give afk project context
Run /init inside the REPL to generate an AFK.md for the repo. It is the highest-leverage file you can add.
- Change one key later
afk config set <key> <value>You do not need this page again. afk config get/set edits both artifacts in place.