> ## Documentation Index
> Fetch the complete documentation index at: https://docs.avibe.bot/llms.txt
> Use this file to discover all available pages before exploring further.

# Claude Code

> 在浏览器 Workbench 或任意聊天软件里，通过 Avibe 运行 Claude Code。

# Claude Code

Claude Code 是深度推理、复杂重构和跨代码库任务的强默认选择。

## 安装

```bash theme={null}
npm install -g @anthropic-ai/claude-code
```

验证：

```bash theme={null}
claude --version
```

## 模型与认证

Claude Code 用的是你自己的 Anthropic 访问权限——Claude 订阅或 API key。Avibe 驱动的是官方 CLI，所以你的认证和模型选择，和你在终端里用的完全一样。模型在 [Workbench](/zh/concepts/workbench) 里按 agent 选，凭证留在本地。

## 在 Avibe 中配置

在设置向导里：

1. 启用 Claude Code。
2. 确认 `claude` CLI 路径。
3. 选择默认工作目录。
4. 把一个或多个聊天 channel 路由到 Claude Code。

## 适合做什么

深度推理、跨多文件的重构、覆盖整个代码库的任务。常见做法是把 `#backend` 或处理复杂逻辑的频道路由到这里——按频道路由和中途切换见 [Thread 会话](/zh/concepts/thread-sessions)。

## 使用提示

* 保持 Claude Code 认证在本地。
* 使用聊天 thread 隔离独立工作。
* 在开始大型重构前，先用小任务验证权限和项目路径。

## 冒烟测试

```text theme={null}
Read the current project root and summarize the repository in three bullets.
```
