Skip to main content

Claude Code Configuration Document

Overview

This document explains how to configure Claude Code using the CloudBase AI CLI.

Cloudbase AI CLI Introduction Documentation

CloudBase AI CLI supports configuring Claude Code in two ways:

  • CloudBase Configuration: One-click login to CloudBase, select a CloudBase environment, and use the Deepseek/Kimi large model within the CloudBase environment.
  • Custom Configuration: Configure your Anthropic-compatible Base URL and API Key

CloudBase Configuration

Run:

tcb ai --setup

After the command runs, it will enter the configuration wizard.

  1. Select the AI programming assistant to configure, then select Claude Code
  2. Select the configuration method, choose Use CloudBase service, one-click login, no configuration required
  3. Follow the prompts to log in to your account and select a CloudBase environment as needed.
  4. Select the large model provider and model name to use. After configuration is complete, it will directly connect to the large model configured on the CloudBase platform. For details, refer to the Large Model Access Guide
  5. Finally, you can select the default AI programming assistant to use. Subsequent runs of tcb ai will then open it by default.

The configuration is complete after all inputs are provided.

Custom Configuration

Run:

tcb ai --setup

After the command runs, it will enter the configuration wizard.

  1. Select the AI programming assistant to configure, then select Claude Code
  2. Select the configuration method, choose Self-configured API KEY and Base URL
  3. Enter Base URL and API KEY
  4. Finally, you can select the default AI programming assistant to use. Subsequent runs of tcb ai will then open it by default.

The configuration is complete after all inputs are provided.

Start Claude Code

tcb ai -a claude
tip

If Claude Code is configured as the default, you can directly run tcb ai.

Detailed Configuration Guide

Custom Configuration

Configure Kimi K2

Refer to the Custom Configuration section, where:

  • Base URL: Select the preset Kimi Base URL
  • API KEY: Enter your Kimi API KEY, which can be obtained from Kimi

Configure Zhipu glm-4.5

Refer to the Custom Configuration section, where:

  • Base URL: Select the preset Zhipu Base URL
  • API KEY: Enter your Zhipu API KEY, which can be obtained from Zhipu BigModel
Reference Documentation

Configure Claude

Refer to the Custom Configuration section, where:

  • Base URL: Select a custom URL and enter https://api.anthropic.com
  • API KEY: Enter your Anthropic API KEY, which can be obtained from Anthropic
Reference Documentation