Configure Dial
Dial reads its settings from two TOML files and the command line, never from the repository you open. Most people only touch the settings panel; this guide covers where things live, how layers combine and how to steer the agent with AGENTS.md.
Where settings live
Three layers, each overriding the one before:
~/.dial/config.toml: your global settings.~/.dial/projects/NAME-HASH/config.toml: overrides for one project. It sits in Dial's own directory, not in the project, so a repository can't change your settings.- Command-line flags, such as
--approval readonlyor-m MODEL, for one launch.
/settings sources shows which layer each effective value came from. A running session picks up changes to these files at once, except its model choice, so changing models in one terminal never switches another.
Settings panel
/settings (Ctrl-,, or Ctrl-4 on Windows) edits every setting, grouped into Common, Appearance, Keys, Model, Connections, Safety, Tools, Memory, Learning, Experimental and Advanced. Type to search. Ctrl-B switches between saving globally and for this project only, and Ctrl-O shows only what you've changed. Secrets stay masked until you reveal them.
From the shell
dial config list # every effective setting, secrets redacted
dial config get sandbox # one table
dial config set sandbox.mode dev
dial config set ui.motion off
dial config reset sandbox.modeUnknown keys get a suggestion (did you mean "ui.motion"?), and a refused value says what the setting accepts.
A starting config.toml
approval = "write" # ask | write | auto | readonly
[sandbox]
mode = "dev" # off | dev | strict
extra_write = ["~/.cargo", "~/.npm"]
[model_roles]
small = { provider = "openai", model = "gpt-4o-mini" }
[endpoint] # an OpenAI-compatible server
base_url = "http://127.0.0.1:1234/v1"
[mcp.docs] # an MCP server
program = "npx"
args = ["-y", "@modelcontextprotocol/server-everything"]
[plan]
autosave = trueEach table has its own guide: approvals, sandbox, model roles, local servers and MCP. The annotated full example is in dial's configuration documentation.
Project instructions: AGENTS.md and CLAUDE.md
Write how your project works in AGENTS.md or CLAUDE.md and Dial reads it from the project hierarchy at the start of every session, including in subagents. Good things to put there: how to build and test, conventions, what not to touch.
# AGENTS.md
Run `pnpm test` before calling work done.
Never edit files under generated/.
@docs/style.md@pathon its own imports another file in place, up to five levels deep.- Dial also reads context, commands and skills from other agents' folders (
.claude,.codex,.gemini,.cursor,.windsurf,.cline,.github), so instructions you already wrote for another tool keep working. - These files are guidance for the model, not configuration: they never run programs or change permissions.
Hooks and custom tools
For rules the model must not be able to ignore, use a hook: a program Dial runs at a lifecycle point, such as before each tool call. It receives the event as JSON on stdin and can block it with exit code 2:
[[hooks]]
event = "pre_tool_use"
matcher = "edit|write"
command = ["sh", "-c", "grep -q '\\.env' && { echo 'no .env edits' >&2; exit 2; } || exit 0"][tools.NAME] adds a custom tool from any program. Both are trusted and run outside the sandbox, so point them only at programs you control. See extensions and project context.