Skip to content

Instantly share code, notes, and snippets.

@saiashirwad
Created June 20, 2026 08:04
Show Gist options
  • Select an option

  • Save saiashirwad/8c975feb1840ca0cfe9c0d7890a72a07 to your computer and use it in GitHub Desktop.

Select an option

Save saiashirwad/8c975feb1840ca0cfe9c0d7890a72a07 to your computer and use it in GitHub Desktop.
glm claude code
function glm
env ANTHROPIC_BASE_URL="https://api.z.ai/api/anthropic" \
ANTHROPIC_AUTH_TOKEN="$ZAI_API_KEY" \
ANTHROPIC_DEFAULT_OPUS_MODEL="glm-5.2" \
ANTHROPIC_DEFAULT_SONNET_MODEL="glm-5.2" \
ANTHROPIC_DEFAULT_HAIKU_MODEL="glm-4.7" \
claude $argv --dangerously-skip-permissions
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment