Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
NO_PROXYNoOptional proxy setting forwarded to the spawned `codex app-server` child. Default: unset (inherits environment).
ALL_PROXYNoOptional proxy setting forwarded to the spawned `codex app-server` child. Default: unset (inherits environment).
CODEX_HOMENoOptional Codex home directory override. Default: unset.
HTTP_PROXYNoOptional proxy setting forwarded to the spawned `codex app-server` child. Default: unset (inherits environment).
CODEX_MODELNoOptional default Codex model for new sessions (resumed turns preserve their prior session model unless overridden per call). Default: unset (inherits `~/.codex/config.toml`).
HTTPS_PROXYNoOptional proxy setting forwarded to the spawned `codex app-server` child. Default: unset (inherits environment).
CODEX_SANDBOXNoOptional default sandbox override (`read-only`, `workspace-write`, `danger-full-access`). Default: unset.
OPENAI_API_KEYNoCodex authentication alternative to running `codex login` (can also be set in `~/.codex/config.toml`).
CODEX_ANCHOR_PATHNoOptional directory anchor searched when resolving `@openai/codex`. Default: unset.
CODEX_EOF_GRACE_MSNoGrace period waiting for clean child exit after closing stdin. Default: `6000`.
CODEX_MAX_SESSIONSNoMaximum tracked persistent sessions before LRU archiving. Default: `200`.
CODEX_WARM_IDLE_MSNoOpt-in warm `app-server` worker idle TTL in ms. When `0`, each turn spawns a fresh process. When `> 0`, consecutive persistent turns with matching config reuse the initialized worker. Default: `0` in code (`180000` in default `mcp_config.json`).
CODEX_WRAPPER_PATHNoOptional explicit path to `@openai/codex/bin/codex.js` (auto-resolves from local `node_modules`, standard global npm directories, or optional DSH profile). Default: auto-resolved.
CODEX_SESSION_TTL_MSNoIdle persistent session expiration TTL. Default: `604800000` (7 days).
CODEX_DEFAULT_WAIT_MSNoDefault synchronous wait window in ms before returning `status: "running"` (`1000..150000`). Default: `120000`.
CODEX_PERMISSION_MODENoDefault approval/sandbox preset (`never`, `read-only`, `approve-for-me`, `dangerously-bypass-approvals-and-sandbox`). Default: `never`.
CODEX_TURN_TIMEOUT_MSNoOptional per-turn timeout in ms. Default: unset.
CODEX_DISPOSE_GRACE_MSNoBounded grace period waiting after subprocess termination. Default: `3000`.
CODEX_REASONING_EFFORTNoOptional default reasoning effort (`low`, `medium`, `high`, `xhigh`). Default: unset (inherits `~/.codex/config.toml`).
CODEX_REQUEST_TIMEOUT_MSNoPer-RPC request timeout in ms (inside `codex-wire.mjs`). Default: `30000`.
CODEX_SESSION_STORE_PATHNoIsolated session registry path (`jobs/` sibling directory stores unclaimed settled job receipts). Keep separate from other harnesses sharing the same filename pattern to avoid `.lock` contention. Default: `<plugin>/data/codex-subagent-sessions.json`.

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

Server capabilities have not been inspected yet.

Tools

Functions exposed to the LLM to take actions

NameDescription

No tools

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources