teslashibe

Open Agent API — Communication skill for Claude Code

Communication community

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: MIT](https://img.shields.io/badge/License-MIT-0d7377.svg)](LICENSE) [![Docs](https://img.shields.io/badge/docs-GitHub%20Pages-14212b.svg)](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