codex
View on GitHubLightweight coding agent that runs in your terminal
Codex CLI is OpenAI's lightweight open-source coding agent that runs locally in your terminal, written in Rust. It reads and edits code, runs shell commands in a sandbox, supports MCP servers, skills, and scriptable `codex exec`, and can sign in with a ChatGPT plan or API key.
Use Cases
Run a coding agent locally in the terminalGenerate and edit code from natural language promptsExecute shell commands and apply patches autonomouslyRun non-interactive/scripted agent tasks in CI via codex execControl tool permissions and execution policySandboxed command execution for safetyExtend the agent with MCP serversLoad agent skills and slash commandsSign in with a ChatGPT plan or API keyUse the same agent inside VS Code, Cursor, or WindsurfAutomate repo-wide code changes and refactorsRead AGENTS.md to give the agent project context
Built With
- Language
- Rust
- Frameworks
- Rust · Bazel · Cargo · Node.js · pnpm · Nix · Model Context Protocol SDK · Prettier
Tags
coding-agent · cli · terminal · rust · openai · sandbox · mcp · agent-skills · slash-commands · code-execution · non-interactive-exec · full-auto · ide-integration · chatgpt-auth · apache-2.0 · agent-policy