Claude Code Configuration Tutorial
Claude Code is a programming agent (Agentic Coding tool) launched by Anthropic, which can be used in terminals, various IDEs, and CI/CD pipelines such as GitHub Actions. Through the qiyaov proxy, you can use Claude Code at a lower price without an official Anthropic subscription, and a single API Token can call all services on the platform.
¶ Configuration Tutorial by Platform
Choose the complete configuration tutorial for the corresponding platform based on your usage scenario:
| Platform | Description | Tutorial Link |
|---|---|---|
| Terminal (CLI) | Core experience, run claude in any terminal to get started |
Terminal Configuration Tutorial |
| VS Code | Native extension, supports inline Diff, @-mentions, scheduled reviews | VS Code Configuration Tutorial |
| CC Switch (GUI) | Desktop GUI, one-click vendor switch, no need to write configuration files | CC Switch Configuration Tutorial |
| GitHub Actions | Automate code review and processing in Issues / PRs with @claude |
GitHub Actions Configuration Tutorial |
¶ General Configuration
Regardless of the platform used, the core is to point the two environment variables of Claude Code to qiyaov:
export ANTHROPIC_BASE_URL="https://api.qiyaov.com"
export ANTHROPIC_AUTH_TOKEN="{token}"
export CLAUDE_CODE_AUTO_COMPACT_WINDOW="850000"
Where {token} is the API Token you obtained from the console; CLAUDE_CODE_AUTO_COMPACT_WINDOW sets the automatic compression trigger window to approximately 850,000 tokens, reserving space for tool results and final answers, and does not modify the model's context limit. The specific syntax for each platform (environment variables or .claude/settings.local.json, etc.) can be found in the corresponding tutorials above.
Tip: For first-time applicants, you can go to the Claude Messages service page and click "Acquire" to obtain credentials, which includes free credits; when credits are insufficient, you can recharge the general balance in the console.