Airlock
Reference

Global Config

Reference for the ~/.airlock/config.yml configuration file.

The global config file lives at ~/.airlock/config.yml. It controls daemon behavior, agent selection, and storage. All fields are optional — sensible defaults are used when omitted.

The config path follows AIRLOCK_HOME if set. For example, AIRLOCK_HOME=/opt/airlock reads config from /opt/airlock/config.yml.

Full Example

# ~/.airlock/config.yml

agent:
  adapter: claude-code
  options:
    model: null
    max_turns: 50

sync:
  on_fetch: true

storage:
  max_artifact_age_days: 30

agent

Configures the AI agent used by airlock exec agent in workflow steps.

FieldTypeDefaultDescription
agent.adapterstring"auto"Which agent adapter to use (see below)
agent.options.modelstringModel override passed to the adapter
agent.options.max_turnsnumberMaximum turns per agent invocation

Available Adapters

ValueAgent
autoAuto-detect installed agent
claude-codeAnthropic Claude Code
codexOpenAI Codex CLI
agent:
  adapter: claude-code

sync

Controls repository sync behavior.

FieldTypeDefaultDescription
sync.on_fetchbooleantrueSync gate repos from upstream on fetch operations
sync:
  on_fetch: true

storage

Controls artifact retention.

FieldTypeDefaultDescription
storage.max_artifact_age_daysnumber30Days to keep artifacts before automatic cleanup
storage:
  max_artifact_age_days: 30