Updated:
Claude Code FAQ
Here are common questions and solutions when using Claude Code.
For help, choose a channel under pre-sales and after-sales support.
Base URL and routes
The examples use the Mainland China route, https://api-lb.cubence.ai. For global use, set the Base URL to https://api.cubence.ai; outside Mainland China, you can use https://api.cubence.com. Keep any request path when switching routes. See API endpoints and Base URL configuration.
Usage Tips
What are the common Claude Code commands?
| Command | Description |
|---|---|
claude | Start interactive session |
claude -p [question] | Single Q&A mode, exits after answering |
claude -c | Resume the most recent session |
claude --model sonnet | Specify the model to use |
claude mcp | Manage MCP server connections |
How to resume a previous session?
Use the claude -c command to resume the most recent conversation session and continue your previous work.
Configuration Issues
How to configure Claude Code extension in VSCode?
- First complete CLI configuration (refer to Claude Code Setup)
- Open configuration directory:
- Windows:
Win+Rand enter%userprofile%\.claude - macOS:
Command+Shift+Gand enter~/.claude
- Windows:
- Create or edit
config.json, add:{"primaryApiKey": "Cubence"} - Restart VSCode
What to do if configuration file doesn't take effect?
- Confirm the configuration file path is correct (Windows:
%userprofile%\.claude\settings.json, macOS:~/.claude/settings.json) - Check if the file name is correct, make sure it's
settings.jsonnotsettings.json.txt - Check if JSON format is correct (use online JSON validator)
- Restart the terminal and try again
What to do if API Key is invalid?
- Confirm API Key is copied correctly without extra spaces
- Confirm API Key has not expired, check key status in Cubence console
- Confirm
ANTHROPIC_BASE_URLmatches the root URL of your selected route, such ashttps://api-lb.cubence.aifor Mainland China
Other Issues
What to do about connection timeout or network error?
- Check if network connection is normal
- Confirm
ANTHROPIC_BASE_URLmatches the root URL of your selected route, such ashttps://api-lb.cubence.aifor Mainland China - If using a proxy, ensure proxy configuration is correct
- Try turning off VPN or proxy and retry
What to do about permission-related errors?
- macOS/Linux: Ensure configuration file has correct read/write permissions
chmod 600 ~/.claude/settings.json - Windows: Check if file is being used by another program, or run terminal as administrator