Configuration and one-off grants#

The defaults gate Claude opus and fable identities, recognize explicit light pins matching sonnet, haiku, terra, luna, or GPT-5.6/6/6.1-Sol, and allow no standing exceptions. OpenAI Sol models are ordinary peer-delegation choices by default. A custom superheavy_pattern can include them when your local policy requires that.

Create the starter file:

gate init-config

It is written to ~/.config/gate/config.toml on Linux and macOS or %APPDATA%\gate\config.toml on Windows. Set GATE_CONFIG to use a different path.

superheavy_pattern = "(?<![a-z0-9])(?:opus|fable)(?![a-z0-9])"
# To gate OpenAI Sol locally, use this complete pattern instead:
# superheavy_pattern = "(?<![a-z0-9])(?:opus|fable|gpt-(?:5\\.6|6(?:\\.1)?)-sol)(?![a-z0-9])"
light_pattern = "(?<![a-z0-9])(?:sonnet|haiku|terra|luna|gpt-(?:5\\.6|6(?:\\.1)?)-sol)(?![a-z0-9])"
allow = [
    "adversarial-critic",
    "workflow:deep-research",
]

Allowlisted launches pass without a deny. The gate’s user-facing surfaces are the deny reason in the transcript, the terminal tint, and the telemetry counters — there are no desktop notifications.

One-off grants#

A grant is a terminal-minted, TTL-bounded exception. The default is one launch for 15 minutes:

gate grant general-purpose
gate grants
gate revoke general-purpose

Use --session <session_id> to bind the grant to the exact session named in a deny message:

gate grant general-purpose --uses 1 --ttl 15m --session session-123

Agents can request that command but cannot mint the grant themselves. Consumption decrements the remaining uses.

Terminal tinting#

gate tint reads its own optional config at ~/.config/gate/tint.toml (override with GATE_TINT_CONFIG). Write a commented starter with gate tint init:

base_color = "slate"        # revert color when leaving a triggered dir
denial_window = 600         # seconds a deny event keeps tinting
activity_window = 3600      # seconds heavy/workflow activity counts as active

[aliases]                   # name -> hex; overrides built-ins
jade = "#2B8A6E"

[events]                    # predicate -> color; severity order is fixed
denied_recently = "red"
heavy_active = "orange"
workflow_active = "amber"
grant_active = "violet"

[directories]               # nested tables compose regex prefixes
"~/my/apps" = { irix = "jade", "superheavy-gate" = "cyan" }

[commands]
"^git push" = "red"

[places]                    # literal path prefixes (escaped, match on boundary)
"~/vault" = "violet"

See Terminal tinting for the full model: event predicates, precedence, overrides, and terminal caveats.