An open API service indexing awesome lists of open source software.

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

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.