Cursor SDK Enters Public Beta: Agents Can Now Be Triggered Programmatically

On April 16, Cursor launched the Cursor SDK into public beta—a TypeScript interface that allows agents to be triggered programmatically from your own code. It features the same framework and models as the IDE, but without the dependency on the editor. Installation is a single command: npm install @cursor/sdk.
This is more than just a model API. The SDK provides the agent with the full Cursor infrastructure: codebase indexing, semantic search, connectivity to external tools via MCP servers, automatic skill ingestion from the .cursor/skills/ folder, hooks for controlling the agentic loop, and support for sub-agents—allowing a primary agent to delegate sub-tasks to other agents with their own specific prompts and models.
Current Use Cases
Cursor highlights three primary scenarios. First, running agents directly from CI/CD: summarizing changes, investigating build failures, and automatically updating pull requests with fixes. Second, internal platforms: for example, enabling business teams to query product data without needing SQL or coding knowledge. Third, embedding agents into your own product so end users can access agentic capabilities without leaving your application.
Agents can be run locally on your machine or in the Cursor cloud on a dedicated virtual machine with its own sandbox and pre-configured environment. Configuration is defined via .cursor/mcp.json or directly in code via the SDK.
Why This Matters Now
This release follows a broader trend: coding agents are evolving from interactive IDE tools into programmable infrastructure. Anthropic previously launched the Claude Code SDK with a similar vision, OpenAI released the Codex CLI with a programmatic API, and Devin also offers programmatic access. Cursor is responding by opening up not just the model, but its entire stack—indexing, MCP, skills, hooks, and sub-agent orchestration.
For the company, this is a move to become an infrastructure layer rather than just an editor. If the SDK gains traction, Cursor will generate revenue from tokens not only through developers in the IDE but also from automated systems running 24/7 in third-party products. This shifts their business model from a developer tool to a platform for building agentic systems.
Key Considerations
The SDK is currently in public beta, and there are several factors to consider during implementation. First, security: an agent triggered programmatically has the same permissions as an agent in the IDE. If your code grants the agent access to a production database or an API with delete permissions, you must explicitly restrict the scope using permission profiles and hooks.
Second, context management: the Cursor SDK inherits the architecture of the desktop application, where the agent operates on an indexed codebase. If you run an agent in the cloud on code it is seeing for the first time, indexing will take time. For repetitive CI/CD tasks, it makes sense to cache the index between runs.
Third, costs: the Cursor SDK uses the same pricing model as the desktop application, but it is easy to lose track of call volume when running programmatically. One agent per commit in CI/CD can quickly scale to hundreds of agents per day. We recommend starting with a limited number of triggers and monitoring costs during the early stages.
What This Means for Developers
The arrival of the Cursor SDK signals that agents are no longer just interactive assistants but are becoming infrastructure components. You can now build systems where the agent is not the final interaction point, but an intermediate layer between the user and the code.
For example, technical support teams can trigger an agent to diagnose customer issues directly from a ticket without developer intervention. A product team can embed an agent into a dashboard so business analysts can generate reports using natural language. A DevOps team can delegate routine tasks like dependency updates or configuration migrations to an agent.
While the Cursor SDK is not the first tool of its kind on the market, it is the first to provide the full suite of a commercial product as a programmable library. This lowers the barrier to entry for teams that want to integrate agents into their workflows but are not prepared to build the entire infrastructure from scratch.
The SDK is available via npm, and documentation is published on the Cursor website. If your team already uses Cursor, try the SDK on a limited scenario in a staging environment. If not, this is a great opportunity to see how agents can work not just in the IDE, but within your own automated systems.
Want to try agents for your own tasks? GEMERA AI provides access to the same models used in the Cursor SDK—GPT-5, Claude Opus, Gemini—via a Telegram bot and web interface. Chat, image generation, voice synthesis, and music in one place.