Use 15+ Agents like Claude Code, Pi and Grok inside Codex Desktop, without switching apps
They get the same Diff review, Fork and approvals as Codex, and can hand work to each other.
There is also a Web app: the same Codex interface with lower memory use, so you can use every Agent on this computer remotely from your phone or any other computer.
⭐ If CodexHost is useful to you, please give it a star! ⭐
Download · Quick Start · Desktop · Cross-Agent Collaboration · 微信交流群 · 简体中文 · 한국어
Click to collapse
![]() |
Thanks to VibeAPI for sponsoring this project! Built for power developers and teams, VibeAPI provides unified access to mainstream AI models, focusing on the Codex and Claude series with a self-managed, traceable account pool. It offers ultra-fast time to first token, 99.9% SLA availability, and cache hit rates of 95%+. Human technical support is available 24/7, with corporate invoicing and enterprise partnerships fully supported. Grab some cyber goodies → |
Option 1: npm (macOS / Windows / Linux)
npm install -g @codexhost/cli
codexhost # start Codex Desktop
codexhost web # start Web and open it in your browser
codexhost stop # stop all CodexHost background servicesOption 2: Installer (macOS / Windows)
Grab the installer for your platform from Releases. For Web: open codexhost after installing, then visit http://127.0.0.1:4400 locally.
Option 3: WinGet (Windows x64 / ARM64)
Install or upgrade with the same command:
winget install --id BytePioneer-AI.CodexHost --exactLinux is supported on x64 and ARM64. See the Linux guide.
Upgrade and stop: run codexhost update to upgrade, and codexhost stop to stop all background services. Before installing over an existing npm installation, run codexhost stop first.
Installation troubleshooting
codexhost does not start, or Codex opens without codexhost features
Run codexhost console (Windows: Start Menu → "codexhost console") to open the local console at http://127.0.0.1:4399/. It shows why the last start failed, the Codex Desktop version and Host Runtime logs, and can update codexhost while Codex is not running.
macOS: "App can't be verified" on first launch
xattr -dr com.apple.quarantine /Applications/codexhost.appWindows: using a portable Codex Desktop
-
Point
CODEXHOST_INSTALL_ROOTat the folder where you extracted Codex Desktop:[Environment]::SetEnvironmentVariable("CODEXHOST_INSTALL_ROOT", "D:\CodexPortable", "User")
-
Quit Codex Desktop completely, open a new terminal, and run
codexhost.
No more switching apps: Pi, Claude Code, Grok Build and 15+ other Agents all run in the same Codex Desktop window. Every session is in the sidebar, and you can switch Agents from the bottom-right of the composer.
codexhost-demo-github.mp4
More: tool details, usage, account import, diagram rendering
Feature support by Agent
Type # in the chat input, pick an Agent, and hand it a self-contained task:
Have
#claude-codereview this change on its own and flag any compatibility risks.Have
#pifigure out why this test is flaky.Have
#ompimplement this feature while I keep working on the docs.
Every delegated task runs as a separate native session in the target Agent. It shows up in the conversation list, so you can open it anytime to check progress or continue the conversation. When it finishes, the result returns to the session that started it.
|
Agents work in parallel
|
Reports back when done
|
For developers: local programs such as terminal scripts, Claude Desktop and always-on bots can also hand tasks to these Agents and wait for results through the codexhost delegate / codexhost thread commands or MCP. See external clients.
Tasks run on the other machine while the UI stays in your local Codex Desktop. Both machines need the same CodexHost version.
| Remote machine | How to connect |
|---|---|
| macOS / Linux | SSH |
| Windows | Remote Control (experimental) |
Before you start, add the remote machine in Codex Desktop under Settings → Connections → SSH. Your local machine can run macOS, Linux or Windows.
-
Install and start codexhost on the remote machine:
npm install -g @codexhost/cli codexhost remote install codexhost remote start codexhost remote status
-
On your local machine, launch Codex Desktop through codexhost and open the SSH workspace.
-
Pick an Agent from the composer's Agent / Model selector.
SSH setup, diagnostics and uninstall →
Use Agents on a Windows machine from another computer, built on the pairing and sign-in of Codex Desktop's official Remote Control.
Before you start, make sure official Remote Control can already run Codex tasks. No public services or ports are opened, and Agent credentials never leave the Windows machine.
Most multi-agent clients build their own chat UI and plug Agents in through a common protocol. CodexHost does it differently:
- Desktop: extends the official Codex Desktop via CDP / Electron Inspector, with no rebuilt chat UI and no patched installer
- Protocol: a CLI Shim sits in front of the official app-server and passes native Codex requests through untouched
- Agents: each Agent is integrated through its own native interface where one exists (Pi over RPC, Claude Code via the Agent SDK), falling back to ACP otherwise. Streaming, tool status, diffs, approvals and questions all render in Codex Desktop's native UI
- Orchestration: delegated tasks run as independent native sessions in the target Agent; the caller can wait for the result or let it run in the background
- Web: Desktop and Web connect to the same background Host, so there is one copy of each session, approval and question, and both sides see the same state
Please read the contributing guide before opening an issue or PR. See repository maintenance automation for PR title labels, CI summaries and pre-release checks.
Requirements: the official Codex Desktop, Node.js 22.19+ or 24, and Rust.
git clone https://github.com/BytePioneer-AI/codex-host
cd codex-host
npm ci
npm start| Command | Purpose |
|---|---|
npm start |
Build and start Desktop. |
npm start web |
Build and start Web with Web UI hot reload (default). |
npm start web -- --no-watch |
Build and start Web without hot reload. |
npm stop |
Stop the current user's local codexhost services across worktrees. |
Using Pi as an example, here is how a single request flows from left to right: Desktop → shared layer → Pi plugin → native process.
Most of the work is implementing the plugin's Manifest, factory, Adapter and Session, plus the native communication and translation logic. The Renderer still has some hard-coded wiring, so full Desktop integration takes extra work. Tip: point your coding Agent at the in-repo codexhost-add-harness Skill. It covers plugin structure, the shared Adapter interface, capability implementation and testing requirements.
- Thanks to the LINUX DO community for their ongoing support.
- Thanks to Paseo, whose approach to multi-Harness integration and architecture inspired ours.
- Thanks to DSH (DeepSeek Harness); CodexHost's Web client is built on DSH Web.
Thanks to everyone who has contributed to CodexHost.












