Install and Setup Claude Code Proxy from source
mainTo run the proxy locally, you need uv installed and valid API keys for your chosen provider.
- Clone the repository:
git clone https://github.com/1rgs/claude-code-proxy.git cd claude-code-proxy - Install uv (if not present):
curl -LsSf https://astral.sh/uv/install.sh | sh - Configure Environment Variables:
Copy the example file:
Editcp .env.example .env.envwith your API keys (OPENAI_API_KEY,GEMINI_API_KEY, orANTHROPIC_API_KEY). - Run the server:
uv run uvicorn server:app --host 0.0.0.0 --port 8082 --reload
git clone https://github.com/1rgs/claude-code-proxy.git
cd claude-code-proxy
curl -LsSf https://astral.sh/uv/install.sh | sh
cp .env.example .env
uv run uvicorn server:app --host 0.0.0.0 --port 8082 --reload