codex
Allows Grok Build to delegate coding tasks, reviews, and rescues to the local OpenAI Codex CLI, providing slash commands and MCP tools for review, adversarial review, rescue, transfer, status, result, cancel, and review-gate workflows.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@codexreview my uncommitted changes and flag any issues"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Grok Codex Plugin
Grok Build 指挥本地 Codex CLI 干活的开源插件。
它把 OpenAI 官方 Codex plugin for Claude Code 的 companion 运行时、任务队列、review / rescue / transfer / review-gate 逻辑移植到 Grok:走你本机已经登录的 codex,不是另一套 API。
A Grok Build plugin that delegates reviews and coding tasks to the local Codex CLI, following the same companion-runtime logic as OpenAI's Claude Code plugin.
What you get
/codex:reviewfor a normal read-only Codex review/codex:adversarial-reviewfor a steerable challenge review/codex:rescue,/codex:transfer,/codex:status,/codex:result, and/codex:cancelto delegate work, hand off sessions, and manage background jobsMCP tools (
codex_setup,codex_review,codex_rescue, …) so Grok can command Codex without shelling outA
codex:codex-rescuesubagent that only forwards to the companion
Related MCP server: Grok Plugin Codex
Requirements
Grok Build (
grok)Node.js 18.18 or later
Local Codex CLI, installed and logged in (
npm install -g @openai/codexthencodex login)ChatGPT subscription (incl. Free) or an OpenAI API key. Usage counts against your Codex limits.
Install
Add the marketplace in Grok Build, then install and trust the plugin:
grok plugin marketplace add jinxlzc/grok-codex-plugin
grok plugin install codex --trustOr install straight from the repo:
grok plugin install jinxlzc/grok-codex-plugin --trustReload plugins (r in the Plugins tab, or start a new session), then run:
/codex:setup/codex:setup will tell you whether Codex is ready. If Codex is missing and npm is available, it can offer to install Codex for you.
If Codex is installed but not logged in yet, run:
codex loginAfter install you should see the slash commands below, the codex:codex-rescue subagent, and (when the plugin is trusted) the codex MCP server.
Usage
/codex:setup
Checks whether Codex is installed and authenticated.
/codex:setup
/codex:setup --enable-review-gate
/codex:setup --disable-review-gateWhen the review gate is enabled, a Stop hook runs a targeted Codex review of Grok's last turn. If that review finds issues, the stop is blocked so Grok can address them first.
/codex:review
Runs a normal Codex review on your current work. It gives you the same quality of code review as running /review inside Codex directly.
/codex:review
/codex:review --base main
/codex:review --backgroundThis command is read-only and will not perform any changes.
/codex:adversarial-review
Runs a steerable review that questions the chosen implementation and design. It uses the same review target selection as /codex:review, including --base <ref> for branch review.
/codex:adversarial-review
/codex:adversarial-review --base main challenge whether this was the right caching and retry design/codex:rescue
Hands a task to Codex through the codex:codex-rescue subagent.
Use it when you want Codex to:
investigate a bug
try a fix
continue a previous Codex task
take a faster or cheaper pass with a smaller model
/codex:rescue investigate why the tests started failing
/codex:rescue --resume apply the top fix from the last run
/codex:rescue --model gpt-5.4-mini --effort medium investigate the flaky integration test
/codex:rescue --model spark fix the issue quickly
/codex:rescue --background investigate the regressionYou can also just ask:
Ask Codex to redesign the database connection to be more resilient.
让 Codex 把失败的单测修掉Notes:
if you do not pass
--modelor--effort, Codex chooses its own defaults.if you say
spark, the plugin maps that togpt-5.3-codex-sparkfollow-up rescue requests can continue the latest Codex task in the repo
/codex:transfer
Creates a persistent Codex thread from the current Grok session and prints a codex resume <session-id> command.
/codex:transfer
/codex:transfer --source ~/.grok/sessions/%2Fpath%2Fto%2Frepo/<session-id>Claude Code JSONL under ~/.claude/projects is still accepted and uses Codex's native importer.
/codex:status
Shows running and recent Codex jobs for the current repository.
/codex:status
/codex:status task-abc123/codex:result
Shows the final stored Codex output for a finished job.
/codex:cancel
Cancels an active background Codex job.
How it works
Grok session
│ slash command / skill / MCP / rescue subagent
▼
codex-companion.mjs
│ Codex app-server JSON-RPC (same local binary + auth + config)
▼
local `codex` CLIThe plugin is not a separate Codex runtime. It uses:
the same
codexbinary you already havethe same local authentication
the same
~/.codex/config.tomland project.codex/config.toml
Background jobs are tracked per workspace under GROK_PLUGIN_DATA (falling back to CLAUDE_PLUGIN_DATA).
Typical flows
Review before shipping:
/codex:reviewHand a problem to Codex:
/codex:rescue investigate why the build is failing in CIStart something long-running:
/codex:adversarial-review --background
/codex:rescue --background investigate the flaky testThen check in with /codex:status and /codex:result.
Development
npm testThe companion talks to Codex through the app-server protocol. Tests use a fake Codex fixture, so you do not need a live login to run the suite.
License
Apache-2.0.
Runtime design and a large part of the companion are derived from openai/codex-plugin-cc (Apache-2.0, Copyright 2026 OpenAI). See NOTICE.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityCmaintenanceEnables MCP clients to spawn and control Codex CLI and Claude Code sessions on the host machine, with session management and filesystem access.4MIT
- AlicenseBqualityCmaintenanceAn MCP server that exposes the local Grok CLI to Codex for bounded repo work, reviews, rescue analysis, adversarial checks, session listing/export, and background job management while keeping Codex hidden context out of scope.12MIT
- Alicense-qualityBmaintenanceAn MCP server that wraps the local Grok Build CLI, enabling Codex to delegate code reviews, bounded coding tasks, and setup diagnostics to Grok for a second opinion or parallel processing.4Apache 2.0
- Alicense-qualityAmaintenanceEnables Codex to use Grok Build CLI as a controlled subagent via MCP tools for independent investigation, review, and isolated implementation tasks.3MIT
Related MCP Connectors
Remote MCP for Gemini upgrade evals, prompt regressions, output diffs, and eval receipts.
A paid remote MCP for OpenAI Codex agent coordination MCP, built to return verdicts, receipts, usage
Remote MCP for Android CLI agent build gate, structured receipts, audit logs, and reviewer-ready evi
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- 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/jinxlzc/grok-codex-plugin'
If you have feedback or need assistance with the MCP directory API, please join our Discord server