Skip to content

A local proxy server that converts and forwards OpenAI API format endpoints to Anthropic Claude API format

License

Notifications You must be signed in to change notification settings

Skillter/OpenAI-to-Claude-API-Converter-Proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenAI to Claude API Converter Proxy

A local proxy server that converts OpenAI API format requests to Anthropic Claude API format.

Features

  • Full API Conversion: Converts OpenAI chat completions to Claude Messages API
  • Streaming Support: Real-time streaming responses
  • Tool/Function Calling: Full support for function calling and tools
  • Image Support: Handles base64 and URL-based images
  • Model Passthrough: Unknown models pass through unchanged (use Claude models directly)
  • Auto-Configuration: Generates config.json on first run

Quick Start

  • Download the exe from the latest release, or build it yourself from the source.
  • Double click to run it in the background, or place it inside of:

C:\Users\NAME\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup or C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup to run automatically on every system startup.

  • The config will appear in the same directory, or alternatively in the current user's folder if there are no write permissions (eg. C:\Users\NAME\.openai-claude-proxy)

Build Executable (Windows)

# clone the repo (git required, or simply download the source code)
git clone https://github.com/Skillter/OpenAI-to-Claude-API-Converter-Proxy.git
cd OpenAI-to-Claude-API-Converter-Proxy
# build the exe (python required)
python build.py

Run from Source

git clone https://github.com/Skillter/OpenAI-to-Claude-API-Converter-Proxy.git
cd OpenAI-to-Claude-API-Converter-Proxy
python run.py

Last words

Feel free to open pull requests or an issue.

If you find this project useful, please consider giving it a star ⭐ or share it by the word of mouth. Those things help a lot. thanks.

Made with ❤️ by Skillter

Developer's Website Developer's Github Profile

About

A local proxy server that converts and forwards OpenAI API format endpoints to Anthropic Claude API format

Topics

Resources

License

Stars

Watchers

Forks

Languages