| ▲ | jonstewart 5 hours ago | |||||||
Forgive my stupidity but how do you run Claude Code with non-Anthropic models? | ||||||||
| ▲ | nijave an hour ago | parent | next [-] | |||||||
I use routatic/proxy (actually my own fork with various changes/fixes http://github.com/nijave/proxy/ -- fyi the fork is all vibes...) Some gateways/proxies/hosts also offer multiple endpoints (z.ai has both Anthropic endpoint and Completions endpoint) Edit: Here's the PoC I made for work although it assumes you're using Cloudflare Access (VPN) with a Cloudflare AI Gateway to hand wave the auth away (auth to the LLM API gets auto injected by Cloudflare Access derived from the client's VPN connection) https://gist.github.com/nijave/6f5e5793a992619808135ce85fa49... | ||||||||
| ▲ | krat0sprakhar 2 hours ago | parent | prev | next [-] | |||||||
Here's an example for using it with GLM:https://docs.z.ai/devpack/tool/claude ... works similarly for other models | ||||||||
| ▲ | EFLKumo 5 hours ago | parent | prev | next [-] | |||||||
Claude Code supports the base URL env var so you could tell it to talk with any LLM API endpoint that receives the Anthropic style request format, e.g. DeepSeek. | ||||||||
| ||||||||
| ▲ | tokencanopy 5 hours ago | parent | prev | next [-] | |||||||
Claude Code allows you to change the config such that you use the harness with different models - you can actually ask a coding agent to configure it for you | ||||||||
| ▲ | 5 hours ago | parent | prev [-] | |||||||
| [deleted] | ||||||||