# opencodex

> Provider proxy letting Codex CLI and Claude Code use any LLM provider.

- Type: agent or tool
- Field: Developer Tools
- Repository: https://github.com/lidge-jun/opencodex
- GitHub stars: 18776
- Licence: MIT
- Language: TypeScript
- Last push: 2026-11-27
- Page: https://imutechz.in/agents/opencodex

## What it is
opencodex is a lightweight local gateway that sits between AI coding tools and model providers. It accepts the Responses, Chat Completions and Anthropic Messages APIs and translates each request into whatever the provider speaks, carrying streaming, tool calls, reasoning and images where supported. It is aimed at people who want to use Claude, Gemini, Grok, GLM, DeepSeek, Kimi, Qwen, Ollama and other providers with tools like Codex, Claude Code, Claude Desktop and Grok Build.

## Features
- Local proxy with a web dashboard on localhost:10100
- Accepts Responses, Chat Completions and Anthropic Messages APIs
- Translates requests to the provider's API, including streaming, tool calls, reasoning and images
- 40+ built-in providers plus any OpenAI-compatible endpoint
- Connect tools such as Codex, Claude Code, Claude Desktop and Grok Build
- Run in the background with ocx service

## Best for
- Using non-default models with Codex or Claude Code
- Routing several coding tools through one local gateway
- Adding custom OpenAI-compatible providers
- Managing provider accounts and model choices from a dashboard

## Pros
- Supports many providers and clients through one local gateway
- Configuration is done in a web dashboard
- Bundles the Bun runtime automatically
- Can run in the background as a service

## Cons
- Requires Node 18+
- Install uses npm with --allow-scripts=bun

## Install
```
npm install -g --allow-scripts=bun @bitkyc08/opencodex
```

## Usage
```
ocx start
```

Tags: llm-proxy, codex, claude-code, local-gateway, model-routing, openai-compatible, developer-tools, api-translation
