Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
HOSTNoThe host address the server binds to. Default is 127.0.0.1 (loopback only).127.0.0.1
PORTNoThe port the server listens on. Default is 8787.8787
CODEX_BINNoLocal codex binary path or name. Defaults to 'codex'.codex
CODEX_AGENT_MODELNoOptional local model override. If unset, Codex uses its own local configuration.
CODEX_RPC_TIMEOUT_MSNoGeneric RPC timeout in milliseconds. Defaults to 30000.30000
CODEX_WORKSPACE_ROOTNoAdminstrative root for workspaces. Must be an existing absolute path. Defaults to ~/workspace.~/workspace
CODEX_AGENT_STATE_FILENoOptional path to the state JSON file for job persistence.
CODEX_AGENT_ALLOWED_HOSTSNoComma-separated extra hostnames accepted in the Host header on /mcp. Needed if the tunnel forwards its own Host instead of the loopback upstream.
CODEX_SHUTDOWN_TIMEOUT_MSNoGraceful shutdown wait time in milliseconds. Defaults to 2000.2000
CODEX_AGENT_REASONING_EFFORTNoOptional local reasoning effort override. If unset, Codex uses its own local configuration.
CODEX_AGENT_ALLOW_NON_LOOPBACKNoSet to '1' to permit non-loopback binds. Only enable with equivalent external protection (e.g., a tunnel).0

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

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/joseanu/codex-from-chatgpt'

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