Skip to content

Claude Code Configuration

Author: goswitch

Updated: 2026-06-13T10:02:01.000Z

Windows

  1. Press "Win+R" on your keyboard, enter the following and press Enter to open the Claude Code configuration directory
%userprofile%\.claude

  1. The directory contents are shown in the image. If settings.json doesn't exist in the directory, you need to create it manually
  • settings.json: Claude's main configuration file, used to configure the relay address, ApiKey, hooks, plugins, etc.

  1. Write the following content to settings.json
{
  "env": {
    "ANTHROPIC_BASE_URL": "https://goswitch.online",
    "ANTHROPIC_AUTH_TOKEN": "xxx",
    "CLAUDE_CODE_ATTRIBUTION_HEADER": "0",
    "CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC": "1",
    "CLAUDE_CODE_DISABLE_TERMINAL_TITLE": "1"
  }
}

  1. Review Create API Token, create a token in the CC group in GoSwitch, and replace the xxx part above

  1. Run claude in the Windows terminal. When the dialogue interface appears, test the conversation. If you receive a reply, configuration is successful

Important

Note: If you still encounter errors after configuration, such as a prompt requiring login, please refer to the following link for resolutionclaude-code-cannot-connect-to-anthropic-service

GoSwitch documentation site.