Codex alternatives for repository coding agents

Compare OpenCode, Qwen Code and Codewhale for repository edits and coding tasks. Choose an agent, model provider and workspace you control.

Codex is OpenAI's coding agent for working on repositories, editing files and running development commands. Its terminal, IDE and cloud interfaces let developers investigate a bug or delegate a coding task without assembling a separate agent workflow. The desktop free tier has a narrower scope than the paid CLI, IDE and cloud offering.

OpenCode separates planning from changes and supports local or hosted models. Qwen Code adds agent teams and isolated worktrees. Codewhale combines saved sessions, permission controls and a local browser interface, while OpenHands handles recurring engineering work. These Codex alternatives cover different ways to run and review repository tasks; model access and hosted execution remain separate choices.

An open source AI coding agent works in your terminal or IDE with local models or cloud models including Claude, GPT and Gemini.

Screenshot of OpenCode website

OpenCode replaces Codex repository work with a model-flexible terminal or IDE agent. A planning agent explores code without editing by default, while the development agent changes files. Automatic language-server context and parallel sessions support work across a project.

An open-source AI coding agent for macOS, Windows and Linux that supports local models through Ollama or vLLM and cloud model APIs.

Screenshot of Qwen Code website

Qwen Code suits Codex tasks that need planning, code changes and agent collaboration. It offers subagents, agent teams, MCP tools and isolated worktrees, with headless operation for scripts. Local models through Ollama or vLLM and several hosted providers are available.

An open-source AI coding agent for editors, terminal and desktop, with local models through Ollama or LM Studio and an Apache 2.0 core.

Screenshot of Cline website

Cline brings Codex-style repository tasks into an existing editor, a terminal or its desktop app. Plan and Act modes separate the proposed approach from execution, while diffs and checkpoints support review. The CLI also runs recurring work in scripts and CI, with local or hosted model connections.

An open-source coding agent for macOS, Linux and Windows that uses local or hosted models, with terminal and local browser clients that need no account.

Screenshot of Codewhale website

Codewhale suits Codex users who want repository edits with explicit permissions and recovery controls. Read code in planning mode, review diffs and command results, then resume a saved session from the terminal or local browser. Fleet divides larger tasks among agents with different roles and models.

An open-source AI coding agent for VS Code, JetBrains, and the CLI, with local model support, hosted model access, and an MIT license.

Screenshot of Kilo Code website

Kilo Code covers Codex coding tasks in an IDE or CLI, with planning, debugging and coordinated file changes. Run parallel work in isolated worktrees and switch models during a task. It also offers inline completions when you want the agent alongside everyday editing.

A terminal coding assistant with IDE tools that runs on macOS, Linux and native Windows, using local OpenAI-compatible servers or cloud providers.

Screenshot of Oh My Pi website

Oh My Pi covers Codex-style repository tasks in a terminal, with code intelligence, debugger access and delegated agents. Project memory and separate planning, coding and review models suit work that continues across sessions.

A terminal coding agent that runs locally, supports Ollama and cloud models, and lets developers customize tools and workflows under the MIT license.

Screenshot of Pi website

Pi suits Codex users who want to shape their terminal agent through extensions, reusable skills and project instructions. Branching sessions and scripted output support alternative approaches and automation; Pi has no built-in permission system.

A terminal AI coding assistant that connects to local backends such as Ollama and llama.cpp or cloud APIs, with model switching that preserves context.

Screenshot of Crush website

Crush handles Codex-style coding conversations in the terminal, with language-server context and MCP tools. You can switch models while retaining context and keep several sessions per project, using local endpoints or hosted providers.

An open source terminal coding assistant connects to Ollama, LM Studio or cloud models and recalls information from previous sessions.

Screenshot of jcode website

jcode replaces Codex's terminal coding interface with an assistant that recalls earlier sessions and checks stored memories for stale or conflicting details. It connects to local model endpoints or your chosen cloud provider.

A local AI coding agent for macOS, Linux and Windows that uses Kimi's cloud API by default, supports other providers, and connects to Zed and JetBrains.

Screenshot of Kimi Code CLI website

Kimi Code CLI replaces Codex's interactive repository work with an agent that inspects code, edits files and runs shell commands. It also accepts video references and connects to compatible editors; the default inference service is Kimi's hosted API.

A terminal coding assistant edits local files and runs tests using providers such as OpenAI and Anthropic. Apache 2.0; its search server can be self-hosted.

