anthropic-proxy

Proxy server that converts Anthropic API requests to OpenAI format and sends it to OpenRouter. It's used to use Claude Code with OpenRouter instead of the Anthropic API

414
Stars
45
Forks
JavaScript
Language
8/23/2026
Added
View on GitHubDownload ZIP

⚠️ Third-Party Software Notice

This skill is third-party open-source software developed and hosted independently on GitHub. SkillTip is an informational directory and does not control or maintain the underlying repository. Any security checks displayed are automated and limited in scope. Review the source code before installing.

Read the Terms of Service

Installation

Add to your Claude Code skills directory:

# Add to your Claude Code skills
git clone https://github.com/maxnowack/anthropic-proxy

Getting Started

Guides for using skills like anthropic-proxy.

Security Report

Verified

Last scanned: —

{
  "status": "PASSED",
  "issues": []
}

README.md

anthropic-proxy

A proxy server that transforms Anthropic API requests to OpenAI format and sends it to openrouter.ai. This enables you to use Anthropic's API format while connecting to OpenAI-compatible endpoints.

Usage

With this command, you can start the proxy server with your OpenRouter API key on port 3000:

OPENROUTER_API_KEY=your-api-key npx anthropic-proxy

Environment variables:

  • OPENROUTER_API_KEY: Your OpenRouter API key (required when using OpenRouter)
  • ANTHROPIC_PROXY_BASE_URL: Custom base URL for the transformed OpenAI-format message (default: openrouter.ai)
  • PORT: The port the proxy server should listen on (default: 3000)
  • REASONING_MODEL: The reasoning model to use (default: google/gemini-2.0-pro-exp-02-05:free)
  • COMPLETION_MODEL: The completion model to use (default: google/gemini-2.0-pro-exp-02-05:free)
  • DEBUG: Set to 1 to enable debug logging

Note: When ANTHROPIC_PROXY_BASE_URL is set to a custom URL, the OPENROUTER_API_KEY is not required.

Claude Code

To use the proxy server as a backend for Claude Code, you have to set the ANTHROPIC_BASE_URL to the URL of the proxy server:

ANTHROPIC_BASE_URL=http://0.0.0.0:3000 claude

License

Licensed under MIT license. Copyright (c) 2025 Max Nowack

Contributions

Contributions are welcome. Please open issues and/or file Pull Requests.

Frequently Asked Questions

What is anthropic-proxy?

anthropic-proxy is an open-source api integration skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by maxnowack. Proxy server that converts Anthropic API requests to OpenAI format and sends it to OpenRouter. It's used to use Claude Code with OpenRouter instead of the Anthropic API. It has 414 GitHub stars.

Is anthropic-proxy safe to use?

anthropic-proxy returned warnings in SkillsLLM's automated security scan. It has no critical vulnerabilities, but review the flagged issues in the Security Report section before adding it to your workflow.

How do I install anthropic-proxy?

Clone the repository with "git clone https://github.com/maxnowack/anthropic-proxy" and add it to your Claude Code skills directory (see the Installation section above).

What programming language is anthropic-proxy written in?

anthropic-proxy is primarily written in JavaScript. It is open-source under maxnowack on GitHub, so you can review or fork the full source.

Are there alternatives to anthropic-proxy?

Yes. SkillsLLM lists many other API Integration skills you can browse and compare side by side. Open the API Integration category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh anthropic-proxy against similar tools.

Comments (0)

No comments yet. Be the first to share your thoughts!

CLIProxyAPI

by router-for-me

Wrap Antigravity, ChatGPT Codex, Claude Code, Grok Build as an OpenAI/Gemini/Claude/Codex compatible API service, allowing you to enjoy the free Gemini 3.1 Pro, GPT 5.6 Series, Grok 4.5, Claude model through API

48,3767,452Go
API Integration
View details

sub2api

by Wei-Shaw

Sub2API 一站式开源中转服务,让 Claude、Openai 、Gemini、Grok订阅统一接入,支持拼车共享,更高效分摊成本,原生工具无缝使用。

38,8308,041Go
API Integration
View details

claude-code-hub

by ding113

一个现代化的 Claude Code & Codex API 代理服务,提供智能负载均衡、用户管理和使用统计功能。

3,328387TypeScript
API Integration
View details

cc-gateway

by motiful

AI API identity gateway — reverse proxy that normalizes device fingerprints and telemetry for privacy-preserving API proxying

3,013501TypeScript
API Integration
View details

octopus

by bestruirui

One Hub All LLMs For You | 为个人打造的 LLM API 聚合网关

2,483394TypeScript
API Integration
View details

Developers Also Liked

Based on votes and bookmarks from developers who liked this skill

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI Agentsai-agentsanthropicclaude-code
View details
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI Agentsai-agentsbrainstorming
View details

n8n

by n8n-io

12

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

201,88160,308TypeScript
MCP Serversapisai-tools
View details

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI Agentsai-agentsanthropicclaude-code
View details

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI Agentsclaude-codeai-tools
View details