# How do I connect Codex CLI to Contextingo?

Canonical: [How do I connect Codex CLI to Contextingo?](https://contextingo.com/answers/how-to-connect-codex-cli-to-contextingo)

Locale: en

Purpose: Run `npx contextingo init <code>` in the repository folder, with the code from the project’s Connect tab. It finds Codex CLI (and Claude Code) on your computer, connects each with your personal key and installs the hook.

Content updated: 2026-10-29

Source revision: content.ts 2026-10-29

Maintenance owner: the Contextingo site owner

[Topic map](https://contextingo.com/llm/topics/answers.md) · [Complete scoped map](https://contextingo.com/sitemap.md)

**Short answer.** Run `npx contextingo init <code>` in the repository folder, with the code from the project’s Connect tab. It finds Codex CLI (and Claude Code) on your computer, connects each with your personal key and installs the hook.

## What it changes

- Adds the project’s MCP server to Codex.
- Installs the local hook.
- Appends a short section to AGENTS.md that points to the project. Existing content is only appended to.

## Check it works

Open Codex in the folder and ask it to continue an issue. It should call `session_start` and read the brief.

## Go deeper

- [Connect Codex CLI to your project knowledge and issues over MCP](https://contextingo.com/guides/codex-cli-mcp-server-setup)

## Questions

### Does it need an OpenAI API key?

No. Codex runs on your own plan.
