Skip to content
AddHunt
VS Code extensions

CCRelay

Local proxy to run Claude Code and Codex on other models

Works with macOS, WindowsOpen source

  • Open source
  • Licence: MIT

In short

CCRelay is a desktop app for macOS and Windows, free and open source, that points Claude Code, Codex CLI, Claude Desktop and the ChatGPT desktop app at third-party models through one local proxy. It is for developers who want to use providers such as GLM, Kimi, DeepSeek or Gemini without leaving their usual client.

What you get

  • One local proxy for several AI clients
  • Automatic Anthropic and OpenAI format conversion
  • Wildcard model mapping and Smart Routing
  • Request logs and per-provider usage dashboard
  • One-click apply and restore of client settings
  • VS Code extension sharing the same proxy

The details

CCRelay sits between AI coding clients and model providers. Every supported client is set to the same local address, and the provider is switched inside CCRelay, so client settings do not need to change each time. Picking a client in the configuration screen and clicking Apply writes the needed settings, and Restore puts the originals back.

Format conversion and routing

Requests are converted between the Anthropic and OpenAI formats automatically. That lets Claude Code use a provider that only offers an OpenAI-style API, and Codex use one that only speaks the Anthropic format. Model names can be mapped with wildcards, and Smart Routing gathers models from every configured provider into one catalog. For Claude Desktop, CCRelay assigns Claude-style aliases because that app rejects some third-party model names.

Supported setup

  • Clients: Claude Code CLI and IDE extensions, Claude Desktop, Codex CLI, the ChatGPT desktop app, and other tools that accept a custom Anthropic or OpenAI base URL
  • Providers: the Claude API, GLM, Gemini, DeepSeek, Xiaomi MiMo, MiniMax, Meituan LongCat, Azure OpenAI and OpenAI-compatible APIs

A dashboard logs the headers and body of every request and reports token usage, speed and cache hit rate for each provider, and a Chat tab tests a provider directly. The app ships for Apple Silicon and Intel Macs and for Windows x64 and arm64. A VS Code extension shares the same config and proxy, and the project is MIT licensed.

Alternatives to CCRelay

Questions

Which clients can CCRelay switch to other models?

Claude Code, Codex CLI, Claude Desktop and the ChatGPT desktop app, plus any tool that accepts a custom Anthropic or OpenAI base URL.

Does it require editing config files by hand?

No. The desktop app writes the client settings when Apply is clicked, and Restore returns them to the original values.

Is there an editor version?

Yes. A VS Code extension, available from the VS Code Marketplace and Open VSX, shares the desktop app's config and proxy.

More like this