@kody/cursor
Cursor API SDK for cloud agents, runs, artifacts, workers, models, repositories, and raw requests.
- Other
- cursor
- cloud-agents
- api
- sdk
- automation
- Version
- 2.0.0
- License
- MIT
- Published
- September 10, 2026
- Pinned commit
0cf3e38- Rating
- ★ 5.0 (1)
- Forks
- 22
- Adaptation effort
- 1.0
README
Agent docs@kody/cursor
Official Cursor cube mark on black. Cursor® is a trademark of Anysphere, Inc. This package is not affiliated with or endorsed by Anysphere.
Share this listing as https://kody.codes/@kody/cursor
Intent
SDK for the Cursor Cloud Agents API. Transport is
one compact authenticated request helper against https://api.cursor.com
(Bearer cursorApiKey). Domain modules cover agent lifecycle, artifact
download shaping, run stream parsing, and GitHub PR enrichment. Use ./request
for any unwrapped path (Enterprise Admin, Analytics, AI-Code-Tracking, Bugbot,
etc.).
No public Cursor OpenAPI document was available for scaffolding; plumbing is intentionally thin rather than hand-rolled per endpoint.
This listing is meant to be forked. After you fork, save your cursorApiKey
and call the helpers in your account. No personal agent ids, repos, or API keys
are baked in.
What it does
- Launch or manage Cursor Cloud Agents (create, list, follow-up runs, artifacts)
- Inspect fleet/worker utilization for self-hosted pools
- Discover models and accessible GitHub repositories before creating agents
- Call unwrapped Cursor API endpoints via
cursorRequest
Prerequisites / setup
Cursor has no built-in Kody OAuth app. Auth is a saved Cloud Agents API key. Do not paste the key into chat.
- Create an API key at cursor.com/dashboard → API Keys
(key only, not an Authorization header). Cursor accepts Basic (
API_KEY:) or Bearer; this package uses Bearer. - Save it in Kody:
- In the account secrets UI, approve host
api.cursor.com. Saving the secret does not approve hosts by itself.
Optional, only for agentsWithOpenGithubPrs:
Agents: see AGENTS.md for 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
Docs
Report this listing
Log in to report this listing.