Skip to content

Instantly share code, notes, and snippets.

@ratazzi
Created October 30, 2025 01:46
Show Gist options
  • Select an option

  • Save ratazzi/5b7e1a49dee7315421151080ad1c41e2 to your computer and use it in GitHub Desktop.

Select an option

Save ratazzi/5b7e1a49dee7315421151080ad1c41e2 to your computer and use it in GitHub Desktop.
Claude Code with Multiple Providers
# ~/.mise.toml
# mise run cc
# mise run cc-glm
[tasks.cc]
description = "Claude Code"
run = "SHELL=/bin/bash claude"
[tasks.cc-glm]
description = "Claude Code with GLM"
env.ANTHROPIC_DEFAULT_HAIKU_MODEL = 'glm-4.5-air'
env.ANTHROPIC_DEFAULT_SONNET_MODEL = 'glm-4.6'
env.ANTHROPIC_DEFAULT_OPUS_MODEL = 'glm-4.6'
env.ANTHROPIC_AUTH_TOKEN = 'TOKEN_HERE'
env.ANTHROPIC_BASE_URL = 'https://api.z.ai/api/anthropic'
run = "SHELL=/bin/bash claude"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment