Anysphere Agents API

The Agents API from Anysphere — 11 operation(s) for agents.

GitHub OpenAPI

Operations 14

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

POST /v1/agents Create a Cloud Agent and run it · Create an agent #
Ask an LLM
“How do I create a Cloud Agent that starts by running a prompt?”
“Can I give a new agent a name and environment variables when I create it?”
Tell an agent
Create a Cloud Agent named {name} that runs {prompt}.
Create agent {agentId} running {prompt} on repos {repos}.
GET /v1/agents List my Cloud Agents · List agents #
Ask an LLM
“Which Cloud Agents have I created?”
“Can I list only the agents working on a particular pull request?”
Tell an agent
List my Cloud Agents.
List agents for pull request {prUrl}.
GET /v1/agents/{id} Get a Cloud Agent's metadata · Get an agent #
Ask an LLM
“What are the durable settings of one of my Cloud Agents?”
“Can I look up an agent's metadata without its runs?”
Tell an agent
Get Cloud Agent {id}.
Show the metadata for agent {id}.
DELETE /v1/agents/{id} Permanently delete a Cloud Agent · Delete an agent permanently #
Ask an LLM
“How do I permanently delete a Cloud Agent?”
“Is deleting an agent reversible?”
Tell an agent destructive · confirm first
Permanently delete Cloud Agent {id}.
Remove agent {id} for good.
POST /v1/agents/{id}/runs Send a follow-up prompt to a Cloud Agent · Create a run #
Ask an LLM
“How do I ask a Cloud Agent to keep working on a pull request?”
“Can I send a follow-up prompt to an agent that is already running?”
Tell an agent
Send {prompt} as a follow-up to Cloud Agent {id}.
Ask agent {id} to keep working on {prompt}.
GET /v1/agents/{id}/runs List the runs of a Cloud Agent · List runs #
Ask an LLM
“What runs has a Cloud Agent completed?”
“Can I page through an agent's run history?”
Tell an agent
List the runs of Cloud Agent {id}.
Show the last {limit} runs of agent {id}.
GET /v1/agents/{id}/runs/{runId} Get a Cloud Agent run's status · Get a run #
Ask an LLM
“Has a particular run on my Cloud Agent finished?”
“What status and timestamps does one agent run have?”
Tell an agent
Get run {runId} of Cloud Agent {id}.
Show the status of agent {id} run {runId}.
GET /v1/agents/{id}/runs/{runId}/stream Stream events from a Cloud Agent run · Stream a run #
Ask an LLM
“Can I stream the events of a Cloud Agent run in real time?”
“What event types does the agent run stream include?”
Tell an agent
Stream events for run {runId} of Cloud Agent {id}.
Resume streaming agent {id} run {runId} from event {lastEventId}.
POST /v1/agents/{id}/runs/{runId}/cancel Cancel a Cloud Agent's active run · Cancel a run #
Ask an LLM
“How do I stop a Cloud Agent that is still running?”
“Can I cancel an agent run that is already finished?”
Tell an agent destructive · confirm first
Cancel run {runId} of Cloud Agent {id}.
Stop agent {id} from running {runId}.
GET /v1/agents/{id}/usage Get token usage for a Cloud Agent · Get agent usage #
Ask an LLM
“How many tokens has a Cloud Agent used?”
“Can I see token usage for just one run of an agent?”
Tell an agent
Get token usage for Cloud Agent {id}.
Show usage for run {runId} of agent {id}.
POST /v1/agents/{id}/archive Archive a Cloud Agent · Archive an agent #
Ask an LLM
“How do I archive a Cloud Agent so it stops accepting new runs?”
“Can an archived agent still be read?”
Tell an agent
Archive Cloud Agent {id}.
Put agent {id} into archive.
POST /v1/agents/{id}/unarchive Unarchive a Cloud Agent · Unarchive an agent #
Ask an LLM
“How do I bring an archived Cloud Agent back to life?”
“Can an archived agent accept new runs again?”
Tell an agent
Unarchive Cloud Agent {id}.
Restore agent {id} so it can accept new runs.
GET /v1/agents/{id}/artifacts List artifacts produced by a Cloud Agent · List artifacts #
Ask an LLM
“What artifacts has a Cloud Agent produced?”
“Where are an agent's artifacts stored?”
Tell an agent
List artifacts from Cloud Agent {id}.
Show the artifacts produced by agent {id}.
GET /v1/agents/{id}/artifacts/download Download an artifact from a Cloud Agent · Download an artifact #
Ask an LLM
“How do I download an artifact a Cloud Agent produced?”
“How long is a download URL for an agent artifact valid?”
Tell an agent
Download artifact {path} from Cloud Agent {id}.
Get a presigned URL for agent {id} artifact {path}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/anysphere:anysphere-agents-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

anysphere-agents-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Cursor Cloud Agents API
  description: 'Programmatically create and manage Cursor Cloud Agents that work

    autonomously on your repositories. v1 separates a durable agent

    from one or more runs: each prompt submission creates a run on the

    agent. Streaming and cancellation are scoped to the active run.'
  version: 1.0.0
  contact:
    email: background-agent-feedback@cursor.com
servers:
- url: https://api.cursor.com
  description: Production server
security:
- basicAuth: []
- bearerAuth: []
tags:


# --- truncated at 32 KB (44 KB total) ---
# Full source: https://artifacts.apis.io/anysphere/openapi/anysphere-agents-api-openapi.yml