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

# Zed

> 在 Zed 中使用 S2 模型进行 AI 编程

## 安装 Zed

按照 [Zed 官方文档](https://zed.dev/docs/) 完成 Zed 安装配置。

## 配置 SenseAudio API

<Steps>
  <Step title="进入智能体面板">
    点击右下角 ✨ 图标进入智能体面板。

    <img src="https://mintcdn.com/sa-5efeb1e4/TA-q4lj8eSdDrErc/images/token-plan/zed01.png?fit=max&auto=format&n=TA-q4lj8eSdDrErc&q=85&s=8e826eec1801e44da28de2ad35879680" width="80%" data-path="images/token-plan/zed01.png" />
  </Step>

  <Step title="进入配置页面">
    点击右上角三点按钮进入 configure。

    <img src="https://mintcdn.com/sa-5efeb1e4/TA-q4lj8eSdDrErc/images/token-plan/zed02.png?fit=max&auto=format&n=TA-q4lj8eSdDrErc&q=85&s=c45925328afdb0891ae9e00b829a8b05" width="80%" data-path="images/token-plan/zed02.png" />
  </Step>

  <Step title="添加 LLM Provider">
    找到 **LLM Provider** 模块，点击 **+ Add Provider**，在下拉框中选择 **OpenAI**。

    <img src="https://mintcdn.com/sa-5efeb1e4/TA-q4lj8eSdDrErc/images/token-plan/zed03.png?fit=max&auto=format&n=TA-q4lj8eSdDrErc&q=85&s=542b5b148676872ef2c2602243be0f6e" width="80%" data-path="images/token-plan/zed03.png" />
  </Step>

  <Step title="填写配置信息">
    | 配置项               | 值                                                                 |
    | ----------------- | ----------------------------------------------------------------- |
    | **Provider Name** | `SenseAudio`（自定义）                                                 |
    | **API URL**       | `https://api.senseaudio.cn/v1`                                    |
    | **API Key**       | `您的 Token Plan API Key（详见 [快速接入](/guides/token-plan/quickstart)）` |
    | **Model Name**    | `senseaudio-s2`                                                   |

    <img src="https://mintcdn.com/sa-5efeb1e4/TA-q4lj8eSdDrErc/images/token-plan/zed04.png?fit=max&auto=format&n=TA-q4lj8eSdDrErc&q=85&s=5710ce6aa5ff52df31adc431485358a0" width="80%" data-path="images/token-plan/zed04.png" />
  </Step>

  <Step title="保存配置">
    点击 **Save Provider**。LLM Provider 列表中出现 SenseAudio。

    <img src="https://mintcdn.com/sa-5efeb1e4/TA-q4lj8eSdDrErc/images/token-plan/zed05.png?fit=max&auto=format&n=TA-q4lj8eSdDrErc&q=85&s=f490ee0c2228ae43179d459c82b1e2de" width="80%" data-path="images/token-plan/zed05.png" />
  </Step>

  <Step title="选择模型并使用">
    返回智能体面板，点击右下角 **Select a Model**，选择刚配置的 `senseaudio-s2`。

    <img src="https://mintcdn.com/sa-5efeb1e4/TA-q4lj8eSdDrErc/images/token-plan/zed06.png?fit=max&auto=format&n=TA-q4lj8eSdDrErc&q=85&s=5b62addf6a120db775ef2b13197d3bf1" width="80%" data-path="images/token-plan/zed06.png" />
  </Step>
</Steps>

## 相关资源

<CardGroup cols={2}>
  <Card title="Claude Code 接入" icon="sparkles" href="/guides/token-plan/claude-code" />

  <Card title="S2 使用技巧" icon="lightbulb" href="/guides/token-plan/best-practices" />

  <Card title="常见问题" icon="circle-question" href="/guides/token-plan/faq">
    订阅、限额、切换、开票等问题解答。
  </Card>
</CardGroup>
