---
title: 在 VS Code 中用 Claude 运行免费 AI 智能体
description: "用 apitoken.sale 的 Claude 密钥配置 Cline、Roo Code 等免费 VS Code 智能体——无需 Cursor Pro。一个端点，通用所有 Claude 模型，还享折扣。"
url: https://apitoken.sale/zh/docs/learn/vscode-ai-agents-one-prompt
language: zh-CN
---

# 用 Claude 运行免费的 VS Code AI 智能体

无需 Cursor Pro 也能拥有智能体编码。免费的 VS Code 智能体接受任何兼容 Anthropic 的密钥，因此 Claude 可以用折扣余额在 VS Code 中运行。

## 把智能体指向 Claude

1. 安装一个免费的智能体扩展，例如 Cline 或 Roo Code。
2. 选择 Anthropic 作为 API 提供方。
3. 把 Base URL 设为 https://api.apitoken.sale，粘贴你的 sk-pool-••• 密钥，并选择一个模型，例如 claude-sonnet-5。

## 为每项任务选对模型

- claude-sonnet-5——日常编码和智能体循环的默认之选。
- claude-opus-4-8——复杂重构、架构设计和漫长会话。
- claude-haiku-4-5——快速、廉价的编辑和高吞吐步骤。

由于一把密钥通用所有模型，你可以在扩展里按任务随时切换，无需更换账户或计费方式。

## 常见问题

### 做 AI 编码需要 Cursor Pro 吗？

不需要。Cline、Roo Code 等免费 VS Code 智能体都可搭配 apitoken.sale 的 Claude 密钥使用。

### 我该选哪个模型？

日常编码用 claude-sonnet-5；复杂任务用 claude-opus-4-8。

---
Get a key: https://apitoken.sale/register
More guides: https://apitoken.sale/zh/docs/learn
