Open Agent Api
Description
OpenAI-compatible chat API over local CLI sessions (Codex, Claude Code, Antigravity). Cursor BYOK + app gateway.
Installation
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open the source below and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
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
prompts.chat
| f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open sourc
Communication Internal Comms
Write internal communications like status reports, newsletters, and FAQs
Communication mcp-server-slack
Slack workspace integration.
Communication Google Workspace Groups Settings
Manage Google Groups settings
Communication Open Saas
A 100% free modern JS SaaS boilerplate (React, NodeJS, Prisma). Full-featured: Auth (email, google, github, sl
slack
| Communication | Slack integration via HTTP/OAuth MCP |
Communication