在何處執行 Claude Code
根據您喜歡的工作方式和專案所在位置選擇平台。
CLI 是終端原生工作的最完整介面:指令碼、第三方提供商和 Agent SDK 僅限 CLI。Desktop 和 IDE 擴充功能用視覺審查和更緊密的編輯器整合來交換一些僅限 CLI 的功能。Web 在 Anthropic 的雲端中執行,因此任務在您斷開連接後會繼續進行。
您可以在同一專案上混合使用介面。配置、專案記憶體和 MCP 伺服器在本地介面之間共享。
連接您的工具
整合讓 Claude 與程式碼庫外的服務協作。| 整合 | 它的作用 | 用途 |
|---|---|---|
| Chrome | 使用您已登入的會話控制您的瀏覽器 | 測試 Web 應用程式、填寫表單、自動化沒有 API 的網站 |
| GitHub Actions | 在您的 CI 管道中執行 Claude | 自動化 PR 審查、問題分類、排程維護 |
| GitLab CI/CD | 與 GitHub Actions 相同,但用於 GitLab | GitLab 上的 CI 驅動自動化 |
| Code Review | 自動審查每個 PR | 在人工審查之前捕捉錯誤 |
| Slack | 回應您的頻道中的 @Claude 提及 | 將錯誤報告轉換為團隊聊天中的拉取請求 |
當您遠離終端時工作
Claude Code offers several ways to work when you’re not at your terminal. They differ in what triggers the work, where Claude runs, and how much you need to set up.| Trigger | Claude runs on | Setup | Best for | |
|---|---|---|---|---|
| Dispatch | Message a task from the Claude mobile app | Your machine (Desktop) | Pair the mobile app with Desktop | Delegating work while you’re away, minimal setup |
| Remote Control | Drive a running session from claude.ai/code or the Claude mobile app | Your machine (CLI or VS Code) | Run claude remote-control | Steering in-progress work from another device |
| Channels | Push events from a chat app like Telegram or Discord, or your own server | Your machine (CLI) | Install a channel plugin or build your own | Reacting to external events like CI failures or chat messages |
| Slack | Mention @Claude in a team channel | Anthropic cloud | Install the Slack app with Claude Code on the web enabled | PRs and reviews from team chat |
| Scheduled tasks | Set a schedule | CLI, Desktop, or cloud | Pick a frequency | Recurring automation like daily reviews |
相關資源
平台
- CLI 快速入門:在終端中安裝並執行您的第一個命令
- Desktop:視覺 diff 審查、並行會話、電腦使用和 Dispatch
- VS Code:編輯器內的 Claude Code 擴充功能
- JetBrains:IntelliJ、PyCharm 和其他 JetBrains IDE 的擴充功能
- Web 上的 Claude Code:在您斷開連接時繼續執行的雲端會話
整合
- Chrome:使用您已登入的會話自動化瀏覽器任務
- GitHub Actions:在您的 CI 管道中執行 Claude
- GitLab CI/CD:GitLab 的相同功能
- Code Review:每個拉取請求上的自動審查
- Slack:從團隊聊天發送任務,取回 PR
遠端存取
- Dispatch:從您的手機傳送任務,它可以生成 Desktop 會話
- Remote Control:從您的手機或瀏覽器驅動執行中的會話
- Channels:將來自聊天應用程式或您自己的伺服器的事件推送到會話中
- Scheduled tasks:按定期排程執行提示