Configuration
imza’s configuration lives in config.json. It is maintained internally by
imza’s TUI, but it can also be configured manually. The file can be opened
directly with the imza --config command. The file is located at:
- Linux:
$XDG_DATA_HOME/imza/config.json, or$HOME/.local/share/imza/config.jsonwhen unset - macOS:
$HOME/Library/Application Support/imza/config.json - Windows:
%APPDATA%\imza\config.json
Alongside the configuration file, imza stores various data required for it to run.
The configuration file references the https://imza.run/config.schema.json schema. If the JSON file is invalid, imza will immediately exit with an error code. Default configuration values are omitted automatically.
Capabilities
{ "capabilities": { "web": true, "subagents": 8 } }
Run-level switches read once at startup. web: false disables the agent’s
web access for the run; subagents caps how many concurrent tasks one
subagent call may delegate, with 0 disabling delegation entirely (review
passes and session titles are unaffected). The --web and --max-subagents
command-line flags override these values for that process.
Credentials
API keys and subscription tokens are not stored in config.json. They live in
your operating system’s keychain: Secret Service on Linux, Keychain on macOS,
Credential Manager on Windows by default.
On a machine with no keychain, imza keeps secrets inside configuration file in plain-text. On each run imza sends a security warning. This security warning can be disabled by adding the following line in the configuration:
{ "preferences": { "credentials": "plaintext" } }
Models and Reasoning Effort
{
"models": {
"main": { "provider": "openai", "model": "gpt-5.2", "reasoning_effort": "high" },
"builder": { "provider": "openai", "model": "gpt-5.2", "reasoning_effort": "default" },
"researcher": { "reasoning_effort": "low" },
"basic": { "provider": "anthropic", "model": "claude-haiku-4-5" }
}
}
| Key | Type | Default | Meaning |
|---|---|---|---|
models.main | object | none | Active model for the conversation. Set it with /model and /variant. |
models.builder | object | main model | Model for Builder subagents, which edit files. |
models.researcher | object | main model | Model for Research subagents, which are read-only. |
models.basic | object | main model | Model for the one-shot passes: session titles, AI Review, and handoff. |
<role>.provider | string | none | Connection identity, id or id/label. Must match an entry in providers. |
<role>.model | string | none | Model identifier as the provider reports it. Requires provider. |
<role>.reasoning_effort | string | per role | off, low, default or high. medium is accepted as the wire spelling of default. For a subagent role, anything else is a configuration error. |
Per-role effort defaults are default for builder, low for researcher, and
off for basic. A role with no provider falls back to the main model and
keeps its own effort.
An effort on models.main is not checked at startup, so a typo there is
ignored rather than reported. The subagent roles are checked, and a rejected
value fails the load.
See Connecting a model and Subagents.
Skill Policies
{
"skills": {
"global": { "code-review": "allow", "unslop": "ask" },
"projects": { "/home/me/Source/work/secrets-tool": { "deploy-helper": "deny" } }
}
}
| Key | Type | Default | Meaning |
|---|---|---|---|
skills.global | object | empty | Skill name to policy, for skills discovered outside the project. |
skills.projects | object | empty | Project root path to its own skill name to policy map. |
| policy | string | ask | allow activates silently, ask opens an approval modal, deny hides the skill from the model. |
A project entry overrides the global entry for the same skill name. Keys in
skills.projects are matched against the detected project root, so a policy
written on one machine needs the same path to apply on another.
Bundled skills, such as the imza-docs manual, ignore this section.
MCP Servers
{
"mcp_servers": {
"github": { "catalog_id": "github", "bearer_token": "${GITHUB_TOKEN}" },
"docs": { "url": "https://mcp.example.com/docs", "autoload": true,
"timeout_secs": 60, "headers": { "x-api-key": "${DOCS_KEY}" } },
"local": { "type": "stdio", "command": "npx",
"args": ["-y", "@modelcontextprotocol/server-filesystem"],
"env": { "DEBUG": "1" }, "working_directory": "/tmp" }
}
}
| Key | Type | Default | Meaning |
|---|---|---|---|
type | string | http | http connects to an endpoint; stdio launches command as a child process. Any other value is a configuration error. |
catalog_id | string | none | Entry in the bundled catalog. Its URL and label resolve at use time. |
url | string | none | Endpoint for a custom HTTP server. Plain http:// is upgraded to https://. |
command | string | none | Program to launch for a stdio server, looked up on PATH and run without a shell. Required when type is stdio. |
args | array of string | empty | Arguments for command, passed verbatim. |
env | object | empty | Extra environment variables for the child process. |
working_directory | string | inherited | Working directory for the child process. |
headers | object | empty | Extra HTTP request headers. A name must be non-empty and contain no colon. |
bearer_token | string | none | Sent as the request bearer token. |
enabled | boolean | true | A disabled server never connects and is hidden from the agent. |
autoload | boolean | false | Connect at startup. Only an enabled server can autoload. |
timeout_secs | integer | 0 | Per-request timeout in seconds. 0 uses the client default of 25 seconds; a negative value is a configuration error. |
label | string | catalog or id | Display name in the /mcp list. |
description | string | catalog | Description shown in the /mcp list. |
oauth | object | none | Browser sign-in state. Imza writes and refreshes it. |
An http entry needs a url or a catalog_id, and an explicit url wins. An
entry with neither is a configuration error.
url, bearer_token, header names and values, args, and env values expand
${NAME} and ${NAME:-fallback} from the environment when the connection is
made, so a secret can stay out of the file. Treat oauth as Imza-managed state
rather than something to hand-edit.
See MCP servers.
Permission Grants
{
"allow": {
"directories": ["/home/me/Source/shared-assets", "scratch"],
"commands": [
{ "program": "rg" },
{ "program": "git", "subcommand": "push" }
]
}
}
| Key | Type | Default | Meaning |
|---|---|---|---|
allow.directories | array of string | empty | Directories the agent may read and edit without asking, including everything beneath them. Absolute, or relative to the directory Imza starts in. |
allow.commands | array of object | empty | Shell programs the agent may run without asking. |
allow.commands[].program | string | required | Executable name. Empty is a configuration error. |
allow.commands[].subcommand | string | all | Narrows the grant to one subcommand. Omit it to approve every subcommand. An empty string is a configuration error. |
A grant authorizes exactly what it names. Deletion commands such as rm cannot
be granted at all. A directories entry that is missing is skipped rather than
failing startup; an empty string is a configuration error.
Only this section persists. Grants you approve in a session live in memory and are cleared when you switch sessions, change directory, or exit.
See Permissions.
Instruction Files
{ "instructions": ["CONTRIBUTING.md", "docs/style.md", "/home/me/rules.md"] }
| Key | Type | Default | Meaning |
|---|---|---|---|
instructions | array of string | empty | Extra Markdown files appended to the system prompt after the project instruction file. |
Paths are relative to the project root, or to the working directory when there is no project root. An absolute path is used as given. Files load in the listed order, each capped at 32 KiB. A file that does not exist is skipped, so one config can name files that only exist on some machines. An empty entry is a configuration error.
These files are added to the prompt; they do not replace the project instruction file.
Prompt Fragment Overrides
Imza’s built-in prompts can be replaced with your own Markdown files in a
prompts directory inside the data directory (see
Where the file is). Each file overrides one prompt
fragment. The fragments are the main system prompt, the subagent prompts,
title generation, history compaction, AI review, the handoff document, the
Review to Plan handoff, and the revise-plan prompt.
Ready-made copies of every default fragment ship in the repository under
misc/prompts/.
That directory is the current list; copy the ones you want to tweak into your
prompts/ directory as a starting point.
A blank or missing file falls back to the embedded default, so you can override just the fragments you care about. Imza picks up the files the next time it starts.
Legacy Keys
Older files can still contain these. Imza reads them and rewrites them in the current spelling on the next save, so prefer the modern key when you edit by hand.
| Old key | Replacement |
|---|---|
providers[].provider_id | providers[].id, used only when id is absent |
models.reviewer | models.basic, used only when basic is absent |
Full Configuration
{
"$schema": "https://imza.run/config.schema.json",
"preferences": { "credentials": "os" },
"capabilities": { "web": true, "subagents": 8 },
"providers": [
{ "id": "openai" },
{ "id": "custom", "label": "ollama", "endpoint": "http://localhost:11434/v1" }
],
"models": {
"main": { "provider": "openai", "model": "gpt-5.2", "reasoning_effort": "high" },
"builder": { "reasoning_effort": "default" },
"researcher": { "provider": "custom/ollama", "model": "qwen3-coder", "reasoning_effort": "low" },
"basic": { "reasoning_effort": "off" }
},
"skills": {
"global": { "code-review": "allow" },
"projects": { "/home/me/Source/work/secrets-tool": { "deploy-helper": "deny" } }
},
"mcp_servers": {
"github": { "catalog_id": "github", "bearer_token": "${GITHUB_TOKEN}", "autoload": true },
"local": { "type": "stdio", "command": "npx", "args": ["-y", "some-mcp-server"] }
},
"allow": {
"directories": ["scratch"],
"commands": [{ "program": "rg" }, { "program": "git", "subcommand": "status" }]
},
"instructions": ["CONTRIBUTING.md", "/home/me/rules.md"]
}