cursor
Cursor Cloud Agents API for launching and managing background coding agents. Use when the user mentions "Cursor", "Cursor agents", "Cursor background agents", "cloud agents", "cursor.com", or wants to start, monitor, follow up on, or cancel an autonomous coding agent on a GitHub repository.
What this skill does
# Cursor
Cursor Cloud Agents (formerly Background Agents) run autonomous coding tasks on
your GitHub repositories in the cloud. The REST API lets you launch an agent with
a prompt, stream or poll its runs, send follow-up instructions, inspect
artifacts, and manage the agent lifecycle.
> Official docs: `https://cursor.com/docs/background-agent/api/overview`
---
## When to Use
Use this skill when you need to:
- Launch a Cursor agent to work on a GitHub repository from a natural-language prompt
- List your agents and check their status
- Send a follow-up prompt to an active agent
- Poll or stream the runs an agent produces
- List the models and repositories available to your account
- Archive, unarchive, or permanently delete an agent
---
## Prerequisites
Connect the **Cursor** connector at [app.vm0.ai/connectors](https://app.vm0.ai/connectors).
The API key is created from the [Cursor Dashboard → API Keys](https://cursor.com/dashboard/api).
> **Troubleshooting:** If requests fail, run `zero doctor check-connector --env-name CURSOR_TOKEN` or `zero doctor check-connector --url https://api.cursor.com/v1/me --method GET`
---
## How to Use
All requests go to `https://api.cursor.com` and authenticate with a Bearer token:
`Authorization: Bearer $CURSOR_TOKEN`.
### 1. Check the API Key
Confirm the connector works and see which account the key belongs to:
```bash
curl -s "https://api.cursor.com/v1/me" --header "Authorization: Bearer $CURSOR_TOKEN" | jq
```
### 2. List Available Models
Model IDs change as new models launch — confirm an exact ID before launching an agent:
```bash
curl -s "https://api.cursor.com/v1/models" --header "Authorization: Bearer $CURSOR_TOKEN" | jq
```
### 3. List Accessible Repositories
```bash
curl -s "https://api.cursor.com/v1/repositories" --header "Authorization: Bearer $CURSOR_TOKEN" | jq
```
### 4. Launch an Agent
Write the request body to `/tmp/cursor_agent.json`:
```json
{
"prompt": {
"text": "Add input validation to the signup form and write tests."
},
"source": {
"repository": "https://github.com/your-org/your-repo",
"ref": "main"
}
}
```
Then create the agent (this enqueues the initial run):
```bash
curl -s -X POST "https://api.cursor.com/v1/agents" --header "Content-Type: application/json" --header "Authorization: Bearer $CURSOR_TOKEN" -d @/tmp/cursor_agent.json | jq
```
The response includes the agent `id` — use it in the calls below.
### 5. List Agents
```bash
curl -s "https://api.cursor.com/v1/agents" --header "Authorization: Bearer $CURSOR_TOKEN" | jq
```
### 6. Get Agent Status
Replace `<agent-id>` with the `id` from step 4:
```bash
curl -s "https://api.cursor.com/v1/agents/<agent-id>" --header "Authorization: Bearer $CURSOR_TOKEN" | jq
```
### 7. List and Inspect Runs
List the runs for an agent:
```bash
curl -s "https://api.cursor.com/v1/agents/<agent-id>/runs" --header "Authorization: Bearer $CURSOR_TOKEN" | jq
```
Get a single run's status and results. Replace `<run-id>`:
```bash
curl -s "https://api.cursor.com/v1/agents/<agent-id>/runs/<run-id>" --header "Authorization: Bearer $CURSOR_TOKEN" | jq
```
### 8. Send a Follow-up Prompt
Active agents accept follow-up prompts as new runs. Write to `/tmp/cursor_followup.json`:
```json
{
"prompt": {
"text": "Also update the README to document the new validation rules."
}
}
```
Then submit it:
```bash
curl -s -X POST "https://api.cursor.com/v1/agents/<agent-id>/runs" --header "Content-Type: application/json" --header "Authorization: Bearer $CURSOR_TOKEN" -d @/tmp/cursor_followup.json | jq
```
### 9. Cancel an Active Run
```bash
curl -s -X POST "https://api.cursor.com/v1/agents/<agent-id>/runs/<run-id>/cancel" --header "Authorization: Bearer $CURSOR_TOKEN" | jq
```
### 10. List Artifacts
```bash
curl -s "https://api.cursor.com/v1/agents/<agent-id>/artifacts" --header "Authorization: Bearer $CURSOR_TOKEN" | jq
```
### 11. Manage the Agent Lifecycle
Archive, unarchive, or permanently delete an agent:
```bash
curl -s -X POST "https://api.cursor.com/v1/agents/<agent-id>/archive" --header "Authorization: Bearer $CURSOR_TOKEN" | jq
curl -s -X POST "https://api.cursor.com/v1/agents/<agent-id>/unarchive" --header "Authorization: Bearer $CURSOR_TOKEN" | jq
curl -s -X DELETE "https://api.cursor.com/v1/agents/<agent-id>" --header "Authorization: Bearer $CURSOR_TOKEN" | jq
```
---
## Guidelines
1. **Bearer auth**: every request needs `Authorization: Bearer $CURSOR_TOKEN`; the same key also works as Basic auth (`-u $CURSOR_TOKEN:`) but prefer Bearer here
2. **Agent then runs**: creating an agent (`POST /v1/agents`) enqueues the first run automatically; subsequent instructions are added as new runs under that agent
3. **Confirm IDs first**: call the models (example 2) and repositories (example 3) endpoints to confirm valid values before launching an agent
4. **Async work**: agents run asynchronously — poll `GET /v1/agents/{id}/runs/{runId}` until the run reports a terminal status before reading results
5. **Artifact URLs expire**: presigned download URLs from the artifacts endpoint are short-lived (about 15 minutes) — fetch them just before downloading
6. **401 Unauthorized**: the key is missing or invalid — reconnect the Cursor connector at app.vm0.ai/connectors
Related in Backend & APIs
jfrog
IncludedInteract with the JFrog Platform via the JFrog CLI and REST/GraphQL APIs. Use this skill when the user wants to manage Artifactory repositories, upload or download artifacts, manage builds, configure permissions, manage users and groups, work with access tokens, configure JFrog CLI servers, search artifacts, manage properties, set up replication, manage JFrog Projects, run security audits or scans, look up CVE details, query exposures scan results from JFrog Advanced Security, manage release bundles and lifecycle operations, aggregate or export platform data, or perform any JFrog Platform administration task. Also use when the user mentions jf, jfrog, artifactory, xray, distribution, evidence, apptrust, onemodel, graphql, workers, mission control, curation, advanced security, exposures, or any JFrog product name.
cupynumeric-migration-readiness
IncludedPre-migration readiness assessor for porting NumPy to cuPyNumeric. Use BEFORE substantial porting work begins when the user asks whether code will scale on GPU, whether they should migrate to cuPyNumeric, which NumPy patterns transfer cleanly, what must be refactored before porting, or mentions pre-port assessment, scaling analysis, or refactor planning. Inspect the user's source code, look up NumPy usage, cross-reference the cuPyNumeric API support manifest, and distinguish distributed-scaling-friendly patterns from blockers such as unsupported APIs, scalar synchronization, host round-trips, Python/object-heavy control flow, shape/data-dependent branching, and in-place mutation hazards. Produce a verdict of READY, LIGHT REFACTOR, SIGNIFICANT REFACTOR, or NOT RECOMMENDED, with concrete refactor pointers.
alibabacloud-data-agent-skill
IncludedInvoke Alibaba Cloud Apsara Data Agent for Analytics via CLI to perform natural language-driven data analysis on enterprise databases. Data Agent for Analytics is an intelligent data analysis agent developed by Alibaba Cloud Database team for enterprise users. It automatically completes requirement analysis, data understanding, analysis insights, and report generation based on natural language descriptions. This tool supports: discovering data resources (instances/databases/tables) managed in DMS, initiating query or deep analysis sessions, real-time progress tracking, and retrieving analysis conclusions and generated reports. Use this Skill when users need to query databases, analyze data trends, generate data reports, ask questions in natural language, or mention "Data Agent", "data analysis", "database query", "SQL analysis", "data insights".
token-optimizer
IncludedReduce OpenClaw token usage and API costs through smart model routing, heartbeat optimization, budget tracking, and native 2026.2.15 features (session pruning, bootstrap size limits, cache TTL alignment). Use when token costs are high, API rate limits are being hit, or hosting multiple agents at scale. The 4 executable scripts (context_optimizer, model_router, heartbeat_optimizer, token_tracker) are local-only — no network requests, no subprocess calls, no system modifications. Reference files (PROVIDERS.md, config-patches.json) document optional multi-provider strategies that require external API keys and network access if you choose to use them. See SECURITY.md for full breakdown.
resend-cli
IncludedUse this skill when the task is specifically about operating Resend from an AI agent, terminal session, or CI job via the official resend CLI: installing/authenticating the CLI, sending/listing/updating/cancelling emails, batch sends, domains and DNS, webhooks and local listeners, inbound receiving, contacts, topics, segments, broadcasts, templates, API keys, profiles, or debugging Resend CLI/API failures. Trigger on mentions of Resend CLI, `resend`, `resend doctor`, `resend emails send`, `resend domains`, `resend webhooks listen`, `resend emails receiving`, or agent-friendly terminal automation.
alibabacloud-odps-maxframe-coding
IncludedUse this skill for MaxFrame SDK development and documentation navigation on Alibaba Cloud MaxCompute (ODPS). Helps answer MaxFrame API, concept, official example, and supported pandas API questions; create data processing programs; read/write MaxCompute tables; debug jobs (remote or local); and build custom DPE runtime images. Trigger when users mention MaxFrame, MaxCompute with MaxFrame, ODPS table processing, DPE runtime, MaxFrame docs/examples, DataFrame/Tensor operations, or GPU runtime setup. Works for both English and Chinese queries about Alibaba Cloud data processing with MaxFrame.