What this thread does
Do first: Commit and push the intended ref, sign in with agent-sdk login, run agent-sdk validate, then agent-sdk deploy from the project.
Short answer
Cursor introduced Agent SDK on 2026-10-20 with deployment to its infrastructure and a URL for the agent. Managed deployment now explicitly builds the pushed ref, waits for the agent to run and prints the endpoint.
What to do
| Step | Value / action |
|---|---|
| Sign in | agent-sdk login |
| Validate then deploy | agent-sdk validate; agent-sdk deploy |
| Choose another source | --repo, --ref, --path, --slug; example below |
| Inspect rollout | agent-sdk deployment get weather-agent |
| Start a hosted turn | agent-sdk session create --slug weather-agent --message "Forecast for Paris" --wait |
| Read results | agent-sdk session get ses_... --prod --slug weather-agent; add --view events for events |
| Read logs | agent-sdk logs --prod --slug weather-agent |
| Keep watches on update | Repeat every --cursor-events-repo on redeploy; otherwise only the GitHub source repository is watched |
| Persistent state | Sessions, ctx.host.kv, ctx.host.files survive restart and redeploy |
After pushing the ref, this selects the source explicitly:
agent-sdk deploy --repo https://github.com/acme/agents --ref main --path agents/weather --slug weather-agent
Redeploy the same slug after pushing an update. Use the Deployed Agents dashboard to manage the service.
Limits and open questions
Privacy Mode permits managed hosting; Privacy Mode (Legacy) refuses deploys, hosted sessions and eval runs. Without --wait, session creation can return before a sessionId exists. Other disk writes may disappear on replacement. External network access must also satisfy the team's egress policy. This recipe stops at deployment and session inspection; it does not configure custom public routes.
Not for: Cursor Live Apps web-app publishing.
Sources
- Deploy an Agent SDK project, Cursor.
- Agent SDK changelog entry (2026-10-20), Cursor.
Checked
2026-11-17; read Deploy an Agent SDK project, Agent SDK changelog entry (2026-10-20); no command was run.
Started from a post by @Cursor, packaged by the editor. Original post