Add Cursor Agent Provider (NanoClaw)
Installs, authenticates and enables the Cursor (@cursor/sdk) agent provider inside NanoClaw, switchable per group.
Dev & CodingAdvanced★ 31,154⑂ 12,628AI score 8/10Last updated: Nov 25, 2026
What it does
Automates the full installation of the Cursor local Agent SDK provider for a NanoClaw host:
- Runs a compatibility pre-flight so an unsupported core never gets a partial payload
- Copies host contract, runtime provider, auth helper and setup files from
payload/ - Appends
import './cursor.js';to the five provider/contract barrels - Pins
@cursor/sdk@1.0.28in the agent-runner tree with Bun (host lockfile untouched) - Builds, typechecks, runs the provider-contract verifier and rebuilds the container image
- Walks through Cursor account sign-in or API key entry; the key lives in the credential gateway and the container only sees a placeholder
Every nc: directive is idempotent, so re-running is safe.
Who it's for
- Operators self-hosting NanoClaw who want a non-Claude agent backend
- Teams running different providers per group
- Security-conscious setups with gateway egress lockdown
It only works inside the NanoClaw repository.
Examples
- One-command install:
pnpm exec tsx setup/index.ts --step provider-auth cursordoes payload, barrels, SDK pin, image rebuild and auth. - Switch one group:
ncl groups config update --id <group-id> --provider cursorthenncl groups restart --id <group-id>. - Rotate an expired key after a 401: delete the
CursorandCursor modelsgateway entries, then re-run the provider-auth step.
· · · Install guide · · ·
Try it now, no install
Paste this into Claude to use the skill without installing anything.
Read the instructions in this file and follow them to help me: https://raw.githubusercontent.com/nanocoai/nanoclaw/HEAD/.claude/skills/add-cursor/SKILL.md What I want: (describe your task here)
If Claude can't open the link, open it yourself and paste the contents instead.
↓ If it works for you, download the ZIP below and install it. Then it runs on its own — no pasting each time.
Install in the Claude app (no terminal)
- Download the ZIP with the button below.
- In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
- Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Install in Claude Code
Let Claude do it — paste this into Claude Code
Install the skill I found on AI Skill Mart. Copy the .claude/skills/add-cursor folder from the GitHub repo nanocoai/nanoclaw into my ~/.claude/skills/add-cursor/. When it's done, tell me in one line what this skill can do.
Install with a command instead
git clone https://github.com/nanocoai/nanoclaw.git && cp -r nanoclaw/.claude/skills/add-cursor ~/.claude/skills/add-cursor⚠ This is a third-party skill. Check the source repository before installing.
- Open a terminal and clone the repo:
git clone https://github.com/nanocoai/nanoclaw.git - Copy the skill folder:
cp -r nanoclaw/.claude/skills/add-cursor ~/.claude/skills/add-cursor(if you already run NanoClaw, the in-repo skill is picked up automatically). - Change into the project root:
cd nanoclaw - Make sure your core is current. If the pre-flight check prints
no, run/update-nanoclawfirst. - Run the all-in-one installer:
pnpm exec tsx setup/index.ts --step provider-auth cursor - Follow the prompt: sign in with your Cursor account in the browser, or paste an API key into the local masked prompt. Never put the key in chat.
- Restart the host service:
bash setup/lib/restart.sh - Enable it for a group:
ncl groups config update --id <group-id> --provider cursorthenncl groups restart --id <group-id> - If something breaks, check
logs/nanoclaw.error.logand the Troubleshooting section of SKILL.md.
View source on GitHub ↗License: MIT