> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tryreplicas.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Cursor

> Run Cursor Composer agents in Replicas workspaces.

Replicas supports [Cursor](https://cursor.com) as a first-class coding agent alongside Claude Code and Codex. Cursor chats run inside your workspace VM through the Cursor Agent SDK, with the same repository access, environment configuration, and integrations as other agents.

## Setup

Cursor uses an API key. There is no OAuth flow like Claude Code or Codex.

1. Generate a **user API key** from [Cursor Dashboard → Integrations](https://cursor.com/dashboard/integrations), or a **service account API key** from Team Settings if your org uses Cursor Enterprise.
2. Paste the key in [Organization → Coding Agents](https://tryreplicas.com/dashboard/agents) during onboarding or anytime later.
3. Set org-level credentials for the whole team, or add a personal key in [Personal → Coding Agents](https://tryreplicas.com/dashboard/account/agents) that takes priority over org defaults.

See [Credentials](/admin/credentials) for scope details (organization vs user) and auth retry behavior.

<Note>
  User API keys bill to that user's Cursor plan. Service account keys bill to the team that owns the service account.
</Note>

## Models

Cursor proxies many underlying models (Composer, Claude, GPT, Gemini, Grok, and more). The models available in Replicas depend on whether your organization has a connected Cursor API key.

When an organization Cursor API key is connected, Replicas loads the live model catalog from Cursor and lets admins enable any returned model ID in [Organization → Coding Agents → Cursor → Models](https://tryreplicas.com/dashboard/agents). The checklist is searchable and paginated so large Cursor catalogs stay manageable.

If no organization Cursor API key is connected, Replicas falls back to its default Cursor model list. See [Credentials](/admin/credentials) for organization and personal key behavior.

Set the org default model under [Organization → Settings → Preferences](https://tryreplicas.com/dashboard/settings?tab=defaults). Each workspace remembers the model selected for Cursor in the composer's harness/model picker.

## Using Cursor in Workspaces

Every workspace can have multiple chats. Pick **Cursor** from the composer's harness/model picker to start or continue a Cursor session.

Cursor agents can:

* Read and edit files in the cloned repository
* Run shell commands in the workspace VM
* Create branches, commits, and pull requests
* Attach and interpret images in the composer (screenshots, diagrams)
* Use [Plan Mode](/features/workspaces/plan-mode) to propose a plan before changing code

Cursor does **not** support [Fast Mode](/features/workspaces/fast-mode) or Codex goal mode (`/goal`). The composer uses the selected model directly without a separate fast tier.

### Plan Mode

Start a message with `/plan` or toggle plan mode in the composer. Cursor runs in plan mode and returns a structured plan you can review in the [Canvas tab](/features/workspaces/plan-mode#viewing-plans-in-the-canvas-tab) before asking it to implement.

### Chat history

Cursor chat history persists across turns and survives workspace sleep. Use `replicas read` from the [CLI](/features/cli) to inspect transcript history from your terminal.

## Programmatic Use

Select Cursor anywhere Replicas accepts a coding agent:

| Surface                                                                                                      | How to choose Cursor                                                      |
| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------- |
| [CLI](/features/cli)                                                                                         | `-a cursor` on `replicas create` and `replicas send`                      |
| [API](/features/api)                                                                                         | `"coding_agent": "cursor"` on create and message requests                 |
| [MCP](/features/mcp)                                                                                         | `"coding_agent": "cursor"` on `create_replica` and `send_replica_message` |
| [Automations](/features/automations)                                                                         | Set **Coding agent** to Cursor in the automation editor                   |
| [Slack](/features/slack), [Linear](/features/linear), [GitHub](/features/github), [GitLab](/features/gitlab) | Set Cursor as the [default coding agent](/admin/defaults)                 |

Example CLI:

```bash theme={null}
replicas create fix-layout \
  -e frontend \
  -a cursor \
  -m "Fix the responsive layout on the settings page"
```

Example API:

```bash theme={null}
curl -X POST "https://api.tryreplicas.com/v1/replica" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "fix-layout",
    "environment_id": "ENVIRONMENT_UUID",
    "message": "Fix the responsive layout on the settings page",
    "coding_agent": "cursor",
    "model": "composer-2.5"
  }'
```

## When to Use Cursor

Cursor is a strong fit when:

* Your team already uses Cursor and has API access configured
* You want Composer's agent loop for multi-file edits and terminal work
* You prefer API-key auth over OAuth for automated or shared workflows (especially with service accounts)

Claude Code and Codex remain better choices when you need provider-specific features like Claude background tasks, Codex goal mode, or MCP transports that Cursor does not load (see [Environments → MCPs](/features/environments#mcps)).
