在何處執行 Claude Code
根據您喜歡的工作方式和專案所在位置選擇平台。| 平台 | 最適合 | 您將獲得 |
|---|---|---|
| CLI | 終端工作流程、指令碼、遠端伺服器 | 完整功能集、Agent SDK、macOS 上的電腦使用(Pro 和 Max)、第三方提供商 |
| Desktop | 視覺審查、並行會話、託管設定 | Diff 檢視器、應用程式預覽、Pro 和 Max 上的電腦使用和 Dispatch |
| VS Code | 在 VS Code 內工作而無需切換到終端 | 內聯 diff、整合終端、檔案上下文 |
| JetBrains | 在 IntelliJ、PyCharm、WebStorm 或其他 JetBrains IDE 內工作 | Diff 檢視器、選擇共享、終端會話 |
| Web | 不需要太多操控的長時間執行任務,或應該在您離線時繼續進行的工作 | Anthropic 託管雲端、在您斷開連接後繼續 |
| Mobile | 在遠離電腦時啟動和監控任務 | iOS 和 Android 版 Claude 應用程式的雲端會話、用於本地會話的 Remote Control、Pro 和 Max 上的 Dispatch 到 Desktop |
連接您的工具
整合讓 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:在您斷開連接時繼續執行的雲端會話
- Mobile:用於在遠離電腦時啟動和監控任務的 iOS 和 Android 版 Claude 應用程式
整合
- Chrome:使用您已登入的會話自動化瀏覽器任務
- Computer use:讓 Claude 在 macOS 上開啟應用程式並控制您的螢幕
- GitHub Actions:在您的 CI 管道中執行 Claude
- GitLab CI/CD:GitLab 的相同功能
- Code Review:每個拉取請求上的自動審查
- Slack:從團隊聊天發送任務,取回 PR
遠端存取
- Dispatch:從您的手機傳送任務,它可以生成 Desktop 會話
- Remote Control:從您的手機或瀏覽器驅動執行中的會話
- Channels:將來自聊天應用程式或您自己的伺服器的事件推送到會話中
- Scheduled tasks:按定期排程執行提示