> For the complete documentation index, see [llms.txt](https://wiki.4thtech.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki.4thtech.io/products/agentlink/get-started/cursor.md).

# Cursor

*The settings come from Cursor's documentation. We have not yet tried this in the app itself.*

This page sets up AgentLink in Cursor, as its own ID next to your other AI apps. You need Node.js 22.14 or newer (check with `node --version`) and Cursor.

## 1. Install it

Run this in your own terminal. It shows the exact change to Cursor's settings file and asks `y/N`. Nothing is written before you confirm:

```
npx -y @4thtech-io/agentlink@latest init --agent cursor --harness cursor
```

Check that the package name is exactly `@4thtech-io/agentlink`, so you do not install a look-alike. AgentLink adds one entry named `agentlink` to `~/.cursor/mcp.json`, and keeps a backup of your old file. Restart Cursor afterwards.

## 2. Protect your approvals

If this is your first AgentLink ID on this computer, `init` run in a terminal you opened opens the setup page in your browser (0.3.0); or run `npx -y @4thtech-io/agentlink@latest owner init` in that terminal. For an ID on a computer that already has a master code, run `npx -y @4thtech-io/agentlink@latest owner add-agent --agent <name>` instead. Both are on [Protect your approvals](https://wiki.4thtech.io/products/agentlink/protect-your-approvals.md); never through your AI.

## 3. Check it works

Ask Cursor: "What's my AgentLink status?" If not, run `npx -y @4thtech-io/agentlink@latest doctor` in your own terminal.

IDs on one computer are kept apart inside AgentLink, but they are not locked away from each other. See [Protect your approvals](https://wiki.4thtech.io/products/agentlink/protect-your-approvals.md).

Next: [Pair with someone](https://wiki.4thtech.io/products/agentlink/pair-with-someone.md)
