SpyBara
Go Premium

Documentation 2026-08-06 15:02 UTC to 2026-08-07 23:57 UTC

4 files changed +53 −51. View all changes and history on the product overview
2026
Sat 29 18:58 Thu 27 23:57 Mon 24 23:01 Sat 22 19:01 Fri 21 22:58 Thu 20 23:01 Wed 12 23:59 Tue 11 22:03 Fri 7 23:57 Tue 4 22:59 Sun 2 19:00
Details

8 8 

9定期任务在您选择的时间和频率自动启动新会话。使用它们进行定期工作,如日常代码审查、依赖项更新检查或从您的日历和收件箱中提取信息的早晨简报。9定期任务在您选择的时间和频率自动启动新会话。使用它们进行定期工作,如日常代码审查、依赖项更新检查或从您的日历和收件箱中提取信息的早晨简报。

10 10 

11Desktop 应用的 **Routines** 页面让您可以创建本地定期任务和远程 [routines](/zh-CN/routines)。本地任务在您的机器上运行,可直接访问您的文件和工具,但仅在应用打开且计算机处于唤醒状态时才会触发。远程 routine 在 Anthropic 管理的云基础设施上运行,即使您的计算机关闭也可以运行,还可以通过 API 调用或 GitHub 事件触发。本页面涵盖本地定期任务;有关远程 routine 及其触发选项,请参阅 [Routines](/zh-CN/routines)。11Desktop 应用的 **Routines** 页面让您可以创建本地定期任务和远程 [routines](/docs/zh-CN/routines)。本地任务在您的机器上运行,可直接访问您的文件和工具,但仅在应用打开且计算机处于唤醒状态时才会触发。远程 routine 在 Anthropic 管理的云基础设施上运行,即使您的计算机关闭也可以运行,还可以通过 API 调用或 GitHub 事件触发。本页面涵盖本地定期任务;有关远程 routine 及其触发选项,请参阅 [Routines](/docs/zh-CN/routines)。

12 12 

13<h2 id="compare-scheduling-options">13<h2 id="compare-scheduling-options">

14 比较调度选项14 比较调度选项


16 16 

17Claude Code offers three ways to schedule recurring or one-off work:17Claude Code offers three ways to schedule recurring or one-off work:

18 18 

19| | [Cloud](/en/routines) | [Desktop](/en/desktop-scheduled-tasks) | [`/loop`](/en/scheduled-tasks) |19| | [Cloud](/docs/en/routines) | [Desktop](/docs/en/desktop-scheduled-tasks) | [`/loop`](/docs/en/scheduled-tasks) |

20| :------------------------- | :----------------------------- | :------------------------------------- | :---------------------------------- |20| :------------------------- | :---------------------------------- | :------------------------------------- | :---------------------------------- |

21| Runs on | Anthropic cloud | Your machine | Your machine |21| Runs on | Cloud, Anthropic-managed by default | Your machine | Your machine |

22| Requires machine on | No | Yes | Yes |22| Requires machine on | No | Yes | Yes |

23| Requires open session | No | No | Yes |23| Requires open session | No | No | Yes |

24| Persistent across restarts | Yes | Yes | Restored on `--resume` if unexpired |24| Persistent across restarts | Yes | Yes | Restored on `--resume` if unexpired |

25| Access to local files | No (fresh clone) | Yes | Yes |25| Access to local files | No (fresh clone) | Yes | Yes |

26| MCP servers | Connectors configured per task | [Config files](/en/mcp) and connectors | Inherits from session |26| MCP servers | Connectors configured per task | [Config files](/docs/en/mcp) and connectors | Inherits from session |

27| Permission prompts | No (runs autonomously) | Configurable per task | Inherits from session |27| Permission prompts | No (runs autonomously) | Configurable per task | Inherits from session |

28| Customizable schedule | Via `/schedule` in the CLI | Yes | Yes |28| Customizable schedule | Via `/schedule` in the CLI | Yes | Yes |

