Config file
Meerkat loads config from TOML files in two locations:| Location | Scope | Example path |
|---|---|---|
.rkat/config.toml | Project (checked into repo or gitignored) | ./my-project/.rkat/config.toml |
~/.rkat/config.toml | Global (user-wide defaults) | ~/.rkat/config.toml |
Minimal example
.rkat/config.toml
Generating a config file
Budget controls
Budget limits cap resource usage per agent run. When a limit is reached the agent completes its current turn, then stops.Total input + output tokens across all turns.
Maximum wall-clock runtime. Accepts
"30s", "5m", "2h".Maximum total tool invocations.
.rkat/config.toml
Retry policy
Failed LLM calls are retried automatically with exponential backoff and jitter..rkat/config.toml
| Error | Retried? |
|---|---|
RateLimited | Yes (uses retry-after header when available) |
ServerOverloaded | Yes |
NetworkTimeout | Yes |
ConnectionReset | Yes |
ServerError (5xx) | Yes |
InvalidRequest | No |
AuthenticationFailed | No |
ContentFiltered | No |
Session persistence
Sessions record conversation history so agents can resume where they left off.- JSONL (default)
- redb (embedded database)
- In-memory (testing)
Sessions are stored as JSONL files, one per session.Requires the
.rkat/config.toml
jsonl-store feature flag (enabled by default).Managing sessions
Logging
Meerkat uses thetracing crate. Configure via RUST_LOG:
Advanced configuration
These features have their own dedicated guides:| Feature | Config section | Guide |
|---|---|---|
| Hooks | [hooks] | Hooks guide |
| Memory and compaction | [compaction] | Memory guide |
| Sub-agents | [sub_agents] | Sub-agents guide |
| Inter-agent comms | [comms] | Comms guide |
| MCP servers | .rkat/mcp.toml | MCP reference |
| Shell security | [shell] | Built-in tools |
See also
- Providers - API key and model setup
- CLI configuration - CLI-specific config details
