Configure ~/.afk/ without reading the docs.
Pick what you need. Copy the output. Paste it once.
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 155 optionsEvery env var + JSON field, by category — skip anything you don't need
Model & Sampling14
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.
Disable Anthropic prompt caching when set to 1/true/yes/on.
Numeric temperature override for model sampling.
Default model id / alias.
Model Slots & Local Models16
Provider & Endpoints6
API Keys5
Safety & Permissions10
System Prompt2
Telegram14
Daemon8
Auto-routing6
Interactive & UI22
Worktrees11
Browser Control7
Session & Context18
Paths4
Updates1
Debug & Diagnostics11
{}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.