{"_id":"anthropic-proxy","_rev":"4-9f9c28218c126f29a08f75094410acc4","name":"anthropic-proxy","dist-tags":{"latest":"1.3.0"},"versions":{"1.0.0":{"name":"anthropic-proxy","version":"1.0.0","keywords":["anthropic","openai","api","proxy","claude","streaming","sse"],"author":{"name":"Max Nowack","email":"max.nowack@gmail.com"},"license":"MIT","_id":"anthropic-proxy@1.0.0","maintainers":[{"name":"maxnowack","email":"max@unsou.de"}],"homepage":"https://github.com/maxnowack/anthropic-proxy#readme","bugs":{"url":"https://github.com/maxnowack/anthropic-proxy/issues"},"bin":{"anthropic-proxy":"index.js"},"dist":{"shasum":"055bd542ee79a81ccdfaa7100151b16a8b7f5ff8","tarball":"https://registry.npmjs.org/anthropic-proxy/-/anthropic-proxy-1.0.0.tgz","fileCount":3,"integrity":"sha512-TJi5zpHoJzjP4RwFhl7VIudwrb/pg6/QtblKteA6RkWLi/eRxKy7cYxip1tj0fFZZYXG2ShzgvhwmtMXEKozQw==","signatures":[{"sig":"MEYCIQC8jaJCWA5e9qaeV060StWFwXQA5sHWPWhnDnurLC4b2QIhAO2qzbsC+M0E+eARHduASid32Kux7u2KHFlPCrgxtUaq","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":9201},"type":"module","gitHead":"2e75c6c62fe1ab25d544324f4f7cf92899f86e7c","scripts":{"start":"node index.js"},"_npmUser":{"name":"maxnowack","email":"max@unsou.de"},"repository":{"url":"git+https://github.com/maxnowack/anthropic-proxy.git","type":"git"},"_npmVersion":"10.9.2","description":"A proxy server that transforms Anthropic API requests to OpenAI format and sends it to openrouter.ai.","directories":{},"_nodeVersion":"23.7.0","dependencies":{"fastify":"^5.2.1"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/anthropic-proxy_1.0.0_1741962485889_0.5902342960392182","host":"s3://npm-registry-packages-npm-production"}},"1.1.0":{"name":"anthropic-proxy","version":"1.1.0","keywords":["anthropic","openai","api","proxy","claude","streaming","sse"],"author":{"name":"Max Nowack","email":"max.nowack@gmail.com"},"license":"MIT","_id":"anthropic-proxy@1.1.0","maintainers":[{"name":"maxnowack","email":"max@unsou.de"}],"homepage":"https://github.com/maxnowack/anthropic-proxy#readme","bugs":{"url":"https://github.com/maxnowack/anthropic-proxy/issues"},"bin":{"anthropic-proxy":"index.js"},"dist":{"shasum":"d548a6f6dc82e976684f8658b09e6fbea566dd75","tarball":"https://registry.npmjs.org/anthropic-proxy/-/anthropic-proxy-1.1.0.tgz","fileCount":3,"integrity":"sha512-vq6TuOLhHAmAcVZTZgYL0z9c+pzPpC0a7zxkKx8XJG+dn69y6/6HLr1XTy69xXOYZqjDI6Jyduh5bCwGxh17vg==","signatures":[{"sig":"MEUCIQDdvzPY3tPtbTh2Ev4tuJop8R9ESyjUsKBv0g0uYgPYtwIgdG2nbRVNkxmuOedFGVDwAPBvx9y9VgIxVmQ5k2m1wIU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":15314},"type":"module","gitHead":"9bb0691c7c6f4149f73c30350fd3857b9bd91600","scripts":{"start":"node index.js"},"_npmUser":{"name":"maxnowack","email":"max@unsou.de"},"repository":{"url":"git+https://github.com/maxnowack/anthropic-proxy.git","type":"git"},"_npmVersion":"10.9.2","description":"A proxy server that transforms Anthropic API requests to OpenAI format and sends it to openrouter.ai.","directories":{},"_nodeVersion":"23.7.0","dependencies":{"fastify":"^5.2.1"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/anthropic-proxy_1.1.0_1742210617254_0.4105537034143303","host":"s3://npm-registry-packages-npm-production"}},"1.2.0":{"name":"anthropic-proxy","version":"1.2.0","keywords":["anthropic","openai","api","proxy","claude","streaming","sse"],"author":{"name":"Max Nowack","email":"max.nowack@gmail.com"},"license":"MIT","_id":"anthropic-proxy@1.2.0","maintainers":[{"name":"maxnowack","email":"max@unsou.de"}],"homepage":"https://github.com/maxnowack/anthropic-proxy#readme","bugs":{"url":"https://github.com/maxnowack/anthropic-proxy/issues"},"bin":{"anthropic-proxy":"index.js"},"dist":{"shasum":"2d7561b586982d64f2aac91a50ad496d81fe188d","tarball":"https://registry.npmjs.org/anthropic-proxy/-/anthropic-proxy-1.2.0.tgz","fileCount":3,"integrity":"sha512-hhdUokUsORoSWMlY76h3CES5LHyMpJH9qx89zsxwgd8Erhu2q/frob9nJLXcOfrflB5ckGQGUUvCLy+fczCOJw==","signatures":[{"sig":"MEYCIQCW3oomUoTWp73eXQ//YV/suF+8Tceubo93DYOeWOtuMgIhANNkMHJsJdXczP1v/+52kd6w8R2ItO+1Gs7pGFaffxmX","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":15574},"type":"module","gitHead":"203b308886dc1545231ef044c7878b212d59c4cd","scripts":{"start":"node index.js"},"_npmUser":{"name":"maxnowack","email":"max@unsou.de"},"repository":{"url":"git+https://github.com/maxnowack/anthropic-proxy.git","type":"git"},"_npmVersion":"10.9.2","description":"A proxy server that transforms Anthropic API requests to OpenAI format and sends it to openrouter.ai.","directories":{},"_nodeVersion":"23.7.0","dependencies":{"fastify":"^5.2.1"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/anthropic-proxy_1.2.0_1742211569940_0.45682386389014473","host":"s3://npm-registry-packages-npm-production"}},"1.3.0":{"name":"anthropic-proxy","description":"A proxy server that transforms Anthropic API requests to OpenAI format and sends it to openrouter.ai.","version":"1.3.0","type":"module","bin":{"anthropic-proxy":"index.js"},"scripts":{"start":"node index.js"},"keywords":["anthropic","openai","api","proxy","claude","streaming","sse"],"repository":{"type":"git","url":"git+https://github.com/maxnowack/anthropic-proxy.git"},"bugs":{"url":"https://github.com/maxnowack/anthropic-proxy/issues"},"author":{"name":"Max Nowack","email":"max.nowack@gmail.com"},"license":"MIT","dependencies":{"fastify":"^5.2.1"},"_id":"anthropic-proxy@1.3.0","gitHead":"6413b14c0e16891b65ff6de1cef1510da72093f5","homepage":"https://github.com/maxnowack/anthropic-proxy#readme","_nodeVersion":"23.11.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-z63VrlWPHnuWlG726gtNMJjQTdwASXjiG9qgfwOpO3VuXj2zZVK+SGkThWaSGOOSzZB+vVLYWmXnKAxUEzZMvg==","shasum":"83e524a3bcb2cf6aeb05955c9778a16ba353680c","tarball":"https://registry.npmjs.org/anthropic-proxy/-/anthropic-proxy-1.3.0.tgz","fileCount":3,"unpackedSize":16044,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCpINMvPeasQG0/Qr7Moe8AFUXO/JUtxKueCnkwl+jtdQIgGcvTmvlKK4WhPCd5PUm3TBy5Oo6wb49ISJZOi09nMqc="}]},"_npmUser":{"name":"maxnowack","email":"max@unsou.de"},"directories":{},"maintainers":[{"name":"maxnowack","email":"max@unsou.de"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/anthropic-proxy_1.3.0_1745842078054_0.14498386849680833"},"_hasShrinkwrap":false}},"time":{"created":"2025-03-14T14:28:05.888Z","modified":"2025-04-28T12:07:58.381Z","1.0.0":"2025-03-14T14:28:06.087Z","1.1.0":"2025-03-17T11:23:37.423Z","1.2.0":"2025-03-17T11:39:30.111Z","1.3.0":"2025-04-28T12:07:58.210Z"},"bugs":{"url":"https://github.com/maxnowack/anthropic-proxy/issues"},"author":{"name":"Max Nowack","email":"max.nowack@gmail.com"},"license":"MIT","homepage":"https://github.com/maxnowack/anthropic-proxy#readme","keywords":["anthropic","openai","api","proxy","claude","streaming","sse"],"repository":{"type":"git","url":"git+https://github.com/maxnowack/anthropic-proxy.git"},"description":"A proxy server that transforms Anthropic API requests to OpenAI format and sends it to openrouter.ai.","maintainers":[{"name":"maxnowack","email":"max@unsou.de"}],"readme":"# anthropic-proxy\n\nA proxy server that transforms Anthropic API requests to OpenAI format and sends it to openrouter.ai. This enables you to use Anthropic's API format while connecting to OpenAI-compatible endpoints.\n\n## Usage\n\nWith this command, you can start the proxy server with your OpenRouter API key on port 3000:\n\n```bash\nOPENROUTER_API_KEY=your-api-key npx anthropic-proxy\n```\n\nEnvironment variables:\n\n- `OPENROUTER_API_KEY`: Your OpenRouter API key (required when using OpenRouter)\n- `ANTHROPIC_PROXY_BASE_URL`: Custom base URL for the transformed OpenAI-format message (default: `openrouter.ai`)\n- `PORT`: The port the proxy server should listen on (default: 3000)\n- `REASONING_MODEL`: The reasoning model to use (default: `google/gemini-2.0-pro-exp-02-05:free`)\n- `COMPLETION_MODEL`: The completion model to use (default: `google/gemini-2.0-pro-exp-02-05:free`)\n- `DEBUG`: Set to `1` to enable debug logging\n\nNote: When `ANTHROPIC_PROXY_BASE_URL` is set to a custom URL, the `OPENROUTER_API_KEY` is not required.\n\n## Claude Code\n\nTo use the proxy server as a backend for Claude Code, you have to set the `ANTHROPIC_BASE_URL` to the URL of the proxy server:\n\n```bash\nANTHROPIC_BASE_URL=http://0.0.0.0:3000 claude\n```\n\n## License\nLicensed under MIT license. Copyright (c) 2025 Max Nowack\n\n## Contributions\nContributions are welcome. Please open issues and/or file Pull Requests.\n","readmeFilename":"README.md"}