{"repo":"Shreyas-Dayal/ai-cli-bridge","free":true,"listed":false,"github":"https://github.com/Shreyas-Dayal/ai-cli-bridge","clone":"git clone https://github.com/Shreyas-Dayal/ai-cli-bridge.git","description":"Use your Claude Max / ChatGPT Pro subscription as an API. Self-hosted Express + Bun HTTP bridge that wraps the Claude Code CLI and OpenAI Codex CLI into an authenticated REST API with SSE streaming, hashed API keys, per-user rate limits, token & cost tracking, request logs, and an admin dashboard.","language":"TypeScript","stars":13,"topics":["ai-api","anthropic","api-bridge","api-wrapper","bun","chatgpt","chatgpt-pro","claude","claude-api","claude-code"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"ai-cli-bridge Turn your Claude Max / OpenAI Pro subscriptions into a private HTTP API that any project can consume. This server wraps the Claude Code CLI and Codex CLI behind an Express API. Instead of paying per-token, requests are backed by your existing subscription. Why AI API calls are expensive at scale. If you already pay for Claude Max ( $100-200/mo) or OpenAI Pro ( $200/mo), that usage is locked to the CLI tools — they can't be called from web apps, plugins, or other HTTP clients. This project bridges that gap. Approach Auth Billing --- --- --- SDK (Anthropic/OpenAI) API key Per-token CLI wrapper (this project) OAuth subscription Monthly flat rate Features - Two providers — Claude Code CLI ( /generate ) and Codex CLI ( /generate-codex ) - Per-user API keys — SHA-256 hashed, shown once at creation, timing-safe auth - Per-key usage limits — requests/day, requests/month, tokens/month, cost/day, cost/month - Admin dashboard — manage keys, monitor usage, view request logs - Usage tracking — in-memory with periodic disk flush, auto-pruning - Security — execFile (no shell injection), CSP, HSTS, rate limiting, input validation - Deploy anywhere — Docker support, systemd service, Cloudflare Tunnel template Quick Start Prerequisites - Bun 1.2+ - Claude Code CLI and/or Codex CLI installed and authenticated Local Development Docker Verify Usage Generate (Claude) Generate (Codex) Response Shape Both endpoints return a consistent response shape: Claude responses also include durat","default_branch":null,"files":null,"tree":[],"storefront":"/r/Shreyas-Dayal","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Shreyas-Dayal/ai-cli-bridge/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}