{"_id":"@beeplovsharma/claude-proxy","_rev":"2-99c88aa09eb2ccccee69ab188f724082","name":"@beeplovsharma/claude-proxy","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@beeplovsharma/claude-proxy","version":"1.0.0","keywords":["claude","code","proxy","llm","deepseek","openrouter","gemini","ollama"],"author":{"name":"Beeplov Sharma"},"license":"MIT","_id":"@beeplovsharma/claude-proxy@1.0.0","maintainers":[{"name":"beeplovsharma","email":"beeplovsharma@gmail.com"}],"bin":{"claude-proxy":"bin/cli.js"},"dist":{"shasum":"4017d659e34bc0f366b58eb38414c57a89dd37c4","tarball":"https://registry.npmjs.org/@beeplovsharma/claude-proxy/-/claude-proxy-1.0.0.tgz","fileCount":13,"integrity":"sha512-uqXG5cdsFtq71JxIuRwaEQJ81JCxg3HG/fCFNKTOzkaBkAKyaJT2DW8GOHU5svuKc90RFNGqNGVrdVzZ2880SA==","signatures":[{"sig":"MEYCIQC7z7ZQx6TprAtQCQM+0XzMKkR9dYxVpJn+VKJGQCgM7QIhANur8VZgEPhKOtYfNC2vmLcoKpfeSt1PycqZGCR3OTVP","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":61464},"type":"module","engines":{"node":">=18.0.0"},"scripts":{"start":"node src/cli.js"},"_npmUser":{"name":"beeplovsharma","email":"beeplovsharma@gmail.com"},"_npmVersion":"11.6.2","description":"Use any LLM provider with Claude Code — one command setup, easy toggle on/off","directories":{},"_nodeVersion":"24.11.1","dependencies":{"json5":"^2.2.3","undici":"^8.4.1","fastify":"^5.3.0","@inquirer/prompts":"^5.5.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/claude-proxy_1.0.0_1781189156691_0.7602222522354145","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@beeplovsharma/claude-proxy","version":"1.0.1","description":"Use any LLM provider with Claude Code — one command setup, easy toggle on/off","type":"module","bin":{"claude-proxy":"bin/cli.js"},"scripts":{"start":"node src/cli.js"},"keywords":["claude","code","proxy","llm","deepseek","openrouter","gemini","ollama"],"author":{"name":"Beeplov Sharma"},"license":"MIT","dependencies":{"@inquirer/prompts":"^5.5.0","fastify":"^5.3.0","json5":"^2.2.3","undici":"^8.4.1"},"publishConfig":{"access":"public"},"engines":{"node":">=18.0.0"},"_id":"@beeplovsharma/claude-proxy@1.0.1","_nodeVersion":"24.11.1","_npmVersion":"11.6.2","dist":{"integrity":"sha512-Ouw9qtt06R97pqNEBz7fRrLAfRVpswyEVbdPoNmigl8+fJUsczeiJX5XIHt7rDe+Jr/YxC+LAlvJv2pGjfnL9A==","shasum":"908e412b62df84bb60d8b474bdc3a3b27cd9f1cf","tarball":"https://registry.npmjs.org/@beeplovsharma/claude-proxy/-/claude-proxy-1.0.1.tgz","fileCount":13,"unpackedSize":61513,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIHIEeLfEBgfLh2A4pdHUX0bXfSr3s0h93jFZYFM8Ojx3AiEA8kZlvFEtLZUb3Eax+rElK1dbDVmReKrTXIWEornzVA4="}]},"_npmUser":{"name":"beeplovsharma","email":"beeplovsharma@gmail.com"},"directories":{},"maintainers":[{"name":"beeplovsharma","email":"beeplovsharma@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/claude-proxy_1.0.1_1781189371104_0.4844379088107902"},"_hasShrinkwrap":false}},"time":{"created":"2026-06-11T14:45:56.538Z","modified":"2026-06-11T14:49:31.386Z","1.0.0":"2026-06-11T14:45:56.824Z","1.0.1":"2026-06-11T14:49:31.282Z"},"author":{"name":"Beeplov Sharma"},"license":"MIT","keywords":["claude","code","proxy","llm","deepseek","openrouter","gemini","ollama"],"description":"Use any LLM provider with Claude Code — one command setup, easy toggle on/off","maintainers":[{"name":"beeplovsharma","email":"beeplovsharma@gmail.com"}],"readme":"# Claude Proxy\n\n> Use any LLM provider with Claude Code. One command setup. Easy toggle on/off.\n\n## Quick Start\n\n```bash\nnpm install -g claude-proxy\nclaude-proxy\n```\n\nThe interactive wizard will ask you:\n1. Which provider? (DeepSeek, OpenRouter, Ollama, Groq, etc.)\n2. Your API key\n3. Which model?\n4. Start server + enable proxy? → Yes!\n\nThat's it. Claude Code now uses your chosen LLM.\n\n## Commands\n\n| Command | Description |\n|---|---|\n| `claude-proxy` | Interactive setup wizard |\n| `claude-proxy start` | Start proxy server in background |\n| `claude-proxy stop` | Stop proxy server |\n| `claude-proxy on` | Point Claude Code to proxy |\n| `claude-proxy off` | Restore native Anthropic |\n| `claude-proxy status` | Show everything |\n| `claude-proxy add` | Add a custom provider |\n| `claude-proxy restart` | Restart the server |\n\n## Toggle Between Proxy and Native Claude\n\n```bash\nclaude-proxy on     # Use DeepSeek/Gemini/etc.\nclaude-proxy off    # Back to native Anthropic\n```\n\nNo manual settings.json editing. The toggle backs up your settings before modifying.\n\n## Manual Setup (Custom Port)\n\nIf you want to use a different port or set things up manually:\n\n```bash\n# Run the wizard, it asks which port you want\nclaude-proxy setup\n\n# Or edit the config directly\ncat ~/.claude-proxy/config.json\n```\n\n```json\n{\n  \"port\": 9999,\n  \"apiKey\": \"sk-your-key\",\n  \"provider\": \"deepseek\",\n  \"model\": \"deepseek-chat\",\n  \"apiBaseUrl\": \"https://api.deepseek.com/chat/completions\"\n}\n```\n\nThen:\n```bash\nclaude-proxy start   # Start on port 9999\nclaude-proxy on      # Configure Claude Code\nclaude-proxy off     # Restore original settings\n```\n\n## Built-in Providers\n\n- **DeepSeek** — deepseek-chat, deepseek-reasoner\n- **OpenRouter** — Claude, Gemini, GPT models via one API\n- **Ollama** — Local models (no API key needed)\n- **Groq** — Fast inference\n- **SiliconFlow** — Chinese provider with DeepSeek/Qwen models\n- **Volcengine** — ByteDance provider\n\n## Custom Providers\n\n```bash\nclaude-proxy add\n```\n\nEnter name, API URL, key, and models. Works with any OpenAI-compatible API.\n\n## How It Works\n\n```\nClaude Code ──(Anthropic format)──▶ localhost:6666 ──(OpenAI format)──▶ DeepSeek/Gemini/etc.\n```\n\nclaude-proxy runs a local server that:\n1. Receives Anthropic-format requests from Claude Code\n2. Converts them to OpenAI format\n3. Forwards to your chosen provider\n4. Converts the response back to Anthropic format\n5. Returns it to Claude Code\n\nClaude Code has no idea it's not talking to Anthropic.\n\n## Files\n\n| Path | Purpose |\n|---|---|\n| `~/.claude-proxy/config.json` | Proxy configuration |\n| `~/.claude-proxy/settings-backup.json` | Original Claude Code settings backup |\n| `~/.claude-proxy/custom-providers.json` | Your custom providers |\n| `~/.claude-proxy/proxy.pid` | Server process ID |\n\n## Troubleshooting\n\n**Server won't start?** Check if port is already in use:\n```bash\nlsof -i :6666\n```\n\n**Claude Code still using Anthropic?** Make sure proxy is enabled:\n```bash\nclaude-proxy status\nclaude-proxy on\n```\n\n**Switch back to native Claude:**\n```bash\nclaude-proxy off\n```\n","readmeFilename":"README.md"}