# cursor-agent

> Cursor on your own Cursor plan: its calls go straight to Cursor, and Nexus records the session.

Cursor on your own Cursor plan: its calls go straight to Cursor, and Nexus records the session.

## nexus cursor-agent

```sh
nexus cursor-agent [--json] [--subscription] [--team <slug>] [--] [cursor-agent args…]
```

Cursor on your own Cursor plan: its calls go straight to Cursor, and Nexus records the session.

| Option | Meaning |
| --- | --- |
| `--json` | A JSON summary on stdout when Cursor exits |
| `--subscription` | Run on your Cursor plan |
| `--team <slug>` | The team this session is attributed to (also NEXUS_TEAM) |
| `--model <id>` | Cursor's own model flag |

| Exit code | Meaning |
| --- | --- |
| 0 | The agent's own exit code is passed through |
| 2 | --api, --via gateway, --model auto or --recording: not available, and the agent does not start |

```sh
nexus cursor-agent -p "hello"
nexus cursor-agent --team web
nexus cursor-agent -- --resume <id>
```
