> ## Documentation Index
> Fetch the complete documentation index at: https://docs.actual.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Configuration keys

> Every key the Actual CLI reads from its config file, with its type, default and effect.

The Actual CLI reads its settings from one YAML file, which it creates the first time it runs. Every key is optional, and a missing key takes the default below. Most teams never edit it: the plugin runs the CLI with these defaults.

## Keys

`actual config set` takes each key as written here, with a dot for a nested key (`telemetry.enabled`). The one exception is `max_tokens`, which you set by editing the file.

| Key | Type | Default | What it does |
| - | - | - | - |
| `runner` | string | unset | Pins every command to one runner: `claude-cli`, `anthropic-api`, `openai-api`, `codex-cli` or `cursor-cli`. `--runner` overrides it for one run. Unset, a configured `model` picks the runners that can serve it; with neither set, the checks try `claude-cli` and then `anthropic-api` (inside Codex, `codex-cli`, `openai-api`, `claude-cli`, then `anthropic-api`), and `actual adr-bot` detects one. |
| `model` | string | unset | The model every runner uses, such as `sonnet`, `opus`, `haiku` or `gpt-5.2`. `--model` overrides it for one run. Unset, the Claude runners use Sonnet, `openai-api` uses `gpt-5.2`, and `codex-cli` and `cursor-cli` leave the choice to their own CLI. `actual config set` warns about a name `actual models` doesn't list. |
| `anthropic_api_key` | string | unset | Anthropic key for `anthropic-api`, used when `ANTHROPIC_API_KEY` isn't set. |
| `openai_api_key` | string | unset | OpenAI key for `openai-api` and `codex-cli`, used when `OPENAI_API_KEY` isn't set. |
| `cursor_api_key` | string | unset | Cursor key for `cursor-cli`, used when `CURSOR_API_KEY` isn't set. |
| `max_budget_usd` | number | unset | Spending cap in US dollars for each model call. Only `claude-cli` enforces it; the other runners take no per-request cap. |
| `invocation_timeout_secs` | integer | `600` | Seconds one model call may take before it times out. The checks cap their own calls lower than this. |
| `max_turns` | integer | `10` | Most agentic turns in one `actual adr-bot` tailoring call on `claude-cli`. |
| `max_tokens` | integer | `16384` | Most output tokens in one `anthropic-api` response. Raise it when responses come back cut off. |
| `rules_min_score` | number | unset | The score a rule document must reach before `actual rules select` returns it or `actual rules brief` briefs it. Unset or `0` means no floor. A floor set for one repository with `--repo` wins over this one, and `--min-score` overrides both. |
| `output_format` | string | `claude-md` | The file `actual adr-bot` writes: `claude-md` (`CLAUDE.md`), `agents-md` (`AGENTS.md`) or `cursor-rules` (`.cursor/rules/actual-policies.mdc`). |
| `batch_size` | integer | `15` | ADRs in each `actual adr-bot` tailoring batch. |
| `concurrency` | integer | `10` | Projects `actual adr-bot` tailors at once. |
| `include_categories` | list | unset | ADR categories `actual adr-bot` always includes. `config set` takes them comma-separated. |
| `exclude_categories` | list | unset | ADR categories `actual adr-bot` always leaves out. |
| `include_general` | boolean | unset | Whether `actual adr-bot` includes general, language-agnostic ADRs. Unset leaves it to Actual AI. |
| `max_per_framework` | integer | unset | Most ADRs `actual adr-bot` fetches for each framework. |
| `api_url` | string | `https://api-service.api.prod.actual.ai` | The Actual AI API that `actual adr-bot` fetches ADRs from and telemetry goes to. Signed-in commands such as `actual adr` and `actual advisor` read [`ACTUAL_API_URL`](https://docs.actual.ai/cli/environment-variables) instead. |
| `telemetry.enabled` | boolean | `true` | `false` stops every telemetry event, as `ACTUAL_NO_TELEMETRY` does. See [Privacy and telemetry](https://docs.actual.ai/resources/privacy-and-telemetry.md). |
| `telemetry.otlp_logs_endpoint` | string | `/v1/logs` on `api_url` | The OTLP/HTTP logs URL for ADR, check and session-end events, used as written: HTTPS, or plain HTTP only to `localhost`, `127.0.0.1` or `[::1]`. `ACTUAL_OTLP_LOGS_ENDPOINT` overrides it. |
| `telemetry.otlp_file` | string | unset | An absolute path to a local file that gets each of those event requests appended, one per line. `ACTUAL_OTLP_FILE` overrides it. |
| `update_check.enabled` | boolean | `true` | `false` turns off the daily update notice and `actual version --check`, as `ACTUAL_NO_UPDATE_CHECK` does. |

`batch_size`, `concurrency`, `max_turns`, `max_per_framework` and `invocation_timeout_secs` must be at least 1, `max_budget_usd` must be above zero, and `rules_min_score` can't be negative. `config set` refuses a value outside those limits, or one of the wrong type, and leaves the file as it was.

The file also holds state the CLI writes for itself: the per-repository floors that `--repo` sets, ADRs you rejected in `actual adr-bot`, the repository `actual advisor` remembers for each checkout, and `actual adr-bot`'s cached analysis and tailoring. `actual cache clear` clears the caches.

## The config file

The file is `~/.actualai/actual/config.yaml`, created on first run and readable by your user only (mode `0600`). `actual config path` prints where it is.

Two environment variables move it. `ACTUAL_CONFIG` names the exact file and `ACTUAL_CONFIG_DIR` names the directory that holds `config.yaml`; both take an absolute path, and `ACTUAL_CONFIG` wins when both are set. The same directory holds your Actual AI sign-in (`credentials.yaml`) and the CLI's caches, so moving it moves them too. See [Environment variables](https://docs.actual.ai/cli/environment-variables.md).

## View and change settings

`actual config show` prints the file. It prints any API key as `[redacted]` and reminds you that keys sit in the file as plain text, so prefer the environment variables for keys.

`actual config set <key> <value>` changes one key and prints what it set. There's no unset command: an empty value clears `telemetry.otlp_logs_endpoint`, `telemetry.otlp_file`, `include_categories` and `exclude_categories`, and you clear any other key by deleting its line from the file.

`--repo` stores a value for the repository whose checkout you're in instead of for every repository. It works for `rules_min_score` alone, since a useful floor depends on how a repository's rules are written, and `config set` refuses `--repo` with any other key.

```bash theme={null}
actual config set runner anthropic-api
actual config set telemetry.enabled false
actual config set --repo rules_min_score 1.5   # this repository only
actual config show
```

## Example

A config file that pins the Anthropic API runner, caps spending and turns telemetry off:

```yaml theme={null}
runner: anthropic-api
model: claude-sonnet-4-6
output_format: claude-md
max_budget_usd: 0.50
telemetry:
  enabled: false
```

The [`actual config`](https://docs.actual.ai/cli/config) reference lists the command's options, and [`actual runners`](https://docs.actual.ai/cli/runners) lists the five runners and what each one needs.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.