AI Skill MartBrowse skillsPromptsProgramsLearnWhat is a Skill?
← Back to list

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.28 in 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

  1. One-command install: pnpm exec tsx setup/index.ts --step provider-auth cursor does payload, barrels, SDK pin, image rebuild and auth.
  2. Switch one group: ncl groups config update --id <group-id> --provider cursor then ncl groups restart --id <group-id>.
  3. Rotate an expired key after a 401: delete the Cursor and Cursor models gateway 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)
  1. Download the ZIP with the button below.
  2. In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
  3. Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
↓ Download 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.

  1. Open a terminal and clone the repo: git clone https://github.com/nanocoai/nanoclaw.git
  2. 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).
  3. Change into the project root: cd nanoclaw
  4. Make sure your core is current. If the pre-flight check prints no, run /update-nanoclaw first.
  5. Run the all-in-one installer: pnpm exec tsx setup/index.ts --step provider-auth cursor
  6. 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.
  7. Restart the host service: bash setup/lib/restart.sh
  8. Enable it for a group: ncl groups config update --id <group-id> --provider cursor then ncl groups restart --id <group-id>
  9. If something breaks, check logs/nanoclaw.error.log and the Troubleshooting section of SKILL.md.