add-cursor

add-cursor is a skill for Claude Code from nanocoai/nanoclaw. It costs 84 tokens per session (3,119 once invoked), scanned A, original, MIT.

An integration that lets NanoClaw use Cursor's local Agent SDK as an agent provider. It supports planning, tool use, and continuing paused sessions alongside or instead of Claude.

In plain words
What is it for?
Use it to install and authenticate Cursor, select it for a group, run Cursor agents, connect MCP tools, and resume saved sessions.
Why use it?
It removes the need to use only one agent provider and lets different groups choose Cursor or Claude. It also handles Cursor authentication and connects Cursor to the existing provider system.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions AGENTS.md; mentions Cursor.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is ./container/build.sh build.

Good fit Use it to install and authenticate Cursor, select it for a group, run Cursor agents, connect MCP tools, and resume saved sessions.

Compare 6 skills from other repositories ↓
About the project

NanoClaw is an AI assistant that runs agents inside separate Linux containers, isolating their files and execution environments. People use it to connect agents to messaging services and run assistants with memory and scheduled jobs. The catalogue contains skills and instructions for extending or operating NanoClaw.

nanocoai/nanoclaw · 31,187 stars · on GitHub · nanoclaw.dev

Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/nanocoai/nanoclaw
agentmods
npx agentmods add skills/nanocoai/nanoclaw/add-cursor

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for add-cursor

README.md
[![agentmods](https://agentmods.dev/badge/skills/nanocoai/nanoclaw/add-cursor/github.svg)](https://agentmods.dev/skills/nanocoai/nanoclaw/add-cursor)
Your own site
<a href="https://agentmods.dev/skills/nanocoai/nanoclaw/add-cursor"><img src="https://agentmods.dev/badge/skills/nanocoai/nanoclaw/add-cursor/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for add-cursor

Your own site · 80×15
<a href="https://agentmods.dev/skills/nanocoai/nanoclaw/add-cursor"><img src="https://agentmods.dev/badge/skills/nanocoai/nanoclaw/add-cursor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 84 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,119 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00084 $0.03119
Opus 5.5 $0.00034 $0.01248
Sonnet 5.5 $0.00017 $0.00624
Haiku 4.5 $0.00008 $0.00312

Measured 19d ago against content hash 7194c69955b0, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

add-cursor scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 19d ago.

The scan reads SKILL.md. This mod also ships 19 executable files (payload/container/agent-runner/src/provider-contracts/cursor.ts, payload/container/agent-runner/src/providers/cursor-auth.test.ts, payload/container/agent-runner/src/providers/cursor-auth.ts, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

.claude/skills/add-cursor/SKILL.md · 176 lines

How it starts

The opening of the file, as written. The whole thing — 176 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Cursor agent provider

Shortcut: pnpm exec tsx setup/index.ts --step provider-auth cursor performs this whole install (payload files, barrels, SDK pin, image rebuild, host rebuild and restart) plus auth in one command. The steps below are the same operations, for agent-driven or manual application.

NanoClaw selects each group's agent backend from container_configs.provider (default claude). This skill installs the Cursor provider: copy the payload from this skill's payload/, append one import to each of the five provider and contract barrels, pin @cursor/sdk in the agent-runner tree, rebuild, then run the auth walk-through.

The provider runs @cursor/sdk in-process inside the container (Agent.create / resume / send): native streaming, MCP tools, a local agent store (the continuation is a Cursor agentId). It integrates through the provider contracts only — a data-only host contract declares the composed AGENTS.md, the per-group .cursor-shared state volume at ~/.cursor, the two Cursor-native skill directories and the Cursor model domains; the runtime contract declares the execution stance, model mapping, memory hooks, MCP mapping, and archives each exchange into conversations/ through core's shared exchange archive.

Credentials stay in the credential gateway selected by NANOCLAW_GATEWAY_PROVIDER. The container only ever sees the placeholder CURSOR_API_KEY=cursor_placeholder_nanoclaw, which the SDK sends as a bearer header. Setup stores the key for two exact routes: api2.cursor.sh/auth/exchange_user_api_key, where the SDK swaps it for a short-lived runtime token, and api.cursor.com/v1/models, for model discovery. The runtime token stays in the SDK's memory and rides the same gateway proxy on the agent's Connect RPCs to api2.cursor.sh, which the gateway leaves untouched because the key is scoped to the exchange path. The payload ships cursor.gateway-proxy.test.ts, which proves every request of a real SDK run transits the proxy carrying nothing but the placeholder. Never put a key in chat.

The mechanical steps under Install carry nc: directive fences: an agent reads the prose and applies them, and a parser can apply them deterministically from the same document. Every directive is idempotent, so the whole skill is safe to re-run; anything a parser can't apply falls back to the prose beside it.

Read the full file on GitHub · 176 lines

Files

What ships with it

21 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 19d ago Changed 7194c69955b0
  2. 1mo ago First seen · 176 lines · 84 tokens per session scan A 46a5fbb2d192

Subscribe to this mod's changes

add-cursor is a skill published in the GitHub repository nanocoai/nanoclaw (31,187 stars, last pushed today), licensed MIT. It adds 84 tokens to every session and 3,119 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-20.

Related

add-cursor compared with skills from other repositories

add-cursor next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
add-cursornanocoai/nanoclawSkill31ktodayMITA84Claude Code
Pynchy Developmentcrypdick/pynchySkill102mo agoMITA79Claude Code
Pynchy Plugin Authoringcrypdick/pynchySkill102mo agoMITA64Claude Code
slack-token-extractorcrypdick/pynchySkill102mo agoMITA34Claude Code, Codex
x-integrationcrypdick/pynchySkill102mo agoMITA38Claude Code, Codex
python-heredoccrypdick/pynchySkill102mo agoMITA43Claude Code, Codex
Documentation Managercrypdick/pynchySkill102mo agoMITA68Claude Code