https://github.com/binbandit/claude-litellm-proxy
A proxy for claude code to use liteLLM
https://github.com/binbandit/claude-litellm-proxy
ai ai-development anthropic api-gateway claude claude-code docker function-calling genai hono litellm llm llm-proxy multi-provider openai-api proxy streaming tool-calling typescript
Last synced: about 1 month ago
JSON representation
A proxy for claude code to use liteLLM
- Host: GitHub
- URL: https://github.com/binbandit/claude-litellm-proxy
- Owner: binbandit
- Created: 2025-10-06T01:52:07.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2025-10-06T02:42:54.000Z (8 months ago)
- Last Synced: 2025-10-06T04:28:09.972Z (8 months ago)
- Topics: ai, ai-development, anthropic, api-gateway, claude, claude-code, docker, function-calling, genai, hono, litellm, llm, llm-proxy, multi-provider, openai-api, proxy, streaming, tool-calling, typescript
- Language: TypeScript
- Homepage:
- Size: 25.4 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Claude Code LiteLLM Proxy
TypeScript proxy for Claude Code → LiteLLM → any LLM provider.
Supports: streaming, tool calling, images, multi-turn conversations, system messages.
## Quick Start
### 1. Install Dependencies
```bash
pnpm install
```
### 2. Configure
```bash
cp .env.example .env
# Edit: LITELLM_BASE_URL, MODEL, UPSTREAM_API_KEY
```
### 3. Run
```bash
pnpm dev # or: pnpm build && pnpm start
```
### 4. Configure Claude Code
```bash
./configure-claude.sh http://localhost:8082
```
This updates `~/.claude/settings.json` with the proxy URL. Test with `claude`.
## Config
Required: `LITELLM_BASE_URL`, `MODEL`, `UPSTREAM_API_KEY`
Optional: `PORT` (8082), `LOG_LEVEL` (info), `NODE_ENV` (development)
## Deploy
**Docker**: `docker build -t claude-proxy . && docker run -p 8082:8082 --env-file .env claude-proxy`
**PM2**: `pnpm build && pm2 start dist/server.js --instances max`
**Systemd**: See Dockerfile for service setup
---
JSON logs. Health at `/health`. MIT license.