CLASP banner
jedarden jedarden

CLASP

AI community

Description

Run Claude Code with any LLM provider — drop-in proxy for OpenAI, Gemini, and more. Go.

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

README

CLASP - Claude Language Agent Super Proxy

Run Claude Code against any LLM provider — OpenAI, Azure, Gemini, Ollama, vLLM, or any OpenAI-compatible endpoint. CLASP is a lightweight Go proxy that sits between Claude Code and your chosen provider, translating the Anthropic Messages API to OpenAI Chat Completions in real time.

Claude Code  →  CLASP (:8080)  →  OpenAI / Azure / OpenRouter / Ollama / custom

No patches to Claude Code. No forks. Just point `ANTHROPIC_BASE_URL` at the proxy and go.

Features

  • Bundled Claude Code: Automatically includes Claude Code as a dependency - single npx clasp-ai installs everything
  • Multi-Provider Support: OpenAI, Azure OpenAI, OpenRouter (200+ models), and custom endpoints (Ollama, vLLM, LM Studio)
  • Full Protocol Translation: Anthropic Messages API ↔ OpenAI Chat Completions API
  • SSE Streaming: Real-time token streaming with state machine processing
  • Tool Calls: Complete translation of tool_use/tool_result between formats
  • Connection Pooling: Optimized HTTP transport with persistent connections
  • Retry Logic: Exponential backoff for transient failures
  • Metrics Endpoint: Request statistics and performance monitoring
  • API Key Authentication: Secure the proxy with optional API key validation

Installation

Via npm (recommended)

# Install globally
npm install -g clasp-ai

# Or run directly with npx
npx clasp-ai

Via Go

go install github.com/jedarden/clasp/cmd/clasp@latest

From Source

git clone https://github.com/jedarden/CLASP.git
cd CLASP
make build

Via Docker

# Run with Docker (from GitHub Container Registry)
docker run -d -p 8080:8080 \
  -e OPENAI_API_KEY=sk-... \
  ghcr.io/jedarden/clasp:latest

# With specific version
docker run -d -p 8080:8080 \
  -e OPENAI_API_KEY=sk-... \
  ghcr.io/jedarden/clasp:0.24.8

# Or with docker-compose
docker-compose up -d

**Available Docker tags:**

  • latest - Latest