# Cursor Sdk

> Entry point for the Cursor TypeScript SDK — install, auth, and the Agent.create / Agent.resume / Agent.prompt lifecycle. Use when starting any Cursor SDK integration or wiring durable agent IDs.

- **Type:** Skill
- **Install:** `agentstack add skill-hktitan-cursor-sdk-cursor-sdk`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [HKTITAN](https://agentstack.voostack.com/s/hktitan)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [HKTITAN](https://github.com/HKTITAN)
- **Source:** https://github.com/HKTITAN/cursor-sdk/tree/main/skills/cursor-sdk
- **Website:** https://skills.sh/hktitan/cursor-sdk

## Install

```sh
agentstack add skill-hktitan-cursor-sdk-cursor-sdk
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# cursor-sdk

Map of Content for the Cursor TypeScript SDK. Start here, then follow `[[wikilinks]]` to the atomic concept you need. Sibling skills (`cursor-runs`, `cursor-cloud`, `cursor-mcp`, `cursor-subagents`, `cursor-models`, `cursor-hooks`, `cursor-errors`) are part of the same graph — link across with `[[../cursor-runs/references/stream]]`.

## When to use

- Bootstrapping any program that imports `@cursor/sdk`
- Choosing between local execution, cloud execution, or pool/machine envs
- Standing up durable agent IDs that survive process restarts
- Resuming an existing agent rather than creating a new one

## Install & auth

- [[references/install]] — `npm install @cursor/sdk`, Node 20+, `CURSOR_API_KEY`
- [[references/authentication]] — env var, explicit `apiKey`, service account keys, Team Admin caveat
- [[references/account]] — `Cursor.me()`, `Cursor.repositories.list()`

## Lifecycle

- [[references/agent-create]] — `Agent.create(options)` full option surface
- [[references/agent-resume]] — `Agent.resume(agentId, partialOptions)` and what is *not* persisted
- [[references/agent-prompt]] — `Agent.prompt(message, options)` one-shot helper
- [[references/agent-management]] — `Agent.list`, `Agent.get`, `Agent.archive`, `Agent.unarchive`, `Agent.delete`
- [[references/disposal]] — `await using`, `Symbol.asyncDispose`, `agent.close()`

## Local vs cloud

- [[references/local-options]] — `local.cwd`, `settingSources`, `sandboxOptions`
- [[../cursor-cloud/SKILL]] — cloud runtime, repos, PR auto, artifacts

## Where to go next

- Streaming and run control → [[../cursor-runs/SKILL]]
- Adding tools via MCP → [[../cursor-mcp/SKILL]]
- Picking and tuning models → [[../cursor-models/SKILL]]
- Delegated subagents → [[../cursor-subagents/SKILL]]
- Hook-based governance → [[../cursor-hooks/SKILL]]
- Project rules and AGENTS.md → [[../cursor-rules/SKILL]]
- Project skill packs → [[../cursor-skills-system/SKILL]]
- Shell / CI alternative → [[../cursor-cli/SKILL]]
- Error handling and retries → [[../cursor-errors/SKILL]]

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [HKTITAN](https://github.com/HKTITAN)
- **Source:** [HKTITAN/cursor-sdk](https://github.com/HKTITAN/cursor-sdk)
- **License:** MIT
- **Homepage:** https://skills.sh/hktitan/cursor-sdk

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-hktitan-cursor-sdk-cursor-sdk
- Seller: https://agentstack.voostack.com/s/hktitan
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
