Use Cursor's models with any harness

API for Cursor is an open source native MacOS app that leverages Cursor's Agent SDK to produce a standard OpenAI compatible API. Import Composer as a model into OpenCode, Codex, or your own harness with a single click.

91 - Star the repo
API for Cursor app: a running local API with Root, Chat, Responses, and Models endpoints, plus one-click agent setup for OpenCode, Codex, VS Code, Cline, Kilo Code, and pi.

Local first

The server runs on your Mac, so agent tools keep working against your real project files instead of a hosted sandbox.

OpenAI-compatible

Chat Completions, Responses, and Models endpoints are exposed at a standard local /v1 base URL.

One-click agent setup

Configure Composer for OpenCode, Codex, VS Code, Cline, Kilo Code, and pi from a single Agent Setup panel.

Works where agents already run

Set up in your favorite coding agents.

Start the local API, then wire Composer into the agents you already use. Each one keeps its own shell loop and your real project files — only the model route points at 127.0.0.1.

OpenCode

Composer models ready

Codex

Custom provider ready

VS Code

Model metadata ready

Cline

Provider profile ready

Kilo Code

Provider profile ready

pi

Custom models ready

OpenAI-compatible

A standard local /v1 surface.

Point any OpenAI-compatible client at the local base URL and the familiar endpoints are right there — Models, Chat Completions, and Responses.

OpenCode running with Composer 2.5 selected through API for Cursor

In your editor

OpenCode, building with Composer 2.5.

Composer 2.5 shows up as a normal model in OpenCode — “Build · Composer 2.5 Cursor API via Standard Agents” — while the agent keeps its local filesystem and shell tools. Same flow in Codex and any tool with a custom provider.

Download for macOS Free local app

Standard Agents

What is Standard Agents?

Standard Agents is an open standard for creating domain-specific agents that can be distributed, composed, and run across different harnesses. API for Cursor is one example: a local app that turns Cursor's Agent SDK into a standard model API.

Early Access Build with the standard.