Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.routerlink.ai/llms.txt

Use this file to discover all available pages before exploring further.

This documentation is provided for informational purposes only and demonstrates how to configure and use our API with third-party AI chat interfaces. Any third-party software, websites, or services mentioned are not operated, controlled, or endorsed by us.

Introduction to Claude Code

Demo
Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.Claude Code Key Features:
  • Autonomous Action: Reads/writes files, runs terminal commands, and fixes bugs directly.
  • Full Context: Automatically understands the entire codebase without manual copy-pasting.
  • Safety & Control: Supports one-click rollbacks and requires manual approval for key actions.
  • Tool Integration: Supports custom complex workflows via SKILL.md.

Step

1

Install Claude Code

Firstly, install the newest LTS version of Node.js, and then use npm to install it globally in the terminal:
npm install -g @anthropic-ai/claude-code
2

Point Claude Code at RouterLink

Claude Code officially supports managing persistent configuration through the settings system. For daily use, it is recommended to prioritize writing configurations into settings.json. Shell or system environment variables are better suited for temporary switching, CI scenarios, or as a fallback when encountering known issues in the current version.Edit or create the settings.json file
On macOS & Linux: ~/.claude/settings.json
On Windows: C:\Users\<USERNAME>\.claude\settings.json
Make sure to replace with the <ROUTERLINK_API_KEY> obtained from RouterLink Key.
{
  "env": {
    "ANTHROPIC_AUTH_TOKEN": "<ROUTERLINK_API_KEY>",
    "ANTHROPIC_BASE_URL": "https://router-link.world3.ai/api",
    "API_TIMEOUT_MS": "3000000",
    "CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC": "1",
    "ANTHROPIC_DEFAULT_HAIKU_MODEL": "anthropic/claude-haiku-4-5",
    "ANTHROPIC_DEFAULT_SONNET_MODEL": "anthropic/claude-sonnet-4-6",
    "ANTHROPIC_DEFAULT_OPUS_MODEL": "anthropic/claude-opus-4-7"
  }
}
3

First launch

Navigate to your code working directory and run the claude command in the terminal to start using Claude Code
claude
When using Claude Code for the first time, you may be forced to log in to an Anthropic account. Please follow the steps below to skip this process:
Login 1
  1. Open or create the .claude.json file in the user’s home directory. The specific paths are as follows: macOS / Linux: ~/.claude.json Windows: C:\Users\<USERNAME>\.claude.json
  2. Set the value of the hasCompletedOnboarding field to true.
{
  "hasCompletedOnboarding": true
}
Save the file, then run claude again in the terminal.After launching, choose to trust Claude Code to access the files in the folder, as shown below:
Down
Done! You can now use Claude Code normally.

Troubleshooting

Make sure your API input is correct. Due to the high token consumption of Anthropic models, the daily free quota may not support this model. Please top up your balance.
  1. Go to https://routerlink.ai/models. Click on the model, set the API Format to “Anthropic,” and locate the model field in the code block.
Copy the model name from the model field and replace it in the settings.json file above.
Image
Open a new terminal window. Run claude to start Claude Code. Then enter /model to switch the model, and finally type /status to verify the model status.
Img V3 02115 9616c753 A33d 47d5 9e3d Dc70d79c24hu
If you have manually edited the ~/.claude/settings.json file but the changes are not applied, please try the following:
  1. Close all Claude Code windows. Open a new terminal window and run claude again to restart.
  2. If the issue persists, try deleting the ~/.claude/settings.json file and reconfigure the environment variables. Claude Code will automatically generate a new configuration file.
  3. Make sure the JSON format of the configuration file is correct. Check for issues such as incorrect variable names, missing commas, or extra commas. You can use an online JSON validator to verify the file.
Enter the following command in the terminal:
claude update