ginuerzh

LLM API Converter — AI skill for Claude Code

AI community

A GOST Rewriter HTTP plugin that converts bidirectionally between OpenAI Chat Completions and Anthropic Messages API formats.

How to install LLM API Converter

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

What LLM API Converter does

A GOST Rewriter HTTP plugin that converts bidirectionally between OpenAI Chat Completions and Anthropic Messages API formats.

Alternatives in AI

  • Deepreasoning — A high-performance LLM inference API and Chat UI that integrates DeepSeek R1's CoT reasoning traces with Anthr 5.4k ★
  • Claude To ChatGPT — This project converts the API of Anthropic's Claude model to the OpenAI Chat API format 1.3k ★
  • Free LLM — 79 free LLM API providers & 460+ free models (limits, no-card options) + Free-LLM Router: all of them behind o 1.1k ★

README

llm-api-converter

English | [简体中文](README.zh-CN.md)

A GOST Rewriter HTTP plugin that converts bidirectionally between **OpenAI Chat Completions**, **Anthropic Messages**, and **Google Gemini generateContent** API formats. Designed for use with tools like Claude Code, Codex CLI, OpenCode, and other LLM clients that speak any of these protocols.

Table of Contents

How it works

Deployed as a GOST rewriter plugin, it intercepts HTTP request/response bodies in a forward proxy and transparently converts between the two wire formats:

Anthropic SDK client → GOST → llm-api-converter → OpenAI-compatible API
                    ↕ (protocol conversion)       ↕
                Anthropic format               OpenAI format

The converter auto-detects the input format using **positive structural markers** only — no negative exclusions, no hardcoded model prefixes. A `SessionStore` tracks client protocol across request/response pairs for correct bidirectional routing. A URI-based fallback handles minimal requests that