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.json when 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" }
  }
}
KeyTypeDefaultMeaning
models.mainobjectnoneActive model for the conversation. Set it with /model and /variant.
models.builderobjectmain modelModel for Builder subagents, which edit files.
models.researcherobjectmain modelModel for Research subagents, which are read-only.
models.basicobjectmain modelModel for the one-shot passes: session titles, AI Review, and handoff.
<role>.providerstringnoneConnection identity, id or id/label. Must match an entry in providers.
<role>.modelstringnoneModel identifier as the provider reports it. Requires provider.
<role>.reasoning_effortstringper roleoff, 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" } }
  }
}
KeyTypeDefaultMeaning
skills.globalobjectemptySkill name to policy, for skills discovered outside the project.
skills.projectsobjectemptyProject root path to its own skill name to policy map.
policystringaskallow 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.

See Skills and instructions.

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" }
  }
}
KeyTypeDefaultMeaning
typestringhttphttp connects to an endpoint; stdio launches command as a child process. Any other value is a configuration error.
catalog_idstringnoneEntry in the bundled catalog. Its URL and label resolve at use time.
urlstringnoneEndpoint for a custom HTTP server. Plain http:// is upgraded to https://.
commandstringnoneProgram to launch for a stdio server, looked up on PATH and run without a shell. Required when type is stdio.
argsarray of stringemptyArguments for command, passed verbatim.
envobjectemptyExtra environment variables for the child process.
working_directorystringinheritedWorking directory for the child process.
headersobjectemptyExtra HTTP request headers. A name must be non-empty and contain no colon.
bearer_tokenstringnoneSent as the request bearer token.
enabledbooleantrueA disabled server never connects and is hidden from the agent.
autoloadbooleanfalseConnect at startup. Only an enabled server can autoload.
timeout_secsinteger0Per-request timeout in seconds. 0 uses the client default of 25 seconds; a negative value is a configuration error.
labelstringcatalog or idDisplay name in the /mcp list.
descriptionstringcatalogDescription shown in the /mcp list.
oauthobjectnoneBrowser 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" }
    ]
  }
}
KeyTypeDefaultMeaning
allow.directoriesarray of stringemptyDirectories the agent may read and edit without asking, including everything beneath them. Absolute, or relative to the directory Imza starts in.
allow.commandsarray of objectemptyShell programs the agent may run without asking.
allow.commands[].programstringrequiredExecutable name. Empty is a configuration error.
allow.commands[].subcommandstringallNarrows 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"] }
KeyTypeDefaultMeaning
instructionsarray of stringemptyExtra 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.

See Skills and instructions.

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 keyReplacement
providers[].provider_idproviders[].id, used only when id is absent
models.reviewermodels.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"]
}