Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
CODEX_LOG_DIRNoDirectory for per-task `.log` diagnostics (established before spawning Codex). Defaults to a private user state dir.
CODEX_CLI_PATHNoExplicit path or absolute-`PATH` command for `codex` / `codex.exe` / npm `codex.js`. Auto-detected by default.
CODEX_MAX_TASKSNoNumber of completed tasks retained in memory (5–500).50
CODEX_DEFAULT_MODELNoDefault `--model` (and `review_model` for reviews) override when not specified per call. Unset by default — inherits `~/.codex/config.toml`.
CODEX_MAX_LOG_FILESNoMaximum retained `codex_*.log` files in `CODEX_LOG_DIR` (`0` disables pruning, max `10000`).100
CODEX_DEFAULT_SANDBOXNoDefault sandbox for new `codex_run` tasks (`workspace-write`, `danger-full-access`, or `read-only`).workspace-write
CODEX_DEFAULT_WAIT_SECONDSNoInitial sync wait for `codex_run`, `codex_review`, and interrupt `codex_steer` (0–600; e.g. `165` in Antigravity).300
CODEX_MAX_CONCURRENT_TASKSNoMaximum simultaneous active Codex tasks (1–50).8
CODEX_DEFAULT_REASONING_EFFORTNoDefault `model_reasoning_effort` override when not specified per call. Unset by default — inherits `~/.codex/config.toml`.
CODEX_DISABLE_RESET_CARD_GUARDNoSet to `1` or `true` to disable the best-effort `/usage` & reset-card prompt guard.0
CODEX_DEFAULT_POLL_WAIT_SECONDSNoWait budget for `codex_wait` (0–600; e.g. `165` in Antigravity).180
CODEX_EXTRA_RATE_LIMIT_PATTERNSNoComma-separated regexes or substrings for custom provider rate-limit detection. Empty by default.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
codex_runA

Run Codex CLI (Executor) on a task or continue an existing Codex session via session_id. Inherits ~/.codex/config.toml (model, reasoning effort, custom provider, auth, MCPs, plugins, notify), disables unbounded_connection_retries, and applies a best-effort reset-card prompt guard (opt out via CODEX_DISABLE_RESET_CARD_GUARD=1 or true). Defaults for new runs: model=(inherited from ~/.codex/config.toml), reasoning_effort=(inherited from ~/.codex/config.toml), sandbox="workspace-write", wait_seconds=300. When session_id is provided and sandbox is omitted, saved session permissions are preserved instead of reapplying CODEX_DEFAULT_SANDBOX. Progress notifications are emitted every 15s when the client supplies a progressToken. If execution exceeds wait_seconds, returns status="running" with task_id so you can call codex_wait / codex_status / codex_cancel. If status="rate_limited", STOP immediately and ask the user; never retry or trigger a reset card.

codex_reviewA

Run a code review with Codex CLI (codex exec review), read-only by default (accepts sandbox override). Defaults: sandbox="read-only", model=(inherited from ~/.codex/config.toml), reasoning_effort=(inherited from ~/.codex/config.toml), wait_seconds=300. When model is specified (or CODEX_DEFAULT_MODEL is set), it also sets Codex's review_model override. If no review target (uncommitted/base/commit/prompt) is provided, defaults to uncommitted changes.

codex_waitA

Wait up to wait_seconds (default 180) for a background Codex task to finish. Returns minimal status ({task_id, status, session_id, elapsed_ms}) while still running, and full structured output once finished. Emits progress notifications every 15s when the client supplies a progressToken.

codex_statusA

Non-blocking check of a specific Codex task_id, or omit task_id to list all active and recent Codex tasks managed by this server.

codex_steerA

Send a new or updated instruction to an in-progress or existing Codex session. Two modes:

  • "interrupt" (DEFAULT): Cancels the running Codex task (if active and session_id is known) and resumes the same session_id with the new prompt so Codex stops obsolete work right away.

  • "queue": Enqueues a follow-up independently via CLI arguments (subject to platform command-line length and process visibility limits) using saved session settings; rejects per-call model, reasoning_effort, and sandbox overrides. Use only when explicitly requested. Applies the best-effort reset-card prompt guard unless CODEX_DISABLE_RESET_CARD_GUARD=1 or true.

codex_cancelB

Terminate a running Codex background task and its child process tree.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.9/5.0

Scored across 6 tools

Disambiguation4/5

codex_run and codex_steer can both target an existing session, but the descriptions separate continuing a run from interrupting/steering it. wait, status, cancel, and review are clearly differentiated, leaving only minor overlap around session continuation.

Naming Consistency5/5

All six tools use the codex_ prefix plus a concise snake_case action (run, review, wait, status, steer, cancel), making names highly predictable. status is a noun rather than a verb, but it still fits the consistent action-style pattern.

Tool Count5/5

Six tools map neatly to launching, reviewing, monitoring, waiting on, steering, and cancelling Codex CLI work. There is no obvious padding, and the count is well-scoped for an async CLI execution wrapper.

Completeness4/5

The set covers the core async execution lifecycle and a read-only review path, with status also serving as a list operation. Minor gaps remain: no dedicated output/history retrieval beyond wait/status, and session management is only implicit through run and steer.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues