Skip to main content

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.

bash
1
curl -fsSL https://claude.ai/install.sh | bash

Configure Nebul

Set the following environment variables so Claude Code sends requests to Nebul instead of Anthropic:

bash
123
export ANTHROPIC_BASE_URL=https://api.inference.nebul.io
export ANTHROPIC_API_KEY=sk-your-api-key-here
export 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:

bash
1
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

warning

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:

bash
12
export DISABLE_TELEMETRY=1
export 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.

info

Having trouble? Start Claude Code with the --debug flag for detailed logs, and include the log output when you contact support.