Dive

Reference

config.toml

File typeLocation
TOML~/.config/dive/config.toml (global)
./.dive/config.toml (project; its values win)

Secret references

A string value can include ${NAME} references, such as api_key = "${ANTHROPIC_API_KEY}". Each reference reads the environment variable NAME. When NAME isn't set, or is set but empty, Dive reads the OS credential store instead: the macOS Keychain, or the Secret Service on Linux, under service dive and account NAME. The value is resolved each time a config file loads and is never written to a file. Store a value with dive secret set NAME. On macOS the Keychain lets only the program that stored a value read it, so dive secret set replaces a value another program stored, such as Loon Dive or a different dive build, and that program then can't read it until it stores the value again. See every name the config, tools and packs reference, and where each resolves from, with dive secret list.

A name neither source has leaves a provider or MCP server loadable, and using that provider or server fails naming the variable. A missing name anywhere else fails the load.

Where no credential store is available, as in a container or on Linux without a Secret Service daemon, Dive reads the environment only. Set DIVE_SECRET_STORE to none to skip the store on purpose.

Isolated projects

Set isolate = true under [project] in a project's .dive/config.toml to stop that project reading ~/.config/dive. Dive then loads only the project's config file, with no global values beneath it, and ignores the agents, tools, plans and packs in ~/.config/dive. Plan and tool directories inside ~/.config/dive are dropped even when the project config lists them. Everything the project uses, including providers, models and MCP servers, must be in its own config, and dive config path lists only that file.

Built-in tools, plans and agents still load. Secret references still read the credential store, including values every project shares.

isolate belongs in a project config. Setting it in ~/.config/dive/config.toml fails the load.

Serve mode

A host that runs Dive's runtime in serve mode, for many users at once, reads only the project's .dive/config.toml. It ignores ~/.config/dive, including the agents, tools and plans there, keeps only plan and tool directories inside the project, and doesn't read old .graph folders. In serve mode, saving a drafted tool or agent fails with drafting_disabled, Dive records no tool output shapes, and exec tools start from an empty environment (see exec tools). Each run records the identity from [identity], with the user and tenant taken from the request.

Fields

versioninteger

The file version the config is written in. Omitted means 1; dive config migrate brings a file to the current version.

settingsobject

Runtime settings.

settings.data_dirstringdefault: ~/.local/share/dive

Where sessions, runs and the shape cache are stored.

Most model rounds a conversation agent takes in one turn.

Attempts the built-in planner gets before giving up.

settings.history_limitintegerdefault: 20

Most past messages sent with each turn.

providersobject

Named provider connections, as [providers.<name>].

providers.<name>.typeenum<string>required

The provider. systemone serves decision models, gemini serves image models (the Gemini API), and the rest serve chat models.

Available options: anthropic, openai, openai_compat, systemone, gemini

API key, usually a ${NAME} reference to a variable or stored secret.

Endpoint for openai_compat and self-hosted providers.

Cloud region, where the provider needs one.

Credentials profile, where the provider uses one.

modelsobject

Model roles, as [models.<role>]. Standard roles are default, chat, architect, drafter, planner, outliner, solver, repair, judge, decider and image; any other name is a custom role.

models.<name>.typeenum<string>

What the role's model does. Custom roles default to chat; standard roles have a fixed type (decider is decision, image is image, the rest are chat). The role's provider must serve this type.

Available options: chat, decision, image

A name from [providers].

models.<name>.modelstringrequired

The provider's model id.

Sampling temperature.

What the role's model is good for, shown to drafters beside the role's name. Standard roles have a built-in one that this replaces; a custom role needs one to be offered through a prompt tool's or builtin__generate_image's model input.

The model's context window in tokens.

