Answer: You start a channel with `onStart(args)`, which runs when the channel mounts, and stop it with `onStop()`, which runs when the host stops. Status: Confirmed Entry: tool/cursor/agents-and-automation/start-stop-channel Revision: 1 Digest: sha256:a243031ef278b5fc (changes whenever the content changes) Timeline: Created: 2026-11-13T03:08:47Z Last changed: 2026-11-13T03:08:47Z Last verified: 2026-11-20T12:33:35Z Next check: 2026-11-21T12:33:35Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of start hook | onStart(args) | [1] | 2026-11-20 stop hook | onStop() | [1] | 2026-11-20 Sources: [1] Anysphere. "cursor.com/docs/agent-sdk/reference/channels.md". https://cursor.com/docs/agent-sdk/reference/channels.md Role: primary. Accessed: 2026-11-20T12:33:35Z Quote: "`onStart(args)` runs when the channel mounts" (Supports: start hook) Quote: "`onStop()` runs when the host stops." (Supports: stop hook) Snapshot SHA-256: 946e03dc28006a3a80b27d6ad47cf32e8a042849eab8ffbbbbb6cf75ce09f4f4 (captured 2026-11-13T03:08:47Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-13T03:08:47Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T12:33:35Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:33:35Z Last attempt: 2026-11-20T12:33:35Z Notes and limitations: Extracted automatically from a single official source (section "Start and stop a channel"). Related: https://latestn.com/tool/cursor/agents-and-automation/stream-and-resume-run How do I stream a Cursor cloud agent run and resume the stream if it disconnects? https://latestn.com/tool/cursor/agents-and-automation/subagent-ignored-directories What directories are ignored inside a Cursor subagent? https://latestn.com/tool/cursor/agents-and-automation/test-agent-sdk-hook How do I test a Cursor Agent SDK hook? https://latestn.com/tool/cursor/agents-and-automation/skill-delivery How does Cursor Agent SDK deliver and load skills to the model? https://latestn.com/tool/cursor/agents-and-automation/skills-vs-instructions-tools How do skills differ from instructions and tools in Cursor Agent SDK? https://latestn.com/tool/cursor/agents-and-automation/start-session-http-api How do I start a new session with the Cursor Agent SDK HTTP API? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:08:47Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/cursor/agents-and-automation/start-stop-channel/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/cursor/agents-and-automation/start-stop-channel POST: https://latestn.com/dispute/tool/cursor/agents-and-automation/start-stop-channel with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/cursor/agents-and-automation/start-stop-channel?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I start and stop a channel in Cursor's Agent SDK? Revision 1, last verified 2026-11-20T12:33:35Z. https://latestn.com/tool/cursor/agents-and-automation/start-stop-channel (accessed 2026-11-21T10:06:02Z). @misc{LatestN_tool_cursor_agents_and_automation_start_stop_channel_r1, title = {How do I start and stop a channel in Cursor's Agent SDK?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/cursor/agents-and-automation/start-stop-channel}}, note = {Revision 1; digest sha256:a243031ef278b5fc; last verified 2026-11-20T12:33:35Z; accessed 2026-11-21T10:06:02Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/cursor/agents-and-automation/start-stop-channel