Codex CLI is a local-first coding agent powered by Mistral AI.
If you want Codex inside your editor (VS Code, Cursor, etc.) stay tuned for the upcoming IDE extension.
Install globally with your preferred package manager. If you use npm:
npm install -g @mistralai/codexAlternatively, if you use Homebrew:
brew install mistral-codexThen simply run codex to get started:
codexCreate an account on console.mistral.ai, generate an API key and export it:
export MISTRAL_API_KEY="sk-..."Run codex and you’re ready to start coding with Mistral models.
See the authentication guide for details.
Codex CLI supports MCP servers. Enable by adding an mcp_servers section to your ~/.codex/config.toml.
Codex CLI supports a rich set of configuration options, with preferences stored in ~/.codex/config.toml. For full configuration options, see Configuration.
- Getting started
- Sandbox & approvals
- Authentication
- Advanced
- Zero data retention (ZDR)
- Contributing
- Install & build
- FAQ
- Open source fund
This repository is licensed under the Apache-2.0 License.
