PCTUTU.comBack to PCTUTU.com
GitHub projects
opencodexUtilities
Category
Utilities
Publisher
lidge-jun
Repository
Open repository
Release
Open release
Current version
v2.100.13
Release date
2026-12-03
Package size
macOS 115.1 MB · Windows 73.6 MB
Utilities · lidge-jun

opencodex

One local gateway for your AI coding tools and models. Use the models you choose with Codex, Claude Code, Claude Desktop and Grok Build, and connect OpenCode, Pi, Qoder, WorkBuddy, Kilo, Cline, T3 Code and more through managed configs. See every supported tool → Part of GOAT: run your coding agents on any model, on any machine → trygoat.ai

Version v2.100.13
Available for macOS and Windows

README

opencodex — one local gateway for Codex, Claude Code, Claude Desktop, Grok Build and more

One local gateway for your AI coding tools and models.

Use the models you choose with Codex, Claude Code, Claude Desktop and Grok Build,
and connect OpenCode, Pi, Qoder, WorkBuddy, Kilo, Cline, T3 Code and more through managed configs.

See every supported tool →

Part of GOAT: run your coding agents on any model, on any machine → trygoat.ai

Follow @claudeebum on X npm version license node version

npm install -g --allow-scripts=bun @bitkyc08/opencodex
ocx start

Download for macOS (.dmg) Download for Windows (.msi) Download for Linux (.AppImage) Download for Linux (.deb)

Claude Code, running any model

The picker is stock Claude Code. The brain behind it isn't.

Claude Code running a routed model through opencodex — the status bar shows gpt-5.6-luna-medium as the active model

Codex, running any model

Pick a provider and go — same workflow, different brain.

opencodex demo — running a task in the Codex app on a routed non-OpenAI model

Claude Desktop, running any model

Opus answers, then hands the task to a GPT-5.6 Sol subagent.

Claude Desktop answering as Claude Opus 4.8, then dispatching a GPT-5.6 Sol subagent through opencodex

Grok Build, running any model

Sol drives the session and calls a Kimi K3 subagent.

Grok Build running GPT-5.6 Sol through opencodex and calling a Kimi K3 subagent

English · Français · 한국어 · 简体中文 · 繁體中文 · Русский · 日本語 · Türkçe · Español · 📖 Full documentation →

opencodex is a lightweight local gateway between your coding tools and your model providers. It accepts the Responses, Chat Completions and Anthropic Messages APIs and translates each request into whatever your provider speaks, carrying streaming, tool calls, reasoning and images where the client, model and provider support them. Use Claude, Gemini, Grok, GLM, DeepSeek, Kimi, Qwen, Ollama and other providers with Codex, Claude Code, Claude Desktop, Grok Build and the tools listed on the client support page.

Quick start

Personal install (CLI)

npm install -g --allow-scripts=bun @bitkyc08/opencodex   # Node 18+; the Bun runtime is bundled automatically
ocx start                         # proxy + dashboard on localhost:10100

Use ocx service to run it in the background.

Open http://localhost:10100 and configure everything in the web dashboard — add providers (40+ built-ins, or any OpenAI-compatible endpoint), pick models, manage accounts. ocx gui re-opens the dashboard at any time.

Connect your tool

Connect the tool you already use:

Tool How to connect
Codex Turn on the Codex switch on the dashboard's Route page, then run codex as usual. On a local listener this points Codex's built-in provider at the proxy. From the terminal, run ocx init before adding providers in the dashboard and accept its Codex prompt.
Claude Code With the claude CLI installed, run ocx claude. It starts the proxy if needed and launches Claude Code through it.
Claude Desktop Run ocx claude desktop. On a new install it sets up the gateway profile for the whole app; an existing first-party setup is kept, and ocx claude desktop apply --gateway switches explicitly. See the Claude Code guide. Fully quit and reopen Claude Desktop after a switch.
Grok Build On a local listener with Grok integration enabled, ocx start registers the models when ~/.grok exists; pick an ocx-* model in Grok Build. Remote setups: see the Grok Build guide. After adding providers, restart the proxy (or run ocx ensure when Codex autostart is enabled) to refresh the list.
Google Antigravity (desktop) On the dashboard, open Route → Antigravity (also linked from Route → Clients), or run ocx connect antigravity on the machine where it is installed.
agy (CLI) Use Route → Antigravity or run ocx connect agy on the machine where it is installed. Reload the indicated shell profile before running agy.
Tools with a managed integration Use the dashboard Route page, or ocx integration client enable --client <id>.
Any other tool Set a custom OpenAI-compatible base URL of http://localhost:10100/v1, or an Anthropic base URL of http://localhost:10100.

The client support page lists which path each tool has and which protocol it speaks.

Desktop app (beta)

The desktop app is the same proxy and dashboard in a native window, with a tray and bundled ocx. It attaches to a proxy that is already running, or starts its bundled one, and the dashboard stays on the proxy port (http://localhost:10100 unless you configured another). Pick the file for your platform from the latest release:

Platform File Notes
macOS 13+ (Apple Silicon and Intel) OpenCodex-<version>-macos.dmg Universal build, signed with a Developer ID and notarized
Windows (x64) OpenCodex-<version>-windows-x64.msi Code signing via SignPath Foundation is rolling out (code signing policy); until a release is signed, SmartScreen asks once: choose More info → Run anyway
Linux (x86_64) OpenCodex-<version>-linux-x86_64.AppImage or -linux-amd64.deb The tray needs an AppIndicator-capable desktop

Every file has a .sha256 next to it on the release page. On macOS 14+ the app also ships a WidgetKit extension that shows proxy status, today's usage and provider quotas; the snapshot model it renders lives in app/ (MenuBarCore). To build the app yourself, run bun install && bun run build:gui at the repository root, then in desktop/ run bun install && bun run prepare-sidecar && bun run prepare-widget && bun run build:local on macOS, or bun install && bun run prepare-sidecar && bun run build:local on Windows and Linux (the widget step needs macOS). The Desktop App guide and the macOS Menu Bar App guide cover first launch, and AGENTS_INSTALL.md lists everything written to disk.

Sponsors

Sponsors keep opencodex maintained across every upstream protocol change. Interested? See SPONSORS.md.

OrcaRouter Thanks to OrcaRouter for sponsoring this project! OrcaRouter is one OpenAI-compatible AI gateway for production AI: adaptive routing that grades every prompt and sends it to the model that clears your bar, automatic failover, routing rules as code, zero-markup provider pricing with prompt caching, and guardrails, an agent firewall, and request logs on every call across 200+ models. Pick OrcaRouter in the Add provider picker or run ocx provider add orcarouter; orcarouter/auto is the adaptive router.
TokenLab Thanks to TokenLab for sponsoring this project! TokenLab gives coding agents one API key for leading models, supporting OpenAI Responses and Chat Completions, Anthropic Messages, and Gemini's native API formats, with streaming and tool calling. It also provides an MCP server and agent Skills for easy integration. Choose your delivery mode and pay as you go. Pick TokenLab in the Add provider picker or run ocx provider add tokenlab.
TokenLab 为编程智能体提供统一的多模型 API,一枚 API Key 即可接入主流模型,支持 OpenAI Responses、Chat Completions、Anthropic Messages 和 Gemini 原生 API 格式,以及流式输出和工具调用。同时提供 MCP 服务器和 Agent Skills,方便接入现有工作流;交付模式可选,按量付费。
Publisher informationSoftware details and release files are provided by the publisher.