Skip to content

kontext-dev/codex

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

npm i -g @openai/codex
or brew install --cask codex

Codex CLI is a coding agent from OpenAI that runs locally on your computer.

Codex CLI splash


If you want Codex in your code editor (VS Code, Cursor, Windsurf), install in your IDE.
If you are looking for the cloud-based agent from OpenAI, Codex Web, go to chatgpt.com/codex.


Kontext-Dev fork

This fork wires Codex CLI to the Kontext-Dev MCP server using the kontext-dev Rust SDK. It uses a single MCP server and refreshes SEARCH/EXECUTE tools before each user turn. The diff stays minimal so upstream updates are easy to rebase.

Configuration (local)

Create agents at https://app.kontext.dev/ to get client credentials and visibility into your agents (like this Codex client). Then copy the credentials into ~/.codex/config.toml:

[kontext-dev]
mcp_url = "http://localhost:4000/mcp"
token_url = "http://127.0.0.1:4444/oauth2/token"
client_id = "<client_id>"
client_secret = "<client_secret>"
scope = "mcp:invoke"
server_name = "kontext-dev"

Do not commit secrets.

Running locally

cd codex-rs
cargo run --bin codex

Default branch: kontext-dev. main mirrors openai/codex, and kontext-dev is rebased onto main to stay current.

Quickstart

Installing and running Codex CLI

Install globally with your preferred package manager:

# Install using npm
npm install -g @openai/codex
# Install using Homebrew
brew install --cask codex

Then simply run codex to get started.

You can also go to the latest GitHub Release and download the appropriate binary for your platform.

Each GitHub Release contains many executables, but in practice, you likely want one of these:

  • macOS
    • Apple Silicon/arm64: codex-aarch64-apple-darwin.tar.gz
    • x86_64 (older Mac hardware): codex-x86_64-apple-darwin.tar.gz
  • Linux
    • x86_64: codex-x86_64-unknown-linux-musl.tar.gz
    • arm64: codex-aarch64-unknown-linux-musl.tar.gz

Each archive contains a single entry with the platform baked into the name (e.g., codex-x86_64-unknown-linux-musl), so you likely want to rename it to codex after extracting it.

Using Codex with your ChatGPT plan

Run codex and select Sign in with ChatGPT. We recommend signing into your ChatGPT account to use Codex as part of your Plus, Pro, Team, Edu, or Enterprise plan. Learn more about what's included in your ChatGPT plan.

You can also use Codex with an API key, but this requires additional setup.

Docs

This repository is licensed under the Apache-2.0 License.

About

Lightweight coding agent that runs in your terminal

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 97.3%
  • Python 1.3%
  • TypeScript 0.8%
  • Starlark 0.2%
  • PowerShell 0.1%
  • JavaScript 0.1%
  • Other 0.2%