{"id":27626532,"url":"https://github.com/maxnowack/anthropic-proxy","last_synced_at":"2025-04-23T12:38:47.016Z","repository":{"id":282419798,"uuid":"948545068","full_name":"maxnowack/anthropic-proxy","owner":"maxnowack","description":"Proxy server that converts Anthropic API requests to OpenAI format and sends it to OpenRouter. It's used to use Claude Code with OpenRouter instead of the Anthropic API","archived":false,"fork":false,"pushed_at":"2025-03-17T11:39:17.000Z","size":27,"stargazers_count":60,"open_issues_count":2,"forks_count":6,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-21T18:46:50.718Z","etag":null,"topics":["anthropic","claude-code","llm","openrouter"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/maxnowack.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}},"created_at":"2025-03-14T14:23:18.000Z","updated_at":"2025-04-20T10:57:12.000Z","dependencies_parsed_at":"2025-03-14T14:47:36.488Z","dependency_job_id":"391c159d-debf-4f4f-bc4c-0d2b32583e75","html_url":"https://github.com/maxnowack/anthropic-proxy","commit_stats":null,"previous_names":["maxnowack/anthropic-proxy"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxnowack%2Fanthropic-proxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxnowack%2Fanthropic-proxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxnowack%2Fanthropic-proxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxnowack%2Fanthropic-proxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maxnowack","download_url":"https://codeload.github.com/maxnowack/anthropic-proxy/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250436518,"owners_count":21430499,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["anthropic","claude-code","llm","openrouter"],"created_at":"2025-04-23T12:38:46.545Z","updated_at":"2025-04-23T12:38:47.011Z","avatar_url":"https://github.com/maxnowack.png","language":"JavaScript","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\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\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","funding_links":[],"categories":["JavaScript","Proxies \u0026 Model Integrations"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxnowack%2Fanthropic-proxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaxnowack%2Fanthropic-proxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxnowack%2Fanthropic-proxy/lists"}