Claude Code TierFlow Setup
This guide shows how to connect Claude Code to TierFlow.
Basic information:
| Item | Value |
|---|---|
| Base URL | http://47.99.200.103:8003/anthropic |
| Authentication | Bearer Token |
| Protocol | Anthropic API Compatible |
| Model | auto |
1. Check That Claude Code Is Installed
Windows PowerShell:
claude --versionmacOS / Linux terminal:
claude --versionIf a version number is shown, Claude Code is installed. For example:
2.1.143 (Claude Code)2. Config File Locations
Claude Code mainly uses two config files:
| System | settings.json | .claude.json |
|---|---|---|
| Windows | C:\Users\YOUR_USERNAME\.claude\settings.json | C:\Users\YOUR_USERNAME\.claude.json |
| macOS | /Users/YOUR_USERNAME/.claude/settings.json | /Users/YOUR_USERNAME/.claude.json |
| Linux | /home/YOUR_USERNAME/.claude/settings.json | /home/YOUR_USERNAME/.claude.json |
3. Create the .claude Folder
Windows
Open File Explorer and enter this in the address bar:
%USERPROFILE%Create this folder under your user directory:
.claudemacOS
Open Terminal:
mkdir -p ~/.claude
open ~/.claudeYou can also open Finder, press Command + Shift + G, and enter:
~/.claudeLinux
Open Terminal:
mkdir -p ~/.claudeIf you use a file manager, open your home directory, show hidden files, then enter .claude.
4. Create settings.json
Create this file inside the .claude folder:
settings.jsonWrite:
{
"env": {
"ANTHROPIC_BASE_URL": "http://47.99.200.103:8003/anthropic",
"ANTHROPIC_AUTH_TOKEN": "YOUR_API_KEY_HERE",
"ANTHROPIC_MODEL": "auto",
"ANTHROPIC_DEFAULT_SONNET_MODEL": "auto",
"ANTHROPIC_DEFAULT_OPUS_MODEL": "auto",
"ANTHROPIC_DEFAULT_HAIKU_MODEL": "auto"
}
}Replace:
YOUR_API_KEY_HEREwith your real API key.
5. Create .claude.json
Create this file in your user directory:
.claude.jsonWrite:
{
"hasCompletedOnboarding": true
}File locations:
Windows:
C:\Users\YOUR_USERNAME\.claude.jsonmacOS:
/Users/YOUR_USERNAME/.claude.jsonLinux:
/home/YOUR_USERNAME/.claude.json6. Restart the Terminal
Close the current terminal and open it again.
Enter your project directory:
Windows PowerShell:
cd C:\path\to\your\projectmacOS / Linux:
cd /path/to/your/projectStart Claude Code:
claudeWhen entering a project for the first time, select:
Trust This Folder7. Verify the Setup
In Claude Code, type:
/statusConfirm the model is:
autoThen test with:
Reply exactly OK.If Claude Code returns a normal response, the setup is complete.
8. VS Code Extension Setup
If you use the Claude Code VS Code extension, configure VS Code settings.json like this:
{
"claudeCode.preferredLocation": "panel",
"claudeCode.selectedModel": "auto",
"claudeCode.environmentVariables": [
{
"name": "ANTHROPIC_BASE_URL",
"value": "http://47.99.200.103:8003/anthropic"
},
{
"name": "ANTHROPIC_AUTH_TOKEN",
"value": "YOUR_API_KEY_HERE"
},
{
"name": "ANTHROPIC_MODEL",
"value": "auto"
},
{
"name": "ANTHROPIC_DEFAULT_SONNET_MODEL",
"value": "auto"
},
{
"name": "ANTHROPIC_DEFAULT_OPUS_MODEL",
"value": "auto"
},
{
"name": "ANTHROPIC_DEFAULT_HAIKU_MODEL",
"value": "auto"
}
]
}9. Troubleshooting
Wrong File Name
Make sure the files are not named:
settings.json.txt
.claude.json.txtOn Windows, enable file extension display.
On macOS / Linux, you can check with:
ls -la ~/.claude ~/.claude.jsonClaude Code Still Uses Official Claude
Check whether old global environment variables are set.
Windows PowerShell:
echo $env:ANTHROPIC_BASE_URL
echo $env:ANTHROPIC_AUTH_TOKENmacOS / Linux:
echo "$ANTHROPIC_BASE_URL"
echo "$ANTHROPIC_AUTH_TOKEN"If old values are shown, close and reopen the terminal. If these variables were written into a shell config file, remove the old config there.
Authentication Failed
Check this value in settings.json:
"ANTHROPIC_AUTH_TOKEN": "YOUR_API_KEY_HERE"Make sure it has been replaced with your real API key.
Config Changed but Did Not Take Effect
Restart the terminal, VS Code, Cursor, Windows Terminal, or whichever program starts Claude Code.
10. Optional Command Write
Use this only if you have confirmed the paths and API key. Manual editing is safer for new users.
Windows PowerShell
Replace YOUR_API_KEY_HERE with your API key:
New-Item -ItemType Directory -Force "$env:USERPROFILE\.claude"
@'
{
"env": {
"ANTHROPIC_BASE_URL": "http://47.99.200.103:8003/anthropic",
"ANTHROPIC_AUTH_TOKEN": "YOUR_API_KEY_HERE",
"ANTHROPIC_MODEL": "auto",
"ANTHROPIC_DEFAULT_SONNET_MODEL": "auto",
"ANTHROPIC_DEFAULT_OPUS_MODEL": "auto",
"ANTHROPIC_DEFAULT_HAIKU_MODEL": "auto"
}
}
'@ | Set-Content -Encoding UTF8 "$env:USERPROFILE\.claude\settings.json"
@'
{
"hasCompletedOnboarding": true
}
'@ | Set-Content -Encoding UTF8 "$env:USERPROFILE\.claude.json"macOS / Linux
Replace YOUR_API_KEY_HERE with your API key:
mkdir -p ~/.claude
cat > ~/.claude/settings.json <<'JSON'
{
"env": {
"ANTHROPIC_BASE_URL": "http://47.99.200.103:8003/anthropic",
"ANTHROPIC_AUTH_TOKEN": "YOUR_API_KEY_HERE",
"ANTHROPIC_MODEL": "auto",
"ANTHROPIC_DEFAULT_SONNET_MODEL": "auto",
"ANTHROPIC_DEFAULT_OPUS_MODEL": "auto",
"ANTHROPIC_DEFAULT_HAIKU_MODEL": "auto"
}
}
JSON
cat > ~/.claude.json <<'JSON'
{
"hasCompletedOnboarding": true
}
JSON