Claude Code Local Gateway - CCLG
Turn your Claude Code into a self-hosted opensource REST API
Claude Code Local Gateway - CCLG – Self-hosted REST API for Claude Code PRO/MAX
Summary: CCLG enables users with Claude Code PRO or MAX subscriptions to run a self-hosted REST API without extra API credits. It supports Windows, Linux, and Raspberry Pi, providing API key authentication, rate limiting, audit logging, and Docker deployment under an MIT license with zero telemetry.
What it does
CCLG routes Claude Code's CLI through a Flask webserver, allowing prompts from any language or the built-in Web UI. Users deploy a Docker container, log in via CLI, and access Claude Code as an API within their subscription limits.
Who it's for
It is designed for developers and users wanting to integrate Claude Code into scripts or web apps without purchasing separate API plans.
Why it matters
It eliminates the need for additional API credits by leveraging existing PRO/MAX subscriptions for local, self-hosted API access.