akaiserg

SDK To API — Git skill for Claude Code

Git community

Local server that turns your Claude Code, GitHub Copilot or ChatGPT (Codex) subscription into an OpenAI- and Anthropic-compatible API.

How to install SDK To API

This entry records only its repository, not the path inside it, so there is no exact command to give. Open akaiserg/sdk-to-api and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What SDK To API does

Local server that turns your Claude Code, GitHub Copilot or ChatGPT (Codex) subscription into an OpenAI- and Anthropic-compatible API. Streaming, tool calling, structured output and prompt caching. Works with Strands Agents, the official SDKs and curl.

Alternatives in Git

  • Openclaude — Open Claude Is Open-source coding-agent CLI for OpenAI, Gemini, DeepSeek, Ollama, Codex, GitHub Models, and 20 22.5k ★
  • Awesome ChatGPT — Search awesome-ChatGPT-repositories for open-source GitHub repositories related to ChatGPT and LLMs 3.2k ★
  • Copilot API — Turns GitHub Copilot into an OpenAI/Anthropic API compatible server, usable with Claude Code 3.1k ★

README

sdk-to-api

[![ci](https://github.com/akaiserg/sdk-to-api/actions/workflows/ci.yml/badge.svg)](https://github.com/akaiserg/sdk-to-api/actions/workflows/ci.yml) [![release](https://img.shields.io/github/v/release/akaiserg/sdk-to-api)](https://github.com/akaiserg/sdk-to-api/releases) [![license: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)

Use your **Claude Code**, **GitHub Copilot** or **ChatGPT (Codex)** subscription as an **OpenAI** or **Anthropic** API.

sdk-to-api is a local server. It speaks the OpenAI Chat Completions API and the Anthropic Messages API, and runs every request on the agent SDK of a subscription you already have. Point any OpenAI or Anthropic client at it, such as [Strands Agents](https://strandsagents.com/), the official SDKs or curl. The client sees a normal API: streaming, tool calls, structured output, usage numbers and errors all look like the real thing.

your agent ──OpenAI / Anthropic API──▶ sdk-to-api ──▶ Claude Code │ Copilot │ Codex

Quick start

**1. Install**

sdk-to-api runs the agent CLIs you already have, so install the ones you want to use first: [Claude Code](https://docs.anthropic.com/en/docs/claude-code) (`claude`) and/or the [Codex CLI](https://github.com/openai/codex) (`codex`). Copilot needs nothing extra with the full build.

Then pick one:

# a release binary (macOS / Linux): https://github.com/akaiserg/sdk-to-api/releases

# with Go 1.26+
go install github.com/akaiserg/sdk-to-api/cmd/sdk-to-api@latest

# from source
make build          # Claude Code + Codex             → bin/sdk-to-api (~16MB)
make build-full     # + the Copilot runtime embedded → bin/sdk-to-api (~100MB)

Release binaries and `go install` include Claude Code and Codex. For Copilot, use `make build-full` (or set `COPILOT_CLI_PATH`).

**2. Log in** to the subscriptions you want to use (once):

Backend Subscription Log in with
claude-code Claude Pro / Max claude, then /login