Connect Codex CLI to your project knowledge and issues over MCP
Codex CLI connects to Contextingo over MCP, with your own personal key, and reads the same project knowledge as every teammate’s Claude Code. Codex runs on your own plan; Contextingo only serves the knowledge.
Updated by Contextingo. Verified with Claude Code and Codex CLI.
Steps
How to set it up.
Copy the setup command
In Contextingo, open Project → Connect → Copy setup command and run it in the repository folder. It checks that codex is installed before it uses the one-time code.
npx contextingo init <code>What the command sets up
It registers the server with codex mcp add, stores your personal key in ~/.config/contextingo/env (readable only by you, loaded by your shell profile), adds the work protocol to AGENTS.md (an existing file is only appended to) and links the folder with .contextingo.json, which holds no key.
Or connect by hand
Put the personal key from the Connect tab in an environment variable and register the server. The key never goes into a committed file.
export CONTEXTINGO_TOKEN="ctm_mcp_..." codex mcp add contextingo --url https://contextingo.com/mcp/p/<project-id> --bearer-token-env-var CONTEXTINGO_TOKENCheck that it works
Open a new Codex session in the folder and ask it to call issue_list. It should list the project’s issues. An unauthorized error means the key is missing or expired: copy a new command.
Work the same way as everyone else
Codex follows the protocol in AGENTS.md and in the server’s instructions: context_get at the start, context_upsert for what others need, session_checkpoint when it stops, review_submit when it is done. A person accepts the work.
Stop explaining your project to every new chat.
- Findings, decisions and failed attempts are saved while your AI works, not lost with the chat
- The next chat, teammate or tool starts from them, so nobody briefs anyone
- A person accepts the work, with the CI results already fetched
Free to start, no credit card. Pro and Team start with 14 days free.
Questions
Good to know.
Does Codex read CLAUDE.md?
No. Codex reads AGENTS.md (Codex documentation, October 2026). That is why the setup command writes the work protocol to AGENTS.md for Codex and to CLAUDE.md for Claude Code.
Does Codex get the hook too?
Yes. The setup command wires the same hook into Codex (~/.codex/hooks.json). It reminds Codex to save as it works, sends a turn back once when it changed files without saving, and checks the evidence before a confirmed save. Codex asks you to trust a new hook once under /hooks.
Can I use Codex and Claude Code on the same project?
Yes. Both read and write the same records, so one can continue what the other started. See the guide on handing off from Claude Code to Codex.
More guides
- How to hand off work from Claude Code to CodexMove an issue from Claude Code to Codex CLI mid-task or when you hit a usage limit: a checkpoint, shared project knowledge and a person who accepts.
- How to hand off a Claude Code task to a teammateClaude Code keeps sessions on one computer. Save as you work, leave a checkpoint and assign the issue: your teammate’s AI starts with the context loaded.
- How to share project context across a Claude Code teamGive every teammate’s Claude Code the same requirements, decisions and findings, next to your GitHub issues, with a status per record.
- Connect Claude Code to GitHub issues over MCPLet Claude Code list, read and work on your GitHub issues over MCP, with acceptance criteria, linked pull requests, CI results and human review.
- Record failed attempts so no AI repeats themSave what an AI tried and why it failed as a record every teammate’s AI reads first, so Claude Code and Codex stop repeating the same dead end.
- Stop AI agents from marking their own work as doneCoding agents say “done” when tests failed or never ran. Contextingo fetches CI itself, shows it next to what the AI claimed, and only a person accepts.
- Keep Claude Code’s findings between sessionsEach Claude Code session starts with an empty context. How Contextingo’s hook saves findings and decisions as you work and loads them next session.
- How to keep AI notes current when the code changesNotes about your code go stale after a merge. How Contextingo flags a record when a merged pull request changes the file it cites, so no AI trusts it blindly.
- What to say to Claude Code or Codex in a Contextingo projectHand over, catch up, ask a teammate, set a reminder, find out why code is as it is: what to say in Claude Code or Codex and what happens next.
- How to hand over, park or take back work in Claude CodeHand a Claude Code or Codex task to a teammate with one sentence, park it for yourself, switch tools, or take a handover back before anyone picked it up.
- How to catch up and run a standup from a Claude Code chatSee what changed since your last session, where you stopped, what a teammate did yesterday and what is blocked, in one sentence from Claude Code or Codex.
- Ask a teammate, assign work or set a reminder in Claude CodeAsk a teammate a question or for a review, assign an issue or remind yourself on a date, all from Claude Code or Codex. Answers arrive in your next chat.
- Ask Claude Code why the code is the way it isUse what your team saved: why code is built this way, whether a note is still true, what a change would break and who knows the file.
- Contextingo vs CLAUDE.md, AGENTS.md and memory toolsWhen a file is enough, and when a team needs shared records.