GETMODEL
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.

Claude Code manual configuration demo

1. Open the config directory

Press Win + R, type the following, and hit Enter:

%userprofile%\.claude

In the terminal:

open ~/.claude        # macOS
xdg-open ~/.claude    # Linux

2. 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:

claude

Once you are in the chat interface, ask anything. If you get a reply, the configuration was successful.

On this page