Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
CODEX_CWDNoWorking directory
CODEX_MODELNoModel (gpt-5-codex, o3, codex-1, etc.)
CODEX_EFFORTNoReasoning effort (minimal, low, medium, high, xhigh)
CODEX_API_KEYNoOpenAI API key for this agent (can be inherited from parent process)
CODEX_TOOL_NAMENoTool name prefix (<name> and <name>_reply)codex
CODEX_WEB_SEARCHNoWeb search mode: disabled, cached, livedisabled
CODEX_DESCRIPTIONNoTool description shown to the host AI
CODEX_SERVER_NAMENoMCP server name in protocol handshakecodex-octopus
CODEX_FACTORY_ONLYNoOnly expose the factory wizard toolfalse
CODEX_INSTRUCTIONSNoReplaces the default instructions
CODEX_SANDBOX_MODENoread-only, workspace-write, danger-full-accessread-only
CODEX_NETWORK_ACCESSNoAllow network from sandboxfalse
CODEX_ADDITIONAL_DIRSNoExtra directories (comma-separated)
CODEX_APPROVAL_POLICYNonever, on-failure, on-request, untrustedon-failure
CODEX_PERSIST_SESSIONNoenable session resumetrue
CODEX_APPEND_INSTRUCTIONSNoAppended to the default instructions

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
codex

Send a task to an autonomous Codex agent. It reads/writes files, runs shell commands, searches codebases, and handles complex software engineering tasks end-to-end. Returns the result text plus a thread_id for follow-ups via codex_reply.

codex_reply

Continue a previous codex conversation by thread ID. Use this for follow-up questions, iterative refinement, or multi-step workflows that build on prior context.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/xiaolai/codex-octopus'

If you have feedback or need assistance with the MCP directory API, please join our Discord server