← Public packages
@kentcdodds/cursor
Cursor API SDK for cloud agents, runs, artifacts, workers, models, repositories, and raw requests.
OtherTopics: cursor, cloud-agents, api, sdk, automation
- Version
- 2.1.1
- License
- MIT
- Published
- October 16, 2026
- Pinned commit
06a7c03- Rating
- No ratings yet
- Forks
- 0
- Adaptation effort
- —
README
Agent docs@kentcdodds/cursor
Intent
SDK for the Cursor Cloud Agents API. One compact
authenticated request helper against https://api.cursor.com, plus domain
helpers for agent lifecycle, runs, artifacts, workers, models, and repositories.
Plumbing is intentionally thin — there is no public Cursor OpenAPI scaffold.
What it does
- Launch and manage Cursor Cloud Agents (create, list, follow-up runs, archive)
- Download agent artifacts and read run streams
- Inspect self-hosted pool workers and fleet utilization
- Discover models and GitHub repositories accessible through Cursor
- Read billed token cost for a Cloud Agent (
./agent-usage) — dollars come from the APIcostfield, never from estimated token prices - Call unwrapped Cursor API paths via
./request(Enterprise Admin, Analytics, AI-Code-Tracking, Bugbot, etc.)
createAgent always enables ManagePullRequest so the cloud agent can push and open its own PR (do not open PRs via Kody as a substitute).
Prerequisites / setup
- Create an API key at cursor.com/dashboard → API Keys.
- Save the raw key (not an Authorization header) in Kody as user secret
cursorApiKey. This package sends it as Bearer; Cursor also accepts Basic. - Approve host
api.cursor.comand package access tocursorApiKeyif prompted. - Optional: user secret
githubPersonalAccessToken— only needed foragentsWithOpenGithubPrs. - Agents: see
AGENTS.mdfor import paths and smoke checks.
Done when
cursorApiKeyis saved; host and package secret access are approved- Read-only
apiKeyInfo(./me) returns key metadata - You can create an agent / run and list models when needed
Report this listing
Log in to report this listing.