Grok Codex
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| XAI_API_KEY | No | xAI API key for authentication | |
| XAI_BASE_URL | No | Base URL for xAI API | https://api.x.ai/v1 |
| GROK_CODEX_MODEL | No | Default model to use | |
| GROK_CODEX_API_MODE | No | API mode: 'chat' or 'responses' | |
| GROK_CODEX_AUTH_MODE | No | Force authentication mode (e.g., 'api_key') | |
| GROK_CODEX_CONFIG_DIR | No | Configuration directory | |
| GROK_CODEX_USER_CONSENT | No | Set to '1' to grant user consent at process level |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| grok_codex_consent_statusA | Read explicit-consent state. Cannot grant consent. |
| grok_codex_provider_statusB | Check credentials and readiness without exposing secrets. |
| grok_codex_chatC | Chat with Grok. Prefers SuperGrok OAuth; falls back to XAI_API_KEY. |
| grok_codex_list_modelsA | List curated (and optionally live) models. |
| grok_codex_login_statusA | SuperGrok / xAI OAuth login status (no secrets). |
| grok_codex_login_startC | Start xAI device-code OAuth (SuperGrok / Premium+). Returns verification URL. |
| grok_codex_login_completeA | Poll until device authorization completes; saves tokens. |
| grok_codex_logoutA | Delete local SuperGrok OAuth tokens (does not revoke on xAI). |
| grok_codex_doctorB | Quick local diagnosis: consent, credentials, default model. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/Meapri/grok-codex'
If you have feedback or need assistance with the MCP directory API, please join our Discord server