Answer: Commit and push the ref you want to run, then run agent-sdk login, agent-sdk validate, and agent-sdk deploy from the project directory. The deploy command builds the pushed ref, so uncommitted changes don't ship. Status: Confirmed Entry: tool/cursor/agents-and-automation/deploy-agent-sdk-from-git Revision: 1 Digest: sha256:16e43a73906e1e0c (changes whenever the content changes) Timeline: Created: 2026-11-13T03:08:25Z Last changed: 2026-11-13T03:08:25Z Last verified: 2026-11-20T12:32:35Z Next check: 2026-11-21T12:32:35Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of deploy command | agent-sdk deploy | [1] | 2026-11-20 prerequisite | Commit and push the ref you want to run | [1] | 2026-11-20 uncommitted changes | uncommitted changes don't ship | [1] | 2026-11-20 example repo | https://github.com/acme/agents | [1] | 2026-11-20 example ref | main | [1] | 2026-11-20 example path | agents/weather | [1] | 2026-11-20 example slug | weather-agent | [1] | 2026-11-20 Sources: [1] Anysphere. "cursor.com/docs/agent-sdk/deployment.md". https://cursor.com/docs/agent-sdk/deployment.md Role: primary. Accessed: 2026-11-20T12:32:35Z Quote: "agent-sdk login agent-sdk validate agent-sdk deploy" (Supports: deploy command) Quote: "Commit and push the ref you want to run, then deploy it:" (Supports: prerequisite) Quote: "`deploy` builds the pushed ref, so uncommitted changes don't ship." (Supports: uncommitted changes) Quote: "--repo https://github.com/acme/agents" (Supports: example repo) Quote: "--ref main" (Supports: example ref) Quote: "--path agents/weather" (Supports: example path) Quote: "--slug weather-agent" (Supports: example slug) Snapshot SHA-256: 6449cddd4ec0b82f524c68cc6842b18bd19b9444433b57550bfab2074ef729b7 (captured 2026-11-13T03:08:25Z) 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:25Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T12:32:35Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:32:35Z Last attempt: 2026-11-20T12:32:35Z Notes and limitations: Extracted automatically from a single official source (section "Deploy from Git"). Related: https://latestn.com/tool/cursor/agents-and-automation/deploy-agents-managed-hosting How do I deploy agents with managed hosting in the Cursor Agent SDK CLI? https://latestn.com/tool/cursor/agents-and-automation/deploy-pr-reviewer How do I deploy the Cursor Agent SDK PR reviewer? https://latestn.com/tool/cursor/agents-and-automation/deploy-review-template How do I deploy a Cursor Agent SDK review template? https://latestn.com/tool/cursor/agents-and-automation/declare-structured-output How do I declare structured output for a Cursor Agent SDK tool? https://latestn.com/tool/cursor/agents-and-automation/define-custom-channel How do I define a custom channel in Cursor's Agent SDK? https://latestn.com/tool/cursor/agents-and-automation/define-server-tool How do I define a server tool in the Cursor Agent SDK? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:08:25Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/cursor/agents-and-automation/deploy-agent-sdk-from-git/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/deploy-agent-sdk-from-git POST: https://latestn.com/dispute/tool/cursor/agents-and-automation/deploy-agent-sdk-from-git with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/cursor/agents-and-automation/deploy-agent-sdk-from-git?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I deploy an Agent SDK project from Git with Cursor? Revision 1, last verified 2026-11-20T12:32:35Z. https://latestn.com/tool/cursor/agents-and-automation/deploy-agent-sdk-from-git (accessed 2026-11-21T09:58:13Z). @misc{LatestN_tool_cursor_agents_and_automation_deploy_agent_sdk_from_git_r1, title = {How do I deploy an Agent SDK project from Git with Cursor?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/cursor/agents-and-automation/deploy-agent-sdk-from-git}}, note = {Revision 1; digest sha256:16e43a73906e1e0c; last verified 2026-11-20T12:32:35Z; accessed 2026-11-21T09:58:13Z} } 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/deploy-agent-sdk-from-git