Using GLM 4.6 with claude code #120
S1M0N38
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I like the GLM 4.6 (especially for its price and its usage limits). However, I really like Claude code compared to other CLI tools. You can easily configure Claude code to use GLM 4.6 (see z.ai coding plan and z.ai docs).
You can save the following settings in
~/.claude/settings-glm.json{ "env": { "ANTHROPIC_AUTH_TOKEN": "your-z.ai-token-here", "ANTHROPIC_BASE_URL": "https://api.z.ai/api/anthropic" } }and then configure the sidekick.nvim as follows
{ "folke/sidekick.nvim", opts = { cli = { tools = { glm = { cmd = { "claude", "--settings", os.getenv("HOME") .. "/.claude/settings-glm.json" } }, }, }, -- your other opts ... }, keys = { { "<leader>ac", function() require("sidekick.cli").toggle({ name = "glm", focus = true }) end, desc = "Sidekick Toggle GLM", }, { "<leader>aC", function() require("sidekick.cli").toggle({ name = "claude", focus = true }) end, desc = "Sidekick Toggle Claude", }, }, }In this way:
<leader> + a + c: start Claude code with GLM models (a bit dumber but higher usage limits)<leader> + a + C: start Claude code with Anthropic models (smarter models but with lower usage limits).Beta Was this translation helpful? Give feedback.
All reactions