Skip to main content

Overview

Claude Code is powered by Anthropic’s Claude models and is the go-to coding agent for many developers. It offers excellent performance across a wide range of tasks.
Claude Code can also run GLM 5.3 (z-ai/glm-5.3) when its authentication method is set to Blocks, paid from your Blocks LLM credits.

Latest Models

  • Claude Opus 5 - Most capable model with enhanced reasoning
  • Claude Sonnet 5 - Latest high-performance model
  • Claude Fable 5.1 - Fast model for everyday coding work
  • Claude Opus 4.8 - Previous flagship, still available
  • Claude Sonnet 4.6 - Balanced speed and capability
  • Claude Haiku 4.5 - Fastest model for lightweight tasks
  • GLM 5.3 - z-ai/glm-5.3, available only with the Blocks authentication method

Authentication

Claude Code supports four authentication methods:
Pay-as-you-go API access
  1. Get an API key at Anthropic Console
  2. In Blocks Dashboard, go to Dashboard → Agents
  3. Select Claude Code and choose “API Key”
  4. Paste your API key (starts with sk-ant-)

Multiple Subscriptions

A workspace can hold up to 10 Anthropic subscriptions. Add them under Settings → Workspace Integrations → Anthropic → Add subscription. Each one is named when you connect it so you can tell them apart in the list. The name cannot be changed afterwards. For each session, Blocks picks the subscription with the lowest usage, so work spreads across them instead of exhausting one. Your own subscription under Settings → User Integrations → Anthropic is still a single connection, and it is included in the same selection:
  • Sessions you start from the Blocks dashboard use your personal subscription
  • Sessions started from GitHub, Slack, Linear, and other external tools use it too, as long as you have linked that account
  • If an external account cannot be matched to a Blocks user, the session uses the workspace subscriptions
  • If your personal subscription runs out of usage, the session falls back to the workspace subscriptions

Migrating to the New Anthropic Subscription Flow

The browser-based “Connect Subscription” authorization has been replaced by a setup token. The old flow tended to stop working after a while, leaving the connection stuck on authentication errors until you reconnected; the new one stays stable. Existing connections keep working, so there is nothing to do right away, but re-link yours when convenient:
  1. Run claude setup-token in your terminal
  2. Go to Settings → Workspace Integrations → Anthropic and click Add subscription
  3. Paste the sk-ant-oat01-… token and save
  4. Once the new subscription is listed, disconnect the old one from its menu
If you also connected an Anthropic subscription at the user level, go to Settings → User Integrations → Anthropic, disconnect the existing connection, then paste a fresh setup token.
User subscriptions are a single connection, so there you have to disconnect first — the token field only appears once the existing connection is removed. Workspace subscriptions no longer work this way.
Setup tokens do not expire, so the periodic re-authorization the old flow needed every 8 hours is gone.

Setting as Default

To use Claude Code automatically for all requests:
  1. Go to Dashboard → Agents
  2. Select “Set as default agent” from Claude Code’s dropdown menu

Using Claude Code

Once configured, Claude Code is used automatically if it’s your default agent:
Or use the /claude slash command to use it specifically:

Best For

  • Code reviews and analysis
  • Complex problem solving
  • Architecture planning
  • Security analysis
  • Detailed explanations
  • Refactoring

Cost

Claude Code uses your Anthropic API key or subscription: With the Blocks authentication method there is no Anthropic bill. Requests route through the Blocks AI Gateway and are billed against your Blocks LLM credits.

Next Steps

Codex Agent

Learn about Codex

Gemini CLI

Explore Gemini CLI (experimental)