Whether the model takes images. Omitted, it does: every image a ref names in what the role reads (a tool result, a step's input, an instruction) is sent with the request. Set false for a text-only model, and requests carry a note in place of each image instead. On a decision model, images go to TypeSafe as assets.

Models to try, in order, when this one fails.

A name from [providers].

The provider's model id.

Sampling temperature.

The model's context window in tokens.

Whether this fallback model takes images. Omitted, it does.

mcpobject

MCP servers, as [mcp.<name>]. Their tools join the catalog as <name>__<tool>.

What the server is for, read by drafters choosing tools.

Executable for a stdio server. Use command or url, not both.

Arguments for command.

mcp.<name>.envmap<string, string>

Environment for a stdio server. Values expand ${NAME} references.

Endpoint for a streamable HTTP server.

mcp.<name>.headersmap<string, string>

HTTP headers. Values expand ${NAME} references.

Load only these tools.

Skip these tools.

mcp.<name>.filesenum<string>default: path

How a file reference (blob:sha256-…) in a tool call's arguments reaches the server: path as a local file path, url as a link the server can fetch, base64 as the file's contents, off as the reference text unchanged.

Available options: path, url, base64, off

The OAuth app Dive signs in with, as [mcp.<name>.oauth], for servers whose authorization server doesn't let apps register themselves. Register the app with the callback URL http://127.0.0.1/callback.

The app's client ID.

The app's client secret. Keep it out of the file with a ${NAME} reference.

The access to ask for. Without it, Dive asks for what the server lists.

Per-tool corrections, as [mcp.<name>.tool_overrides.<tool>].

Replaces the server's description of the tool.

An example of the tool's output.

plansobject

Where plans are loaded from.

plans.pathsstring[]default: - ./.dive/plans - ~/.config/dive/plans

Plan directories, searched in order. New plans are saved to the first one. In the global workspace (~/.config/dive), relative entries such as ./.dive/plans are skipped.

toolsobject

Where tools come from.

tools.pathsstring[]default: - ./.dive/tools - ~/.config/dive/tools

Tool directories, searched in order. New tools are saved to the first one. In the global workspace (~/.config/dive), relative entries such as ./.dive/tools are skipped.

tools.always_loadedstring[]default: - builtin__infer - builtin__reshape - builtin__flatten - builtin__dedupe - builtin__sort - builtin__take - builtin__rank - builtin__save_file - builtin__read_file

Tools offered up front, never deferred behind a search. Plan drafting always offers them, and an agent gets the ones its tools list matches.

packsobject

Installed packs, as [packs.<name>]. Their tools, plans and agents join the catalog as <name>__<kind>__<item>.

packs.<name>.gitstringrequired

The git repository the pack is installed from.

The pack's directory inside the repository, such as github. Its releases are the tags <path>/vX.Y.Z. The repository root when absent.

The release line (v1), exact release (v1.2.0) or branch to install. Release refs name the pack's own version; dive adds the <path>/ tag prefix.

Glob patterns over <kind>__<item>, such as plan__*, naming the items callable from outside the pack. Everything when empty.

Glob patterns over <kind>__<item> for items only the pack's own plans and agents can call.

storageobject

Where Dive keeps state.

storage.backendenum<string>default: file

memory keeps nothing between runs. DIVE_STORAGE overrides it.

Available options: file, memory

Where files that tools return, such as screenshots, are kept. Omitted, files follow backend: under <data_dir>/files, or in memory.

storage.files.backendenum<string>required

file keeps files under <data_dir>/files, memory keeps nothing between runs, and s3 uses an S3 or S3-compatible bucket.

Available options: file, memory, s3

The S3 endpoint URL, for S3-compatible servers such as Garage or MinIO. Omitted means AWS.

The bucket to keep files in. Required for s3.

The bucket's region. S3-compatible servers often use their own name, such as garage.

A key prefix inside the bucket, so several stores can share one.

The access key ID. Expands ${NAME} references.

The secret access key. Expands ${NAME} references.

userobject

About you, for agent prompts.

user.namestring

Your name.

Anything agents should know about you.

Your timezone, such as America/New_York.

projectobject

This project's identity. Belongs in the project config.

An id Dive generates the first time you store a project secret with dive secret set NAME --project. Project secrets are keyed by it, so renaming or moving the folder keeps them. Letters, digits and hyphens.

project.isolatebooleandefault: false

When true, this project reads nothing from ~/.config/dive, so its .dive/config.toml must define everything it uses. See Isolated projects.

identityobject

Who runs Dive and where. Dive records it on every run and never checks it, so a missing value never fails a run.

The user a run belongs to. Defaults to the USER environment variable, then the machine's hostname. In serve mode the user comes from each request instead.

The tenant a run belongs to. Defaults to local. In serve mode the tenant comes from each request instead.

Which deployment ran it. Defaults to cli for the dive command and desktop for the desktop app. Required in serve mode.

Which environment ran it, such as staging or production. Defaults to local. Required in serve mode.

serveobject

How dive serve runs Dive as an HTTP service. Belongs in the project config. Without it, or with no public_keys, dive serve refuses to start unless you pass --dev-key.

The address and port to listen on. Defaults to 0.0.0.0:8080. --listen overrides it.

The iss every run token must carry. Required unless you pass --dev-key.

The value a run token's aud must contain. Required unless you pass --dev-key.

Paths to the PEM public keys that verify run tokens, as Ed25519, P-256 (ES256) or RSA (RS256) keys. List more than one to rotate keys.

How many runs this process runs at once. At the limit, /readyz returns 503 and starts get at_capacity. Defaults to 32.

How many runs one tenant runs at once on this process. Over it, starts get at_capacity. Defaults to 8.

Seconds without traffic before an entry stream sends a heartbeat comment. Defaults to 15.

Seconds a stopping process gives its runs to end before it exits. Defaults to 30.

httpobject

How http tools call out.

The origins, such as https://app.example.com or http://localhost:8080, that receive the run token on an http tool call. A call to any other origin goes out without Authorization.

Named test identities, as [identities.<name>]. A run from the desktop app or the CLI acts as one, and Dive mints its run token for it with the development key, so http tools reach the app as that user and tenant. Never used in serve mode or when the environment is production.

The tenant the run acts for; the token's tenant claim.

The user the run acts as; the token's sub claim.

Extra top-level claims on the token, such as role = "admin", for the app's own checks. Can't set a claim Dive sets itself, such as sub, tenant, jti or exp.

devobject

Defaults for runs from the desktop app and the CLI.

The [identities] entry runs act as when none is picked. --as and DIVE_AS override it. Without one, runs carry no run token.

promptsobject

Deprecated. Customize agents with agent files instead.

Deprecated.

Deprecated.

workbenchobject

Workbench settings.

Where the workbench writes its log. Defaults to <data_dir>/workbench.log; DIVE_WORKBENCH_LOG overrides it.

telemetryobject

OpenTelemetry export over OTLP/HTTP.

The OTLP/HTTP endpoint. Telemetry is off without one.

telemetry.protocolenum<string>default: http/protobuf

Wire format.

Available options: http/protobuf, http/json

Export timeout in seconds.

The service.name resource attribute.

telemetry.headersmap<string, string>

Headers sent with every export, such as auth.

telemetry.resourcemap<string, string>

Extra resource attributes.

telemetry.capture_contentbooleandefault: false

Include each call's input and output (prompts, responses, tool arguments and results) in exported spans.

telemetry.logsbooleandefault: false

Export logs as well as traces.

traceobject

What each session's trace keeps of the calls it records. Every model, tool, plan and agent call in a turn is recorded as a span, at any depth, in the session's spans.jsonl.

trace.contentbooleandefault: true

Keep the input and output of every tool, plan, agent and turn in the session's trace. Model calls keep only their tokens, cost and timing. Off keeps names, timing, status and token counts only.

Clip each kept input and output to about this many bytes of JSON, in the trace and in exported spans. Absent keeps them whole.

pricingobject

Prices per model id, as [pricing."<model>"], in USD per million tokens. Without them, usage is reported in tokens only.

pricing.<name>.inputnumberrequired

Input tokens.

pricing.<name>.outputnumberrequired

Output tokens.

Output image tokens. Defaults to the output rate.

Cache-write tokens.

Cache-read tokens.

Where the price came from. The desktop app writes models.dev when it fills a price from the models.dev catalogue, refreshes only prices marked that way, and drops the mark when you edit one by hand.

Higher rates for a call whose prompt is over a token count, as [[pricing."<model>".tiers]]. The prompt counts input, cache-write and cache-read tokens. The highest tier the prompt passes prices every token of the call. A tier's missing output rate keeps the base rate; its missing cache rates scale with its input rate.

The tier applies when the prompt has more tokens than this.

Output tokens.

Cache-write tokens.

Cache-read tokens.

version = 4

[mcp.linear]
url = "https://mcp.linear.app/mcp"

[mcp.linear.headers]
Authorization = "Bearer ${LINEAR_API_KEY}"

[models.default]
model = "claude-sonnet-5-5"
provider = "anthropic"

[models.judge]
model = "claude-haiku-4-5-20251001"
provider = "anthropic"

[packs.github]
git = "github.com/loon-rocks/packs"
path = "github"
ref = "v1"

[providers.anthropic]
api_key = "${ANTHROPIC_API_KEY}"
type = "anthropic"