coding

OpenAI-to-Claude API Wrapper for Tool Compatibility

OpenAI-to-Claude API Wrapper enables seamless tool compatibility by translating OpenAI API calls to work with Claude's API, allowing developers to switch

Someone built a wrapper that lets Claude work with any tool designed for OpenAI’s API. Pretty handy if you’re stuck using software that only supports OpenAI but want to use Claude instead.

Quick setup:

Once running, point any OpenAI-compatible app to http://localhost:8000/v1/chat/completions and it’ll translate requests to Claude behind the scenes. Works with streaming, tracks token costs in real-time, and keeps conversation history between calls.

The wrapper supports multiple auth methods (API keys, AWS Bedrock, Vertex AI) and can optionally enable Claude’s tools for file access or bash commands. There’s also a Docker version if that’s easier to deploy.

Turns out lots of dev tools, libraries, and SaaS products assume OpenAI by default - this bridges that gap without rewriting code.