Open Agent API — Communication skill for Claude Code
OpenAI-compatible chat API over local CLI sessions (Codex, Claude Code, Antigravity).
How to install Open Agent API
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open teslashibe/open-agent-api and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Open Agent API does
OpenAI-compatible chat API over local CLI sessions (Codex, Claude Code, Antigravity). Cursor BYOK + app gateway.
Alternatives in Communication
- HolaOS — Open-source agentic workspace enterprises can make their own 10.9k ★
- Lark Coding Agent Bridge — Bot that bridges Feishu/Lark messenger with a local Claude Code or Codex CLI 2.4k ★
- Openab — A lightweight, secure, cloud-native ACP harness that bridges Discord and any ACP-compatible coding CLI 321 ★
README
Open Agent API
[](LICENSE) [](https://teslashibe.github.io/open-agent-api/)
**Docs:** https://teslashibe.github.io/open-agent-api/
A Go proxy that looks like OpenAI Chat Completions. Point Cursor BYOK (or any OpenAI SDK) at it and it uses the CLI/OAuth sessions you already have — no OpenAI `sk-` keys:
| Surface | Auth | Serves |
|---|---|---|
| Codex / ChatGPT | codex login → ~/.codex/auth.json |
GPT-6 Astra, GPT-5.6 Sol/Terra/Luna, GPT-5.5, Spark |
| Gemini / Antigravity | scripts/sync-antigravity-auth.sh |
Gemini 2.5/3.x + Antigravity gateway IDs |
| Claude Code | claude CLI login / OAuth env |
Haiku / Sonnet / Opus / Fable |
GPT-6 Astra exposes `low` through `max`. Ultra is intentionally unsupported because official Codex Ultra adds proactive multi-agent delegation, while this gateway makes one upstream API request and cannot provide that orchestration honestly.
The Codex path is reverse-engineered from `codex_cli_rs`. Stay within each provider’s terms. Licensed under [MIT](LICENSE).
Quick start
git clone https://github.com/teslashibe/open-agent-api.git
cd open-agent-api
codex login
scripts/sync-antigravity-auth.sh # optional: Gemini 3.x / Antigravity
docker compose up --build -d
curl -s http://127.0.0.1:8088/health
curl -s http://127.0.0.1:8088/v1/chat/completions \
-H 'authorization: Bearer local-open-agent-api' \
-H 'content-type: application/json' \
-d '{"model":"gpt-5.6-terra","messages":[{"role":"user","content":"Say hi in five words."}]}' | jq .
Cursor BYOK **can’t use localhost** — tunnel it with your own ngrok domain:
NGROK_DOMAIN=YOUR_SUBDOMAIN.ngrok-free.dev NGROK_AUTHTOKEN=... \
docker compose -f docker-compose.yml -f docker-compose.cursor.yml -f docker-compose.ngrok.yml up --build -d
To pool two local Codex accounts, place each account's
Related Skills
Ccproxy
Single-binary Go server that wraps the Claude Code CLI behind an OpenAI-compatible API (/v1/chat/completions,
FreeDeepseekAPI EN
Local OpenAI-compatible API proxy for DeepSeek Web Chat (Global English Version). Connects DeepSeek to Open We
Oh My Coding Maas Gateway
LiteLLM proxy gateway to Huawei ModelArts MaaS for coding agents. Supports opencode, Codex CLI, and Claude Cod
Sandbase Skills
88 installable open-source Agent Skills for research, social intelligence, marketing, and business workflows—c
Acp2api
🔌 acp2api — OpenAI-compatible HTTP gateway for ACP agents. Any OpenAI client can drive Devin, Claude, Codex o
AIRelays
Independent OpenAI-compatible local relay for your own ChatGPT and Claude subscriptions: one standard /v1 API
Related Agents
Codex CLI
Codex CLI → any OpenAI-compatible endpoint
Codex Orchestrator
CLI tool for delegating tasks to GPT Codex agents via tmux sessions. Designed for Claude Code orchestration wi
Claudable
by Ethan Park - Claudable is an open-source web builder that leverages local CLI agents, such as Claude Code a