Screenshot of Forge website

Forge suits developers replacing Codex for feature work, bug fixes and project investigation in the terminal. Its implementation agent makes changes, while separate agents inspect architecture and draft plans without changing project code.

7.6KApache-2.0

Terminal coding agent edits local files and runs commands. Default inference uses xAI; custom BYOK endpoints are supported. First-party code is Apache 2.0.

Grok Build offers terminal and headless coding sessions for Codex users who want local tool execution, workspace checkpoints and sandbox profiles. Model requests go to xAI by default, with separate configuration for organization BYOK endpoints.

28KApache-2.0macOSWindowsLinux

A locally installed coding agent for macOS, Linux and Windows uses selected model providers, with sandboxed commands. Open source under Apache 2.0.

Screenshot of Open Interpreter website

Open Interpreter is a Codex-derived terminal agent with configurable models and provider-specific agent behavior. It supports the Codex exec protocol and repository instructions, with QA skills for checking web or native apps.

69KApache-2.0macOSWindowsLinux

An open-source terminal coding assistant that edits projects with local or cloud LLMs, maps codebases and commits changes to Git.

Screenshot of Aider website

Aider suits Codex users who prefer a terminal assistant closely tied to Git. A repository map supplies code context, edits become reviewable commits, and lint or test feedback can guide follow-up changes. Choose a local or hosted model for the task.

50KApache-2.0macOSWindowsLinux

Local terminal coding and research agent with persistent Python sessions and parallel subagents. Hosted model routes use subscription or API-key access.

Prime Agent covers repository work with persistent Python sessions and cooperating subagents. Background tasks survive a terminal disconnect, and saved goals or schedules let work continue within limits you set.

23K

A self-hosted AI coding agent platform runs locally or on servers, supports Claude Code and Codex, and automates engineering workflows.

Screenshot of OpenHands website

OpenHands covers the delegated and recurring engineering side of Codex. Agents investigate failures, apply changes, run checks and prepare pull requests, with repository events or schedules starting work. Run its own agent on infrastructure you control; selecting Codex as the backend would keep Codex in the workflow.

An Apache 2.0 AI agent for macOS, Windows and Linux, with desktop and CLI interfaces and support for Ollama or cloud model providers.

Screenshot of Goose website

Goose suits Codex tasks that combine coding with research or other connected tools. Work from its desktop app or CLI, use MCP extensions and choose Ollama or a hosted provider. It is a broader personal agent rather than a dedicated cloud coding service.

57KApache-2.0macOSWindowsLinux

A desktop AI coding workspace runs on macOS, Windows and Linux, with local models through Ollama or LM Studio and file-by-file change review.

Screenshot of cc-haha website

cc-haha gives repository agents a desktop workspace with file-by-file diffs, whole-turn undo and an embedded browser for previews. Separate sessions and Git worktrees keep tasks apart; model connections include Ollama and LM Studio.

A self-hosted AI coding platform for teams, with offline private deployment, server-side task environments and GLM, Qwen and DeepSeek support.

MonkeyCode suits teams delegating repository tasks into managed development environments. Agents can build, test and preview changes, with automated pull-request review and mobile access to ongoing work.

5.2KAGPL-3.0iOSAndroidWeb

An open-source terminal coding agent and Python toolkit that supports local models through llama.cpp, cloud providers, and MCP tools.

Screenshot of Fast Agent website

Fast Agent covers terminal coding and scripted agent tasks with shell tools and your chosen model. You can connect the same agents to compatible editors through ACP or reuse them in Python workflows.

4KApache-2.0

A self-hosted coding assistant and Python agent framework that branches runs to compare approaches and supports local models through Ollama.

Screenshot of Pydantic DeepAgents website

Pydantic DeepAgents covers repository changes with checkpoints and reviewable file edits. Parallel branches keep competing approaches separate, and an optional judge can use test results to help choose a continuation.

1.1KMIT

An open-source terminal AI agent edits code, runs shell commands and searches the web using Google's cloud Gemini models.

Screenshot of Gemini CLI website

Gemini CLI offers a terminal coding agent with file operations, shell execution, project instructions and MCP integrations. It uses Google Gemini services rather than Codex model access.

109KApache-2.0macOSWindowsLinux

For Codex, start with OpenCode. Other alternatives include Qwen Code, Cline, Codewhale and Kilo Code.

Most are Terminal Coding Agents; others include Autonomous Coding Agents.

People also replace

See all