Claude Code
Claude Code is Anthropic's agentic coding assistant for the terminal. Point it at Nebul's Anthropic-compatible endpoint and your Nebul AI Studio API key to run supported models through your Nebul project.
Prerequisites
- A Nebul AI Studio account with API access
- An API key for your active project
- A model ID from the Model Catalog that your project can access
Installation
Install the Claude Code CLI using one of the methods below. For the full list of install options, see the Claude Code documentation.
- macOS, Linux, WSL
- Windows PowerShell
- Windows Command Prompt
- Homebrew
curl -fsSL https://claude.ai/install.sh | bash
irm https://claude.ai/install.ps1 | iex
curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmd
brew install --cask claude-code
Configure Nebul
Set the following environment variables so Claude Code sends requests to Nebul instead of Anthropic:
export ANTHROPIC_BASE_URL=https://api.inference.nebul.ioexport ANTHROPIC_API_KEY=sk-your-api-key-hereexport ANTHROPIC_MODEL=zai-org/GLM-5.1-FP8
Replace sk-your-api-key-here with your API key from Nebul AI Studio. Set ANTHROPIC_MODEL to any model your project can use — see the Model Catalog for available IDs. We recommend using the zai-org/GLM-5.1-FP8 model for the best performance.
Add these exports to your shell profile (for example ~/.zshrc or ~/.bashrc) if you want them to persist across sessions.
Start Claude Code
From your project directory, launch the CLI:
claude
Claude Code now routes inference through Nebul. Usage is attributed to the API key's project in AI Studio.
For additional configuration options, see Claude Code — Model configuration.
Data and telemetry
Routing inference through Nebul does not disable Claude Code's built-in telemetry and error reporting. The CLI may still send operational metrics, error logs, and other non-inference data to Anthropic servers.
To opt out of Claude Code's main telemetry services, set:
export DISABLE_TELEMETRY=1export DISABLE_ERROR_REPORTING=1
Add these alongside your Nebul configuration if you want them to persist. For the full list of data flows, retention policies, and additional opt-out options, see Anthropic's Claude Code data usage — Telemetry services.
Having trouble? Start Claude Code with the --debug flag for detailed logs, and include the log output when you contact support.