Settings Generator

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:

Add what you need

Show all 155 optionsEvery env var + JSON field, by category — skip anything you don't need
Model & Sampling14

Read the docs↗

→ afk.envdocs↗

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.

→ afk.env

Extended thinking: adaptive lets afk decide per turn, enabled:max always thinks, disabled turns it off. Custom accepts a token budget.

→ afk.env

Reasoning-effort level for providers that expose one.

Advanced options
→ afk.env

TTL for Anthropic prompt-cache blocks.

→ afk.env

Deprecated and ignored by the generation path. Use AFK_MAX_OUTPUT_TOKENS to cap per-response output tokens.

→ afk.env

Cap on output tokens per turn. Falls back to the provider default when unset.

→ afk.config.json

Token cap written to afk.config.json.

→ afk.config.json

Sampling temperature. Leave unset to use the provider default.

→ afk.env

Hard spend ceiling for a single run, in USD. The run stops when it is reached.

→ afk.env

Comma-separated override for image (vision) capability detection on the openai-compatible provider.

→ afk.env

Legacy alias for AFK_MODEL, kept for pre-AFK_* deployments. Prefer AFK_MODEL.

→ afk.env

Disable Anthropic prompt caching when set to 1/true/yes/on.

→ afk.env

Numeric temperature override for model sampling.

→ afk.config.json

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

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 setupafk doctor

    Health check across auth, config, provider reachability and state directories.

  • Sign inafk login

    Interactive auth. Browser OAuth cannot happen in a config file — use this instead of pasting a token.

  • Connect Telegramafk telegram setup

    Walks token entry and the chat allowlist without the token passing through anything else. Then afk telegram start.

  • Keep it runningafk service install

    Installs a launchd agent (macOS) or systemd --user unit (Linux) so the bot and daemon survive reboot.

  • Schedule recurring workafk schedule add

    Cron-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 laterafk config set <key> <value>

    You do not need this page again — afk config get/set edits both artifacts in place.