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

# 在 Claude Code 中使用

> 將 HubTo 接入 Claude Code，透過統一網關調用 Claude 系列模型。

## 概述

Claude Code 是面向開發者的命令列 AI 助手。

透過接入 HubTo，你可以把 Claude Code 的請求統一走 HubTo 網關，方便集中管理 API Key、模型權限、額度與路由策略。

## 快速設定

```bash theme={null}
export ANTHROPIC_API_KEY="YOUR_API_KEY"
export ANTHROPIC_BASE_URL="https://api.hubto.ai"
export ANTHROPIC_MODEL="claude-opus-4-7"
claude
```

## 說明

* 請先確認你的 HubTo 金鑰已開通 Claude 相關模型。
* 如需切換模型，只需修改 `ANTHROPIC_MODEL`。
* 目前可用模型建議以模型廣場顯示為準。
* 如需持久化設定，請把這些變數寫入 shell 設定檔。