29| Minimum interval | 1 hour | 1 minute | 1 minute |29| Minimum interval | 1 hour | 1 minute | 1 minute |


33</Tip>33</Tip>

34 34 

35<Note>35<Note>

36 默认情况下,定期任务针对您的工作目录的任何状态运行,包括未提交的更改。在创建任务时启用 worktree 切换,为每次运行提供其自己的隔离 Git worktree,与 [parallel sessions](/zh-CN/desktop#work-in-parallel-with-sessions) 的工作方式相同。36 默认情况下,定期任务针对您的工作目录的任何状态运行,包括未提交的更改。在创建任务时启用 worktree 切换,为每次运行提供其自己的隔离 Git worktree,与 [parallel sessions](/docs/zh-CN/desktop#work-in-parallel-with-sessions) 的工作方式相同。

37</Note>37</Note>

38 38 

39<h2 id="create-a-scheduled-task">39<h2 id="create-a-scheduled-task">


75 75 

76当任务触发时,您会收到桌面通知,新会话会在侧边栏的 **Scheduled** 部分下出现。打开它以查看 Claude 做了什么、审查更改或响应权限提示。会话的工作方式与任何其他会话相同:Claude 可以编辑文件、运行命令、创建提交和打开拉取请求。76当任务触发时,您会收到桌面通知,新会话会在侧边栏的 **Scheduled** 部分下出现。打开它以查看 Claude 做了什么、审查更改或响应权限提示。会话的工作方式与任何其他会话相同:Claude 可以编辑文件、运行命令、创建提交和打开拉取请求。

77 77 

78任务仅在 desktop 应用运行且计算机处于唤醒状态时运行。如果您的计算机在计划时间内进入睡眠状态,该运行将被跳过。要防止空闲睡眠,请在 Settings 中的 **Desktop app → General** 下启用 **Keep computer awake**。关闭笔记本电脑盖仍会使其进入睡眠状态。对于需要在计算机关闭时运行或应该通过 API 调用或 GitHub 事件触发的任务,请改为创建远程 [routine](/zh-CN/routines)。78任务仅在 desktop 应用运行且计算机处于唤醒状态时运行。如果您的计算机在计划时间内进入睡眠状态,该运行将被跳过。要防止空闲睡眠,请在 Settings 中的 **Desktop app → General** 下启用 **Keep computer awake**。关闭笔记本电脑盖仍会使其进入睡眠状态。对于需要在计算机关闭时运行或应该通过 API 调用或 GitHub 事件触发的任务,请改为创建远程 [routine](/docs/zh-CN/routines)。

79 79 

80<h2 id="missed-runs">80<h2 id="missed-runs">

81 错过的运行81 错过的运行


93 93 

94为了避免停滞,在创建任务后单击 **Run now**,查看权限提示,并为每个提示选择"always allow"。该任务的未来运行会自动批准相同的工具,无需提示。您可以从任务的详细信息页面查看和撤销这些批准。94为了避免停滞,在创建任务后单击 **Run now**,查看权限提示,并为每个提示选择"always allow"。该任务的未来运行会自动批准相同的工具,无需提示。您可以从任务的详细信息页面查看和撤销这些批准。

95 95 

96连接器工具[您的组织设置为 `ask`](/zh-CN/mcp#organization-controls-on-connector-tools)和标记为 [`requiresUserInteraction`](/zh-CN/mcp#require-approval-for-a-specific-tool) 的 MCP 工具在每次调用时都会提示,并且不提供"always allow"选项。调用这些工具的运行每次都会停滞。96连接器工具[您的组织设置为 `ask`](/docs/zh-CN/mcp#organization-controls-on-connector-tools)和标记为 [`requiresUserInteraction`](/docs/zh-CN/mcp#require-approval-for-a-specific-tool) 的 MCP 工具在每次调用时都会提示,并且不提供"always allow"选项。调用这些工具的运行每次都会停滞。

97 97 

98<h2 id="manage-scheduled-tasks">98<h2 id="manage-scheduled-tasks">

99 管理定期任务99 管理定期任务


112 112 

113定期任务还可以使用 `update_scheduled_task` MCP 工具从运行中的会话内修改其自己的调度或提示。这让任务可以根据它发现的内容重新调度自己,例如,当它检测到发布分支已创建时,将代码审查重新调度为更早运行。113定期任务还可以使用 `update_scheduled_task` MCP 工具从运行中的会话内修改其自己的调度或提示。这让任务可以根据它发现的内容重新调度自己,例如,当它检测到发布分支已创建时,将代码审查重新调度为更早运行。

114 114 

115要在磁盘上编辑任务的提示,请打开 `~/.claude/scheduled-tasks/<task-name>/SKILL.md`(如果设置了 [`CLAUDE_CONFIG_DIR`](/zh-CN/env-vars),则在其下)。该文件使用 YAML frontmatter 表示 `name` 和 `description`,提示作为正文。更改在下一次运行时生效。Schedule、folder、model 和 enabled 状态不在此文件中:通过 Edit 表单更改它们或询问 Claude。115要在磁盘上编辑任务的提示,请打开 `~/.claude/scheduled-tasks/<task-name>/SKILL.md`(如果设置了 [`CLAUDE_CONFIG_DIR`](/docs/zh-CN/env-vars),则在其下)。该文件使用 YAML frontmatter 表示 `name` 和 `description`,提示作为正文。更改在下一次运行时生效。Schedule、folder、model 和 enabled 状态不在此文件中:通过 Edit 表单更改它们或询问 Claude。

116 116 

117<h2 id="related-resources">117<h2 id="related-resources">

118 相关资源118 相关资源

119</h2>119</h2>

120 120 

121* [Routines](/zh-CN/routines):在 Anthropic 管理的基础设施上按计划、通过 API 调用或响应 GitHub 事件运行任务,即使您的计算机关闭121* [Routines](/docs/zh-CN/routines):在 Anthropic 管理的基础设施上按计划、通过 API 调用或响应 GitHub 事件运行任务,即使您的计算机关闭

122* [Run prompts on a schedule](/zh-CN/scheduled-tasks):在 CLI 中使用 `/loop` 的会话范围调度122* [Run prompts on a schedule](/docs/zh-CN/scheduled-tasks):在 CLI 中使用 `/loop` 的会话范围调度

123* [Claude Code GitHub Actions](/zh-CN/github-actions):在 CI 中按计划运行 Claude,而不是在您的机器上123* [Claude Code GitHub Actions](/docs/zh-CN/github-actions):在 CI 中按计划运行 Claude,而不是在您的机器上

124* [Use Claude Code Desktop](/zh-CN/desktop):完整的 Desktop 应用指南124* [Use Claude Code Desktop](/docs/zh-CN/desktop):完整的 Desktop 应用指南

platforms.md +36 −35

Details

16 16 

17| 平台 | 最适合 | 您获得的功能 |17| 平台 | 最适合 | 您获得的功能 |

18| :----------------------------------- | :------------------------------------------------ | :-------------------------------------------------------------------------------------------------------------------------------------------------------- |18| :----------------------------------- | :------------------------------------------------ | :-------------------------------------------------------------------------------------------------------------------------------------------------------- |

19| [CLI](/zh-CN/quickstart) | 终端工作流、脚本编写、远程服务器 | 完整功能集、[Agent SDK](/zh-CN/headless)、[计算机使用](/zh-CN/computer-use)在 macOS 上(Pro 和 Max)、第三方提供商 |19| [CLI](/docs/zh-CN/quickstart) | 终端工作流、脚本编写、远程服务器 | 完整功能集、[Agent SDK](/docs/zh-CN/headless)、[计算机使用](/docs/zh-CN/computer-use)在 macOS 上(Pro 和 Max)、第三方提供商 |

20| [Desktop](/zh-CN/desktop) | 视觉审查、并行会话、托管设置 | Diff 查看器、应用预览、Pro 和 Max 上的[计算机使用](/zh-CN/desktop#let-claude-use-your-computer)和 [Dispatch](/zh-CN/desktop#sessions-from-dispatch) |20| [Desktop](/docs/zh-CN/desktop) | 视觉审查、并行会话、托管设置 | Diff 查看器、应用预览、Pro 和 Max 上的[计算机使用](/docs/zh-CN/desktop#let-claude-use-your-computer)和 [Dispatch](/docs/zh-CN/desktop#sessions-from-dispatch) |

21| [VS Code](/zh-CN/vs-code) | 在 VS Code 内工作而无需切换到终端 | 内联 diff、集成终端、文件上下文 |21| [VS Code](/docs/zh-CN/vs-code) | 在 VS Code 内工作而无需切换到终端 | 内联 diff、集成终端、文件上下文 |

22| [JetBrains](/zh-CN/jetbrains) | 在 IntelliJ、PyCharm、WebStorm 或其他 JetBrains IDE 内工作 | Diff 查看器、选择共享、终端会话 |22| [JetBrains](/docs/zh-CN/jetbrains) | 在 IntelliJ、PyCharm、WebStorm 或其他 JetBrains IDE 内工作 | Diff 查看器、选择共享、终端会话 |

23| [Web](/zh-CN/claude-code-on-the-web) | 不需要太多操作的长时间运行任务,或应该在您离线时继续的工作 | Anthropic 托管云、断开连接后继续运行 |23| [Web](/docs/zh-CN/claude-code-on-the-web) | 不需要太多操作的长时间运行任务,或应该在您离线时继续的工作 | Anthropic 托管云、断开连接后继续运行 |

24| Mobile | 在远离计算机时启动和监控任务 | 来自 iOS 和 Android 版 Claude 应用的云会话、用于本地会话的 [Remote Control](/zh-CN/remote-control)、Pro 和 Max 上的 [Dispatch](/zh-CN/desktop#sessions-from-dispatch) 到 Desktop |24| Mobile | 在远离计算机时启动和监控任务 | 来自 iOS 和 Android 版 Claude 应用的云会话、用于本地会话的 [Remote Control](/docs/zh-CN/remote-control)、Pro 和 Max 上的 [Dispatch](/docs/zh-CN/desktop#sessions-from-dispatch) 到 Desktop |

25 25 

26CLI 是终端原生工作的最完整界面:脚本编写和 Agent SDK 仅限 CLI。第三方提供商也可在 [VS Code](/zh-CN/vs-code#use-third-party-providers) 中使用。企业 [Desktop](/zh-CN/desktop) 部署支持 Google Cloud 的 Agent Platform,Desktop 支持[网关提供商](/zh-CN/llm-gateway-connect#desktop-app);对于 Amazon Bedrock 或 Microsoft Foundry,请使用 CLI 或 VS Code,或 [Claude Desktop on 3P](https://claude.com/docs/third-party/claude-desktop/overview),它在这些提供商上运行 Code 选项卡。Desktop 和 IDE 扩展为了视觉审查和更紧密的编辑器集成而放弃了一些仅限 CLI 的功能。Web 在 Anthropic 的云中运行,因此任务在您断开连接后继续进行。Mobile 是这些相同云会话的瘦客户端,或通过 Remote Control 进入本地会话,并可以使用 Dispatch 向 Desktop 发送任务。26CLI 是终端原生工作的最完整界面:脚本编写和 Agent SDK 仅限 CLI。第三方提供商也可在 [VS Code](/docs/zh-CN/vs-code#use-third-party-providers) 中使用。企业 [Desktop](/docs/zh-CN/desktop) 部署支持 Google Cloud 的 Agent Platform,Desktop 支持[网关提供商](/docs/zh-CN/llm-gateway-connect#desktop-app);对于 Amazon Bedrock 或 Microsoft Foundry,请使用 CLI 或 VS Code,或 [Claude Desktop on 3P](https://claude.com/docs/third-party/claude-desktop/overview),它在这些提供商上运行 Code 选项卡。Desktop 和 IDE 扩展为了视觉审查和更紧密的编辑器集成而放弃了一些仅限 CLI 的功能。Web 在 Anthropic 的云中运行,因此任务在您断开连接后继续进行。Mobile 是这些相同云会话的瘦客户端,或通过 Remote Control 进入本地会话,并可以使用 Dispatch 向 Desktop 发送任务。

27 27 

28您可以在同一项目上混合使用多个界面。配置、项目内存和 MCP 服务器在本地界面之间共享。28您可以在同一项目上混合使用多个界面。配置、项目内存和 MCP 服务器在本地界面之间共享。

29 29 


35 35 

36| 集成 | 功能 | 用途 |36| 集成 | 功能 | 用途 |

37| :-------------------------------------- | :----------------------------- | :--------------------------- |37| :-------------------------------------- | :----------------------------- | :--------------------------- |

38| [Chrome](/zh-CN/chrome) | 使用您登录的会话控制浏览器 | 测试 Web 应用、填充表单、自动化没有 API 的网站 |38| [Chrome](/docs/zh-CN/chrome) | 使用您登录的会话控制浏览器 | 测试 Web 应用、填充表单、自动化没有 API 的网站 |

39| [GitHub Actions](/zh-CN/github-actions) | 在 CI 管道中运行 Claude | 自动化 PR 审查、问题分类、计划维护 |39| [GitHub Actions](/docs/zh-CN/github-actions) | 在 CI 管道中运行 Claude | 自动化 PR 审查、问题分类、计划维护 |

40| [GitLab CI/CD](/zh-CN/gitlab-ci-cd) | 与 GitHub Actions 相同,但用于 GitLab | GitLab 上的 CI 驱动自动化 |40| [GitLab CI/CD](/docs/zh-CN/gitlab-ci-cd) | 与 GitHub Actions 相同,但用于 GitLab | GitLab 上的 CI 驱动自动化 |

41| [Code Review](/zh-CN/code-review) | 自动审查每个 PR | 在人工审查前捕获错误 |41| [Code Review](/docs/zh-CN/code-review) | 自动审查每个 PR | 在人工审查前捕获错误 |

42| [Slack](/zh-CN/slack) | 响应频道中的 `@Claude` 提及 | 将错误报告转换为团队聊天中的拉取请求 |42| [Slack](/docs/zh-CN/slack) | 响应频道中的 `@Claude` 提及 | 将错误报告转换为团队聊天中的拉取请求 |

43 43 

44对于此处未列出的集成,[MCP 服务器](/zh-CN/mcp)和[连接器](/zh-CN/desktop#connect-external-tools)让您连接几乎任何东西:Linear、Notion、Google Drive 或您自己的内部 API。44对于此处未列出的集成,[MCP 服务器](/docs/zh-CN/mcp)和[连接器](/docs/zh-CN/desktop#connect-external-tools)让您连接几乎任何东西:Linear、Notion、Google Drive 或您自己的内部 API。

45 45 

46<h2 id="work-when-you-are-away-from-your-terminal">46<h2 id="work-when-you-are-away-from-your-terminal">

47 远离终端时工作47 远离终端时工作


50Claude 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.50Claude 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.

51 51 

52| | Trigger | Claude runs on | Setup | Best for |52| | Trigger | Claude runs on | Setup | Best for |

53| :--------------------------------------------- | :--------------------------------------------------------------------------------------------- | :------------------------------------------------------------------------------------------- | :----------------------------------------------------------------------------------------------------------------------------------- | :------------------------------------------------------------ |53| :------------------------------------------------------- | :--------------------------------------------------------------------------------------------- | :------------------------------------------------------------------------------------------- | :----------------------------------------------------------------------------------------------------------------------------------- | :------------------------------------------------------------ |

54| [Dispatch](/en/desktop#sessions-from-dispatch) | Message a task from the Claude mobile app | Your machine (Desktop) | [Pair the mobile app with Desktop](https://support.claude.com/en/articles/13947068) | Delegating work while you're away, minimal setup |54| [Dispatch](/docs/en/desktop#sessions-from-dispatch) | Message a task from the Claude mobile app | Your machine (Desktop) | [Pair the mobile app with Desktop](https://support.claude.com/en/articles/13947068) | Delegating work while you're away, minimal setup |

55| [Remote Control](/en/remote-control) | Drive a running session from [claude.ai/code](https://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 |55| [Remote Control](/docs/en/remote-control) | Drive a running session from [claude.ai/code](https://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 |

56| [Channels](/en/channels) | Push events from a chat app like Telegram or Discord, or your own server | Your machine (CLI) | [Install a channel plugin](/en/channels#quickstart) or [build your own](/en/channels-reference) | Reacting to external events like CI failures or chat messages |56| [Channels](/docs/en/channels) | Push events from a chat app like Telegram or Discord, or your own server | Your machine (CLI) | [Install a channel plugin](/docs/en/channels#quickstart) or [build your own](/docs/en/channels-reference) | Reacting to external events like CI failures or chat messages |

57| [Slack](/en/slack) | Mention `@Claude` in a team channel | Anthropic cloud | [Install the Slack app](/en/slack#setting-up-claude-code-in-slack) with [Claude Code on the web](/en/claude-code-on-the-web) enabled | PRs and reviews from team chat |57| [Slack](/docs/en/slack) | Mention `@Claude` in a team channel | Anthropic cloud | [Install the Slack app](/docs/en/slack#setting-up-claude-code-in-slack) with [Claude Code on the web](/docs/en/claude-code-on-the-web) enabled | PRs and reviews from team chat |

58| [Scheduled tasks](/en/scheduled-tasks) | Set a schedule | [CLI](/en/scheduled-tasks), [Desktop](/en/desktop-scheduled-tasks), or [cloud](/en/routines) | Pick a frequency | Recurring automation like daily reviews |58| [Self-hosted environments](/docs/en/self-hosted-environments) | Start a [cloud session](/docs/en/claude-code-on-the-web) and pick your organization's environment | Your organization's infrastructure | [Deploy runners](/docs/en/self-hosted-environments-quickstart), on Team and Enterprise plans | Cloud sessions that must run inside your network |

59| [Scheduled tasks](/docs/en/scheduled-tasks) | Set a schedule | [CLI](/docs/en/scheduled-tasks), [Desktop](/docs/en/desktop-scheduled-tasks), or [cloud](/docs/en/routines) | Pick a frequency | Recurring automation like daily reviews |

59 60 

60如果您不确定从哪里开始,[安装 CLI](/zh-CN/quickstart) 并在项目目录中运行它。如果您不想使用终端,[Desktop](/zh-CN/desktop-quickstart) 为您提供相同的引擎和图形界面。61如果您不确定从哪里开始,[安装 CLI](/docs/zh-CN/quickstart) 并在项目目录中运行它。如果您不想使用终端,[Desktop](/docs/zh-CN/desktop-quickstart) 为您提供相同的引擎和图形界面。

61 62 

62<h2 id="related-resources">63<h2 id="related-resources">

63 相关资源64 相关资源


67 平台68 平台

68</h3>69</h3>

69 70 

70* [CLI 快速入门](/zh-CN/quickstart):在终端中安装并运行您的第一个命令71* [CLI 快速入门](/docs/zh-CN/quickstart):在终端中安装并运行您的第一个命令

71* [Desktop](/zh-CN/desktop):视觉 diff 审查、并行会话、计算机使用和 Dispatch72* [Desktop](/docs/zh-CN/desktop):视觉 diff 审查、并行会话、计算机使用和 Dispatch

72* [VS Code](/zh-CN/vs-code):编辑器内的 Claude Code 扩展73* [VS Code](/docs/zh-CN/vs-code):编辑器内的 Claude Code 扩展

73* [JetBrains](/zh-CN/jetbrains):IntelliJ、PyCharm 和其他 JetBrains IDE 的扩展74* [JetBrains](/docs/zh-CN/jetbrains):IntelliJ、PyCharm 和其他 JetBrains IDE 的扩展

74* [Web 上的 Claude Code](/zh-CN/claude-code-on-the-web):断开连接时继续运行的云会话75* [Web 上的 Claude Code](/docs/zh-CN/claude-code-on-the-web):断开连接时继续运行的云会话

75* Mobile:用于在远离计算机时启动和监控任务的 [iOS](https://apps.apple.com/us/app/claude-by-anthropic/id6473753684) 和 [Android](https://play.google.com/store/apps/details?id=com.anthropic.claude) 版 Claude 应用76* Mobile:用于在远离计算机时启动和监控任务的 [iOS](https://apps.apple.com/us/app/claude-by-anthropic/id6473753684) 和 [Android](https://play.google.com/store/apps/details?id=com.anthropic.claude) 版 Claude 应用

76 77 

77<h3 id="integrations">78<h3 id="integrations">

78 集成79 集成

79</h3>80</h3>

80 81 

81* [Chrome](/zh-CN/chrome):使用您登录的会话自动化浏览器任务82* [Chrome](/docs/zh-CN/chrome):使用您登录的会话自动化浏览器任务

82* [计算机使用](/zh-CN/computer-use):让 Claude 在 macOS 上打开应用和控制您的屏幕83* [计算机使用](/docs/zh-CN/computer-use):让 Claude 在 macOS 上打开应用和控制您的屏幕

83* [GitHub Actions](/zh-CN/github-actions):在 CI 管道中运行 Claude84* [GitHub Actions](/docs/zh-CN/github-actions):在 CI 管道中运行 Claude

84* [GitLab CI/CD](/zh-CN/gitlab-ci-cd):GitLab 的相同功能85* [GitLab CI/CD](/docs/zh-CN/gitlab-ci-cd):GitLab 的相同功能

85* [Code Review](/zh-CN/code-review):每个拉取请求上的自动审查86* [Code Review](/docs/zh-CN/code-review):每个拉取请求上的自动审查

86* [Slack](/zh-CN/slack):从团队聊天发送任务,获取 PR 返回87* [Slack](/docs/zh-CN/slack):从团队聊天发送任务,获取 PR 返回

87 88 

88<h3 id="remote-access">89<h3 id="remote-access">

89 远程访问90 远程访问

90</h3>91</h3>

91 92 

92* [Dispatch](/zh-CN/desktop#sessions-from-dispatch):从您的手机发送任务,它可以生成 Desktop 会话93* [Dispatch](/docs/zh-CN/desktop#sessions-from-dispatch):从您的手机发送任务,它可以生成 Desktop 会话

93* [Remote Control](/zh-CN/remote-control):从您的手机或浏览器驱动运行中的会话94* [Remote Control](/docs/zh-CN/remote-control):从您的手机或浏览器驱动运行中的会话

94* [Channels](/zh-CN/channels):将来自聊天应用或您自己的服务器的事件推送到会话中95* [Channels](/docs/zh-CN/channels):将来自聊天应用或您自己的服务器的事件推送到会话中

95* [Scheduled tasks](/zh-CN/scheduled-tasks):按定期计划运行提示96* [Scheduled tasks](/docs/zh-CN/scheduled-tasks):按定期计划运行提示

Details

386Claude 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.386Claude 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.

387 387 

388| | Trigger | Claude runs on | Setup | Best for |388| | Trigger | Claude runs on | Setup | Best for |

389| :--------------------------------------------- | :--------------------------------------------------------------------------------------------- | :------------------------------------------------------------------------------------------- | :----------------------------------------------------------------------------------------------------------------------------------- | :------------------------------------------------------------ |389| :------------------------------------------------------- | :--------------------------------------------------------------------------------------------- | :------------------------------------------------------------------------------------------- | :----------------------------------------------------------------------------------------------------------------------------------- | :------------------------------------------------------------ |

390| [Dispatch](/docs/en/desktop#sessions-from-dispatch) | Message a task from the Claude mobile app | Your machine (Desktop) | [Pair the mobile app with Desktop](https://support.claude.com/en/articles/13947068) | Delegating work while you're away, minimal setup |390| [Dispatch](/docs/en/desktop#sessions-from-dispatch) | Message a task from the Claude mobile app | Your machine (Desktop) | [Pair the mobile app with Desktop](https://support.claude.com/en/articles/13947068) | Delegating work while you're away, minimal setup |

391| [Remote Control](/docs/en/remote-control) | Drive a running session from [claude.ai/code](https://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 |391| [Remote Control](/docs/en/remote-control) | Drive a running session from [claude.ai/code](https://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 |

392| [Channels](/docs/en/channels) | Push events from a chat app like Telegram or Discord, or your own server | Your machine (CLI) | [Install a channel plugin](/docs/en/channels#quickstart) or [build your own](/docs/en/channels-reference) | Reacting to external events like CI failures or chat messages |392| [Channels](/docs/en/channels) | Push events from a chat app like Telegram or Discord, or your own server | Your machine (CLI) | [Install a channel plugin](/docs/en/channels#quickstart) or [build your own](/docs/en/channels-reference) | Reacting to external events like CI failures or chat messages |

393| [Slack](/docs/en/slack) | Mention `@Claude` in a team channel | Anthropic cloud | [Install the Slack app](/docs/en/slack#setting-up-claude-code-in-slack) with [Claude Code on the web](/docs/en/claude-code-on-the-web) enabled | PRs and reviews from team chat |393| [Slack](/docs/en/slack) | Mention `@Claude` in a team channel | Anthropic cloud | [Install the Slack app](/docs/en/slack#setting-up-claude-code-in-slack) with [Claude Code on the web](/docs/en/claude-code-on-the-web) enabled | PRs and reviews from team chat |

394| [Self-hosted environments](/docs/en/self-hosted-environments) | Start a [cloud session](/docs/en/claude-code-on-the-web) and pick your organization's environment | Your organization's infrastructure | [Deploy runners](/docs/en/self-hosted-environments-quickstart), on Team and Enterprise plans | Cloud sessions that must run inside your network |

394| [Scheduled tasks](/docs/en/scheduled-tasks) | Set a schedule | [CLI](/docs/en/scheduled-tasks), [Desktop](/docs/en/desktop-scheduled-tasks), or [cloud](/docs/en/routines) | Pick a frequency | Recurring automation like daily reviews |395| [Scheduled tasks](/docs/en/scheduled-tasks) | Set a schedule | [CLI](/docs/en/scheduled-tasks), [Desktop](/docs/en/desktop-scheduled-tasks), or [cloud](/docs/en/routines) | Pick a frequency | Recurring automation like daily reviews |

395 396 

396<h2 id="related-resources">397<h2 id="related-resources">

Details

17Claude Code offers three ways to schedule recurring or one-off work:17Claude Code offers three ways to schedule recurring or one-off work:

18 18 

19| | [Cloud](/docs/en/routines) | [Desktop](/docs/en/desktop-scheduled-tasks) | [`/loop`](/docs/en/scheduled-tasks) |19| | [Cloud](/docs/en/routines) | [Desktop](/docs/en/desktop-scheduled-tasks) | [`/loop`](/docs/en/scheduled-tasks) |

20| :------------------------- | :----------------------------- | :------------------------------------- | :---------------------------------- |20| :------------------------- | :---------------------------------- | :------------------------------------- | :---------------------------------- |

21| Runs on | Anthropic cloud | Your machine | Your machine |21| Runs on | Cloud, Anthropic-managed by default | Your machine | Your machine |

22| Requires machine on | No | Yes | Yes |22| Requires machine on | No | Yes | Yes |

23| Requires open session | No | No | Yes |23| Requires open session | No | No | Yes |

24| Persistent across restarts | Yes | Yes | Restored on `--resume` if unexpired |24| Persistent across restarts | Yes | Yes | Restored on `--resume` if unexpired |