# lidge-jun/opencodex

Universal provider proxy for OpenAI Codex & Claude Code — use any LLM (Claude, Gemini, Grok, DeepSeek, Ollama…) with Codex CLI, App, SDK, and Claude Code

Repository: https://github.com/lidge-jun/opencodex
Canonical: https://ross.abutalabs.com/products/opencodex
Homepage: https://opencodex.me/
Language: TypeScript
License: MIT
License Family: permissive
Topics: ai-tools, claude, codex, gemini, llm, openai, proxy, typescript, anthropic, codex-cli, developer-tools, kiro, ai-gateway, chatgpt, claude-code, deepseek, grok, llm-proxy, ollama, openrouter
Last push: 2026-08-26T19:57:21+00:00

## Health v2 (maintenance only)
Score: 76/100 (v2, computed 2026-09-03T02:39:23.370411+00:00)
- activity 99, release rhythm 87, longevity 5
- inputs: {"age_days": 76, "days_push": 7, "days_rel": 8, "gap_med": 0, "n_releases_24m": 152}
- flags: young
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 12224, forks 898 (observed 2026-08-28T04:10:52.018834+00:00)

## What it is
opencodex is a lightweight local proxy (installed via npm, running on a bundled Bun runtime) that translates OpenAI Codex's Responses API and Claude Code's wire format into any LLM provider's API — Anthropic, Gemini, Grok, DeepSeek, Kimi, Ollama, OpenRouter, and 40+ others. It supports streaming, tool calls, reasoning tokens, and images in both directions, with a web dashboard, model routing, ChatGPT account pooling, and sub-agent support, all without patching the client.

## Use cases
- use Claude or Gemini models with OpenAI Codex CLI
- run Claude Code on non-Anthropic models
- route Codex App requests to DeepSeek or Ollama
- pool multiple ChatGPT accounts for Codex quota balancing
- translate OpenAI Responses API to Anthropic Messages format
- add web search and vision sidecars to routed models
- pin multiple models as Codex spawn_agent sub-agents

## When to choose
- you use Codex CLI/App/SDK or Claude Code but want models from other providers
- you want a zero-patch local proxy that handles streaming, tool calls, and reasoning tokens
- you need ChatGPT account pooling with quota-aware routing
- you want routed models to appear natively in the Codex model picker

## When to avoid
- you only use OpenAI models directly with no need for provider translation
- you need a hosted/production gateway rather than a local developer proxy
- your client is not Codex, Claude Code, Claude Desktop, or Grok Build
- you cannot run Node >= 18 or install global npm packages

## Facets
- artifact type: cli-tool
- maturity: active
- function: proxy, llm-inference, api-framework, http-server, cli, middleware
- domain: large-language-models, developer-tools, artificial-intelligence, apis
- platform: cli, cross-platform, windows
- tags: llm-proxy, codex-cli, claude-code, api-translation, model-routing, provider-adapter, openai-responses-api, anthropic, gemini, ollama, openrouter, chatgpt-account-pool, sub-agents, web-dashboard, ai-agents, command-line, nodejs, macos, linux

## Member repositories
- lidge-jun/opencodex (main) score 76

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:52.018834+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:14:15.818862+00:00, confidence not recorded.
  - readme: https://github.com/lidge-jun/opencodex (fetched 2026-08-28T04:10:52.018834+00:00, sha d2b9901d7a2b)
  - homepage: https://opencodex.me/ (fetched 2026-08-29T08:12:17.572393+00:00, sha 079977e2975c)
  - site_page: https://opencodex.me/getting-started/installation (fetched 2026-08-29T08:12:17.575187+00:00, sha eb285814517a)
  - site_page: https://opencodex.me/getting-started/quickstart (fetched 2026-08-29T08:12:17.577255+00:00, sha 6412a6c7acd2)
  - site_page: https://opencodex.me/getting-started/how-it-works (fetched 2026-08-29T08:12:17.579102+00:00, sha 9e95ea1f8502)
  - site_page: https://opencodex.me/getting-started/for-agents (fetched 2026-08-29T08:12:17.581464+00:00, sha d0c11e869eb5)
- Data as of 2026-08-30T08:39:29.467469+00:00.
