logoalt Hacker News

jonstewarttoday at 5:33 PM4 repliesview on HN

Forgive my stupidity but how do you run Claude Code with non-Anthropic models?


Replies

krat0sprakhartoday at 8:30 PM

Here's an example for using it with GLM:https://docs.z.ai/devpack/tool/claude ... works similarly for other models

EFLKumotoday at 5:43 PM

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.

show 1 reply
tokencanopytoday at 5:41 PM

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