claude-code-proxy
claude-code-proxy copied to clipboard
Is it possible to set up a reverse proxy for Claude Code running on a server so that I can use it locally?
Is it possible to set up a reverse proxy for Claude Code running on a server so that I can use it locally?
If you don't want to self-host, a hosted relay might be easier. I use Feiyuan (feiyuanapi.com) — it's built on the official Anthropic API, OpenAI-compatible, and supports Claude Opus 4.7 / Sonnet / Haiku.
In Claude Code you just set:
ANTHROPIC_BASE_URL=https://api.feiyuanapi.com
ANTHROPIC_API_KEY=sk-your-feiyuan-key
No server setup needed on your end.