Manual CLI Setup
Claude Code Manual Configuration
Edit settings.json to connect Claude Code to GETMODEL
Make sure you have completed the environment check before continuing with the steps below.
1. Open the config directory
Press Win + R, type the following, and hit Enter:
%userprofile%\.claudeIn the terminal:
open ~/.claude # macOS
xdg-open ~/.claude # Linux2. Create or edit settings.json
If there is no settings.json in the directory, create one; if there is, edit it directly. Paste the following content:
{
"env": {
"ANTHROPIC_BASE_URL": "https://getmodel.ai",
"ANTHROPIC_AUTH_TOKEN": "你的-API-令牌",
"CLAUDE_CODE_ATTRIBUTION_HEADER": "0"
}
}Replace "你的-API-令牌" with the string you generated on the Create Token page.
About the base URL: This document uses https://getmodel.ai as an example. Use the actual address shown on the Console "API Info" page.
3. Verify
Run in the terminal:
claudeOnce you are in the chat interface, ask anything. If you get a reply, the configuration was successful.