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. Install or update Node.js (v18.0 or later).
- 2. Run the following command in the terminal to install Claude Code.
npm install -g @anthropic-ai/claude-code3. Run the following command to verify the installation. If a version number is returned, the installation is successful.
claude --versionWindows
To use Claude Code on Windows, install WSL or Git for Windows, and then run the following command in WSL or Git Bash.
npm install -g @anthropic-ai/claude-codeFor 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.
{
"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.
{
"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
- U Plan: go to Console > Subscription Management > U Plan to get the API Key
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.