Skip to main content

Config precedence

flags > env > config file > defaults Default config path:
Minimal config example:

Useful env vars

Cache behavior

  • Fresh cache hits (age <= ttl) return immediately.
  • After TTL expires, CLI refetches providers.
  • Stale data is served only when providers fail temporarily (unavailable or rate_limited) and within max_stale.
  • Cache writes use SQLite WAL + busy timeout + lock/backoff retries to reduce lock contention in parallel runs.
  • If cache init fails (path/permissions), commands continue with cache disabled.
  • Metadata commands (version, schema, providers list, chains list) bypass cache initialization.

Command TTLs

Execution commands (plan, run, submit, status) and action inspection (actions list|show|estimate) bypass cache reads/writes.

Strict mode

If any selected provider fails and partial results occur, --strict returns exit code 15 (partial_results).