Lightweight by design
Run it as one Python process. No external database service or complicated infrastructure is required to get started.
ghc-api is a lightweight compatibility proxy for Claude Code, Codex, pi, OpenClaw, Chatbox clients, and the GitHub Copilot API. It passes through whenever possible and translates only where necessary.
pip install -U ghc-apiFree proxy does not mean free models. ghc-api provides no LLM, inference service, model access, or quota. Bring your own GitHub account with eligible GitHub Copilot access.
/v1/messages200content_block_delta↗in 8,241 · out 1,106✓Not another heavyweight gateway—just a focused, inspectable, and efficient compatibility layer.
Run it as one Python process. No external database service or complicated infrastructure is required to get started.
See original requests, forwarded payloads, headers, responses, and raw SSE streams. Debug with evidence, not guesses.
Pass through when possible. Translate only where real protocol gaps exist, while retaining evidence for inspection.
Connect code agents, automation, and chat UIs to the GitHub Copilot API through OpenAI- and Anthropic-compatible interfaces.
Recent requests stay in process memory for fast inspection of what entered the proxy, what changed, and what came back. Powerful debugging without a heavyweight observability stack.
/v1/messagesevent: message_start
data: {"type": "message_start"
}
event: content_block_delta
data: {"delta": {"text": "..."
}}
event: message_delta
data: {"usage": {"output_tokens": 1106}}Useful tools live together in one local web UI. Quiet when you do not need them, ready when you do.
Chat in the browser or control Claude Code, Codex, and Copilot CLI through ACP. Inspect text, thinking, tool calls, stdout/stderr, and token usage.
Trace the streaming path in this project
Inspecting SSE handlers...
Create, resume, and browse agent sessions while keeping work directories and message history.
Optionally sync sessions, token usage, and Claude Code, Codex, and ghc-api configuration through OneDrive.
Compare local and shared configuration, with timestamped backups before overwriting.
Optional JSON Lines persistence, reusable indexes, distributions, and exact request drill-down.
Recent API requests remain in process memory by default. File logging is opt-in and OneDrive access starts disabled. ghc-api never sends local proxy requests or sessions to this project website.
/messages → /responsesAdapt Anthropic Messages to Responses-only backends with stronger tool use, thinking, SSE, and context continuity.
View development branch ↗session observabilityCorrelate requests, tokens, retries, and timing while separating observed, inferred, and unknown intervals.
View development branch ↗Start a local compatibility endpoint in minutes. ghc-api provides proxy software—not LLM access or quota.