4 ms·
They also support Claude Code. But my understanding is Claude Code is closed source and only support Clade API endpoint. How do they make it work?
by mrbonner 1y ago
They also support Claude Code. But my understanding is Claude Code is closed source and only support Clade API endpoint. How do they make it work?
- vtail 1y agoClaude uses OpenAI-compatible APIs, and Claude Code respects environment variables that change the base url/token.
- segmondy 1y agono it doesn't, claude uses anthropic API. you need to run an anthropic2openAPI proxy
- vtail 1y agothank you, I stand corrected Update: Here is what o3 thinks about this topic: https://chatgpt.com/share/688030a9-8700-800b-8104-cca4cb1d0f1d https://chatgpt.com/share/688030a9-8700-800b-8104-cca4cb1d0f...
- alwillis 1y agoBut my understanding is Claude Code is closed source and only support Clade API endpoint. How do they make it work? You set the environment variable ANTHROPIC_BASE_URL to an OpenAI-compatible endpoint and ANTHROPIC_AUTH_TOKEN to the API token for the service. I used Kimi-K2 on Moonshot [1] with Claude Code with no issues. There's also Claude Code Router and similar apps for routing CC to a bunch of different models [2]. [1]: https://platform.moonshot.ai/ https://platform.moonshot.ai/ [2]: https://github.com/musistudio/claude-code-router https://github.com/musistudio/claude-code-router
- mrbonner 1y agoThat makes sense. Thanks Do you know if this works with AWS Berdrock as well? Or do I need to sort out to use the proxy approach?
- jimmydoe 1y agoBedrock is officially support by Claude code.
- Zacharias030 1y agoHow good is it in comparison? This is an interesting apples to apples situation:)
- Imanari 1y agoYou can use any model from openrouter with CC via https://github.com/musistudio/claude-code-router https://github.com/musistudio/claude-code-router