Claude Code CLI
Configure Claude Code CLI to use Bitdeer AI models
Claude Code is a command-line tool that brings Anthropic's Claude directly into your terminal. You can configure it to route requests through Bitdeer AI's models using custom API keys and base URL settings.
Prerequisites
- A Bitdeer AI API key (get one here)
- Claude Code CLI installed
Configuration steps
Set environment variables
For temporary session configuration, export the variables directly in your current terminal session:
For persistent setup, append the commands above to your shell profile (~/.zshrc for macOS/zsh or ~/.bashrc for Linux/bash), then apply the changes:
Run the standard launch command to start coding:
Recommended models for Claude
| Model | Bitdeer Model Mapping | Best for |
|---|---|---|
| Opus & Sonnet | zai-org/GLM-5.3 | Complex reasoning & debugging |
| Haiku | zai-org/GLM-5.3-Flash | Fast budget coding |