Claude Code

Claude Code is a command-line AI coding assistant from Anthropic. Through configuration, it can connect to AI models on the Unisound Maas Platform and supports two access methods: pay-as-you-go and U Plan.

1. Install Claude Code

Installation

macOS

  1. 1. Install or update Node.js (v18.0 or later).
  2. 2. Run the following command in the terminal to install Claude Code.
Shell
npm install -g @anthropic-ai/claude-code

3. Run the following command to verify the installation. If a version number is returned, the installation is successful.

Shell
claude --version

Windows

To use Claude Code on Windows, install WSL or Git for Windows, and then run the following command in WSL or Git Bash.

Shell
npm install -g @anthropic-ai/claude-code

For details, refer to the Claude Code official documentation for the Windows installation guide.

Skip login verification

Edit or create ~/.claude.json (Windows path: C:\Users\<username>\.claude.json), set hasCompletedOnboarding to true to skip the official Anthropic login verification.

JSON
{
  "hasCompletedOnboarding": true
}

2. Configure access credentials

Create ~/.claude/settings.json (Windows path: C:\Users\<username>\.claude\settings.json) and write the configuration for the corresponding package.

Replace UNISOUND_API_KEY with your API Key.

JSON
{
  "env": {
    "ANTHROPIC_AUTH_TOKEN": "UNISOUND_API_KEY",
    "ANTHROPIC_BASE_URL": "https://maas-api.unisound.com/anthropic",
    "ANTHROPIC_DEFAULT_HAIKU_MODEL": "u2-flash",
    "ANTHROPIC_DEFAULT_OPUS_MODEL": "u2-flash",
    "ANTHROPIC_DEFAULT_SONNET_MODEL": "u2-flash",
    "ANTHROPIC_MODEL": "u2-flash"
  }
}
  • Pay-as-you-go/model packages: go to Console > API Key Management > Create API Key to get the API Key
Pay-as-you-go supports all multimodal models, including text, speech, vision, and more.
  • U Plan: go to Console > Subscription Management > U Plan to get the API Key
The plan-exclusive Key is used for plan quota. It can exist before paid resources are available; resources can only be used when you have plan quota. See U Plan Subscription Overview

After saving the configuration, open a new terminal window and run claude "hello". If the model responds normally, the configuration is successful. For further confirmation, run /status in Claude Code and check whether ANTHROPIC_BASE_URL and ANTHROPIC_AUTH_TOKEN point to the Token Hub endpoint correctly.

3. Configure model Skill

We provide built-in U2-ASR, U2-TTS, U2-TTS-Clone, and U2-OCR capabilities. You only need to add the corresponding model Skill in Claude Code to quickly call these model services without integrating each model API separately.

Click the links below to open the corresponding Skill pages. You can install each Skill via chat or the command line. After installation, the Skill will guide you through configuring the related models.

Model
Skill Name
Skill Description
Action
U2-OCR
u1-ocr-parser-pro
Document Parsing
U2-OCR
u1-ocr-extract-pro
Document Information Extraction and Classification
U2-OCR-Med
u1-ocr-med-pro
Medical Document Information Extraction and Classification
U2-ASR
u2-asr-pro
Speech Transcription
U2-TTS
u2-tts-pro
Speech Synthesis
U2-TTS-Clone
u2-tts-clone-pro
Voice Cloning