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

# Claude Code Plugin 快速開始

> 安裝 Claude Code 的 DataGen plugin，2 分鐘內執行你的第一個 skill

DataGen plugin 將 Claude Code 連接到 DataGen AI Cloud。這是使用 DataGen 的其中一種方式：你可以直接在終端機中建立並部署 Agent、連接外部服務，以及呼叫 DataGen 工具。若想改在瀏覽器中操作，請從 [AI Cloud 快速開始](/zh/overview/quickstart) 著手。

## 事前準備

* [Claude Code](https://docs.anthropic.com/en/docs/claude-code) v1.0.33 以上版本
* 一個 [DataGen 帳號](https://datagen.dev)

## 安裝 Plugin

<Tabs>
  <Tab title="終端機">
    ```bash theme={null}
    claude plugin marketplace add datagendev/datagen-plugin
    claude plugin install datagen --scope project
    ```
  </Tab>

  <Tab title="Claude Code">
    ```
    /plugin marketplace add datagendev/datagen-plugin
    /plugin install datagen --scope project
    ```

    <Tip>
      在 Claude Code 的輸入框中輸入 <span style={{color: '#F97316', fontWeight: 'bold'}}>/plugin</span> 即可使用 plugin 相關指令。
    </Tip>
  </Tab>
</Tabs>

## 執行設定

在 Claude Code 中執行：

```
/datagen:setup
```

這會依序執行以下動作：

<Steps>
  <Step title="驗證身分">
    瀏覽器會開啟視窗，透過 OAuth 向 DataGen 驗證身分。
  </Step>

  <Step title="儲存 API Key">
    你的 API key 會寫入 shell 設定檔（`~/.zshrc` 或對應的檔案）。
  </Step>

  <Step title="設定 MCP Server">
    Plugin 會自動連接到 `https://mcp.datagen.dev/mcp`。
  </Step>

  <Step title="安裝 CLI 與 SDK">
    安裝 DataGen CLI，並可選擇安裝 Python 或 TypeScript SDK。
  </Step>
</Steps>

<Note>
  設定完成後，50 個以上的 MCP 工具都可在你的 Claude Code 工作階段中使用。試著問 Claude：**「List all available DataGen tools」**。
</Note>

## 你會得到什麼

Plugin 會在 Claude Code 中加入 **9 個斜線指令**：

| 指令 | 說明 |
| - | - |
| `/datagen:setup` | 驗證身分並設定 MCP 工具 |
| `/datagen:add-mcps` | 連接外部服務（Gmail、Slack、Linear 等） |
| `/datagen:build-agent` | 透過引導式流程建立新的 Agent |
| `/datagen:deploy-agent` | 將 Agent 部署為 webhook 或排程自動化 |
| `/datagen:manage-agents` | 列出、監控與管理已部署的 Agent |
| `/datagen:fetch-agent` | 瀏覽並安裝預先建好的 Agent 範本 |
| `/datagen:fetch-skill` | 瀏覽並安裝可重複使用的 skill |
| `/datagen:create-custom-tool` | 以你自己的邏輯建立自訂工具 |
| `/datagen:code-mode` | 使用 SDK 撰寫本機 Python/TypeScript 腳本 |

另外還有 **50 個以上的 MCP 工具**，涵蓋 Gmail、Slack、Linear、GitHub、HubSpot、LinkedIn、Notion 等服務。

## 下一步

<CardGroup cols={2}>
  <Card title="建立你的第一個 Agent" icon="robot" href="/zh/agents/build">
    撰寫 Agent 並部署到雲端
  </Card>

  <Card title="連接服務" icon="plug" href="/zh/agents/tools">
    加入 Gmail、Linear、Slack 與其他 MCP server
  </Card>
</CardGroup>

***

沒有使用 Claude Code？其他安裝方式請參考 [其他設定方式](/zh/developers/alternative-setup)。


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.