Claude Code for VS Code User Guide

Claude Code is a programming tool launched by Anthropic, also known as one of the world's strongest programming agents. The Claude Code extension for VS Code provides a native graphical interface and is the recommended way to use Claude Code within VS Code.

This document mainly introduces how to configure and use the Claude Code extension in VS Code through the proxy service of qiyaov.

Application Process

To use Claude Code, you can first go to the qiyaov Console to obtain your API Token for backup.

If you are not logged in or registered, you will be automatically redirected to the login page inviting you to register and log in. After logging in or registering, you will be automatically returned to the current page.

There will be a free quota offered during the first application, allowing you to experience Claude Code services for free.

Installing the Claude Code Plugin

In the VS Code extension marketplace, simply search for Claude Code, and the first ranked result is the Claude Code plugin we need:

Claude Code Plugin in VS Code Marketplace

After installation, select "Trust" in the pop-up information prompt to complete the installation. Once installed, we can see the entry for the Claude Code plugin in the sidebar, as shown in the image:

Configuring qiyaov API

When you first open the plugin, you will be prompted to log in to the official Anthropic account. You can skip the official login and use the qiyaov proxy API configuration instead, without needing an official subscription.

The extension and terminal CLI read the same set of Claude Code Settings. For complete authentication, credential conflict handling, and global configuration methods, see the Claude Code Terminal Configuration Guide. If you only want the current project to take effect, create a .claude/settings.local.json in the project root directory that is included in .gitignore:

{
  "env": {
    "ANTHROPIC_AUTH_TOKEN": "{token}",
    "ANTHROPIC_BASE_URL": "https://api.qiyaov.com",
    "CLAUDE_CODE_AUTO_COMPACT_WINDOW": "850000"
  }
}

Where {token} is the token you just copied. CLAUDE_CODE_AUTO_COMPACT_WINDOW sets the trigger window for automatic compression to about 850,000 tokens, reserving space for tool results and final answers, and does not modify the model's context limit. If there is an old ANTHROPIC_API_KEY in the environment where VS Code is launched, please first unset ANTHROPIC_API_KEY in that environment; do not treat an empty string as a cleanup. Also, do not place the real Token in the team-shared .claude/settings.json.

As shown in the image:

After configuration, restart VS Code.

Note: The above configuration only takes effect for the current project, and it is recommended to add the above .claude/settings.local.json configuration file path to the .gitignore file to prevent it from being pushed to the remote repository.

If you want it to take effect for all projects, you can directly place the configuration in the user directory. The corresponding path is ~/.claude/settings.json.

Note: After configuration, please restart or reload VS Code for the above configuration to take effect.

Basic Usage

Once configured, we can use Claude Code in VS Code by directly entering any questions in the Claude Code panel, as shown in the image:

Thus, we have successfully utilized Claude Code through qiyaov.

How to Check Remaining Quota

You can check the current account's remaining quota through the qiyaov Console - Application List.

You can view all usage history and billing details through the qiyaov Console - Usage History.

Learn More