claude-code-proxy icon indicating copy to clipboard operation
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?

Open lihai123456789 opened this issue 8 months ago • 1 comments

Is it possible to set up a reverse proxy for Claude Code running on a server so that I can use it locally?

lihai123456789 avatar Mar 26 '26 11:03 lihai123456789

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.

lei83314 avatar May 26 '26 10:05 lei83314