{"id":46435391,"url":"https://github.com/lngdao/ccproxypal","last_synced_at":"2026-03-11T06:02:53.553Z","repository":{"id":342266750,"uuid":"1173432814","full_name":"lngdao/ccproxypal","owner":"lngdao","description":"Proxy your Claude Pro/Max subscription to any OpenAI-compatible tool. Desktop app (Tauri + React) + CLI.","archived":false,"fork":false,"pushed_at":"2026-03-05T20:44:20.000Z","size":457,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-05T22:00:46.884Z","etag":null,"topics":["claude","claude-code","claude-proxy","cursor","opencode","proxy","react","rust","tauri"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lngdao.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-05T11:07:09.000Z","updated_at":"2026-03-05T20:56:15.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/lngdao/ccproxypal","commit_stats":null,"previous_names":["lngdao/ccproxypal"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/lngdao/ccproxypal","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lngdao%2Fccproxypal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lngdao%2Fccproxypal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lngdao%2Fccproxypal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lngdao%2Fccproxypal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lngdao","download_url":"https://codeload.github.com/lngdao/ccproxypal/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lngdao%2Fccproxypal/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30372547,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T21:41:54.280Z","status":"online","status_checked_at":"2026-03-11T02:00:07.027Z","response_time":84,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["claude","claude-code","claude-proxy","cursor","opencode","proxy","react","rust","tauri"],"created_at":"2026-03-05T20:55:39.420Z","updated_at":"2026-03-11T06:02:53.548Z","avatar_url":"https://github.com/lngdao.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ccproxypal\n\nA desktop app (Tauri + React) and CLI tool that routes AI API requests through your Claude Pro/Max subscription via Claude Code OAuth — share your subscription across multiple tools or host a proxy for your team.\n\n## Features\n\n- **Proxy Server** — Local HTTP proxy compatible with both Anthropic and OpenAI API formats\n- **Claude OAuth** — Automatically loads and refreshes Claude Code credentials from Keychain or `~/.claude/.credentials.json`\n- **Cloudflare Tunnel** — Expose your local proxy via a public HTTPS URL with one click\n- **Telegram Bot** — Control and monitor the proxy remotely via Telegram\n- **Analytics** — Track request history, token usage, and estimated savings\n- **Spending Limits** — Set hourly/daily/weekly/monthly budget caps for API key fallback\n\n## Desktop App\n\n### Requirements\n\n- [Rust](https://www.rust-lang.org/tools/install)\n- [Node.js](https://nodejs.org/) \u003e= 18\n- [Bun](https://bun.sh/) (recommended) or npm\n\n### Installation (macOS)\n\nDownload the latest `.dmg` from [releases](https://github.com/lngdao/ccproxypal/releases), drag the app to `/Applications`, then remove the quarantine flag before opening:\n\n```bash\nsudo xattr -rd com.apple.quarantine /Applications/ccproxypal.app\n```\n\nThis is required because the app is not notarized by Apple.\n\n### Development\n\n```bash\nbun install\nbun tauri dev\n```\n\n### Build\n\n```bash\nbun tauri build\n```\n\n## CLI (npm package)\n\nThe `npm-pkg/` directory contains a standalone CLI that can be published to npm and used without the desktop app.\n\n### Install \u0026 use\n\n```bash\n# Print Claude OAuth tokens\nnpx ccproxypal token\n\n# Start proxy server (default port 8082)\nnpx ccproxypal serve\n\n# Start proxy + Cloudflare tunnel\nnpx ccproxypal serve --tunnel\n\n# Custom port\nnpx ccproxypal serve --port 9000 --tunnel\n```\n\n### Prerequisites\n\n```bash\n# Authenticate with Claude CLI first\nclaude auth login\n\n# For tunnel support\nbrew install cloudflared\n```\n\n### Proxy Endpoints\n\n| Method | Path | Description |\n|--------|------|-------------|\n| `POST` | `/v1/messages` | Anthropic Messages API |\n| `POST` | `/v1/chat/completions` | OpenAI Chat Completions (auto-converted) |\n| `GET`  | `/v1/models` | Live model list from Anthropic |\n| `GET`  | `/health` | Health check + token status |\n\n### Client Setup\n\n```bash\nexport ANTHROPIC_BASE_URL=http://localhost:8082\nexport ANTHROPIC_AUTH_TOKEN=any-dummy-key\n```\n\n## How it works\n\n1. Loads Claude Code OAuth credentials\n2. Injects the required Claude Code beta headers to access the Anthropic API via OAuth\n3. Auto-refreshes the token before expiry (5-minute buffer)\n4. On rate limit (429) or auth failure, falls back to a configured Anthropic API key\n5. Streams responses in both Anthropic and OpenAI SSE formats\n\n## Tech Stack\n\n| Layer | Tech |\n|-------|------|\n| Desktop | Tauri v2, React, TypeScript |\n| Backend | Rust, Axum, Tokio |\n| CLI | Node.js (ESM, zero dependencies) |\n| Database | SQLite (analytics) |\n| Tunnel | cloudflared |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flngdao%2Fccproxypal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flngdao%2Fccproxypal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flngdao%2Fccproxypal/lists"}