
I Built an Open-Source Bridge That Turns Claude Code Into a REST API
Why I Built This If you're already paying for Claude Code (Max plan), you have access to an incredibly powerful AI right in your terminal. I wanted to get more out of that subscription — use it from my web apps, Slack bots, CI pipelines, and Python scripts running on other machines. Anthropic does have an official API, but it's pay-per-token — a separate cost. Since I'm already paying for a subscription, I figured: why not use what I've got? There are some great open-source wrappers like coder/agentapi and claude-code-api , but they're designed for local use only. I needed something that works remotely too — without having to set up reverse proxies, TLS certificates, and authentication from scratch. What It Does claude-api-bridge lets you use your existing Claude Code subscription as a REST API, accessible from anywhere. One command. That's it. npx claude-api-bridge start And you get: ✅ Claude Code CLI detected 🚀 API server running on http://localhost:3456 🔑 Admin Token: cab-a1b2c3d4e5
Continue reading on Dev.to JavaScript
Opens in a new tab



