# Use CloneKit in any AI

Connect once. Then your AI can find, read and run kits of expert know-how.

https://clonekit.ai/docs

## What CloneKit is

A kit is how an expert does a job, written for AI. A read kit is files your AI reads. A run kit is steps your AI follows with your tools and accounts. Then it checks the work against the expert's checks.

- Your AI does the work. CloneKit gives it the kit.
- Your AI always gets the latest version.
- Anyone can search. Running, buying and publishing need an account.

## Connect your AI

The easiest way: send your AI one message and it connects itself.

```
Connect CloneKit so you can use its kits with me.

If you can run commands on a computer, yours or a cloud one, add it yourself:
- Claude Code: claude mcp add --transport http clonekit https://clonekit.ai/mcp
- Codex: codex mcp add clonekit --url https://clonekit.ai/mcp
- Any other AI: npx add-mcp https://clonekit.ai/mcp --name clonekit -g -y
If a sign-in link appears, show it to me. Tell me if you need a restart.

If you're a chat app and can't add it yourself, guide me one step at a time to add https://clonekit.ai/mcp as a custom connector. The steps are at https://clonekit.ai/docs.md

If I can't sign in from where you run, ask me for a key from https://clonekit.ai/dashboard/connections#keys (Authorization: Bearer).

When it works, show me 3 kits that fit my work.
```

CloneKit is one MCP server for every kit. Add this link to your AI app. The first time, sign in to CloneKit and tap Allow.

MCP server link:

```
https://clonekit.ai/mcp
```

### Claude

Open Settings → Connectors and choose “Add custom connector”. Paste the link and sign in to CloneKit (tap Allow).

[Open settings](https://claude.ai/settings/connectors)

### ChatGPT

Open Settings → Apps & Connectors → Advanced and turn on Developer mode. Create a connector with the link and sign in to CloneKit (tap Allow).

[Open settings](https://chatgpt.com/#settings/Connectors)

### Grok

Open Connectors and choose New Connector → Custom. Paste the link and sign in to CloneKit (tap Allow).

[Open settings](https://grok.com/connectors)

### Cursor

Tap the button: Cursor opens and asks to install CloneKit. Sign in to CloneKit when Cursor asks.

[Add to Cursor](cursor://anysphere.cursor-deeplink/mcp/install?name=clonekit&config=eyJ1cmwiOiJodHRwczovL2Nsb25la2l0LmFpL21jcCJ9)

### VS Code

Tap the button: VS Code opens and asks to install CloneKit. Sign in to CloneKit when it asks.

[Add to VS Code](vscode:mcp/install?%7B%22name%22%3A%22clonekit%22%2C%22type%22%3A%22http%22%2C%22url%22%3A%22https%3A%2F%2Fclonekit.ai%2Fmcp%22%7D)

### Claude Code

Run this in your terminal, then start Claude Code.

```sh
claude mcp add --transport http clonekit https://clonekit.ai/mcp
```

### Codex

Run this in your terminal, then start Codex.

```sh
codex mcp add clonekit --url https://clonekit.ai/mcp
```

### Any other AI

Run this in your terminal and pick your apps (Windsurf, Gemini CLI, Zed, Goose and more).

```sh
npx add-mcp https://clonekit.ai/mcp --name clonekit
```

Then ask your AI: **“Find a CloneKit kit that helps me write a project brief.”**

App without sign-in? Make an API key in [Dashboard → Connections](https://clonekit.ai/dashboard/connections) and send it as `Authorization: Bearer ck_…`.

Just browsing? `https://clonekit.ai/mcp/read` is read-only: search kits and read free kits, no sign-in.

## Use a kit

Ask your AI for what you need. It finds a kit and tells you what the kit does. Then it uses the kit for you.

### Read kits

Your AI reads the kit's files and applies them to your work. Then it checks the result against the kit's checks.

### Run kits

Your AI runs the kit with you, in your chat:

1. It asks the creator's questions about your work. Some kits also show you options to pick from.
2. It does one step at a time with your tools and accounts, and checks each step.
3. Steps with real effects, like sending an email, are marked. Your AI app's permission settings decide when it asks you first.
4. It checks the work against the creator's final checks.
5. It finishes and tells you which checks passed and which steps it skipped.

If the connection drops, your AI picks the run up where it stopped. Kits you bought or ran are in [Dashboard → Library](https://clonekit.ai/dashboard/library).

### Private use

Only your account can open your runs. Creators see totals, like runs and refunds. They never see who you are or what you answered. A private kit opens only for its creator, or for its organization's members. [Privacy](https://clonekit.ai/privacy).

### Ratings and feedback

After a run, your AI asks you for 1 to 5 stars and an optional review. You can rate a kit you bought, ran to the end, or read on two different days. A kit shows its stars once it has 3 ratings.

When a kit's instructions get your AI stuck, it can tell the creator what went wrong. The creator doesn't see who sent it. Your AI reports an unsafe kit to CloneKit.

### Buy a paid kit

- Add a card once in [Dashboard → Billing](https://clonekit.ai/dashboard/billing). Your AI buys with it when you ask.
- Your AI buys on its own up to your limits: US$20 per kit and US$50 a month. You change them in Billing, and your AI can't.
- Above a limit, your AI shows you an approval link. Open it to approve or decline. The link expires in 7 days.
- No card yet, or your bank wants to confirm? Your AI shows you a link. Then it tries again and never charges twice.

### Refunds

Ask your AI for a refund, or tap Ask for a refund in Library. Bought it in the last 7 days and never used it (no file read, no run)? You get your money back at once. It reaches your card in 5 to 10 business days.

CloneKit reviews every other request, using the refund policy on the kit's page:

- `7_days`: Refund within 7 days.
- `deliverables_not_produced`: Refund if the run doesn't produce the kit's deliverables.
- `none`: No refunds.

The full rules are in the [Terms](https://clonekit.ai/terms).

## CLI

The CLI finds, makes and publishes kits from your terminal. It needs Node.js 18 or later. Run it with npx, or install it once.

Connect CloneKit to your AI apps:

```sh
npx clonekit-cli setup
```

Sign in:

```sh
npx clonekit-cli login
```

Find a kit:

```sh
npx clonekit-cli search "landing page design"
```

Or install it once. Then type clonekit:

```sh
npm install -g clonekit-cli
```

See every command:

```sh
npx clonekit-cli --help
```

## Skills

Kits and Agent Skills (SKILL.md folders) work together. Turn a skill into a kit, or a kit into a skill.

### Get a kit as a skill

Any free read kit downloads as a SKILL.md folder:

```sh
npx clonekit-cli export @creator/kit-name
```

Then copy the folder to `~/.claude/skills/` or your agent's skills folder.

### Turn a skill into a kit

Have a SKILL.md folder, an AGENTS.md or a public GitHub repo? Import it as a draft kit. You can also paste a GitHub link in the chat and ask your AI to import it.

```sh
npx clonekit-cli import ./my-skill
```

## Make and publish a kit

### With your AI

Connect CloneKit, start a new chat and say:

```
Interview me and write my CloneKit kit.
```

Your AI asks one question at a time and shows you a preview before it publishes.

### By hand

Write kit.yaml and your files, check them, then publish. You see a preview first.

```sh
npx clonekit-cli init my-kit
npx clonekit-cli validate ./my-kit
npx clonekit-cli publish ./my-kit
```

### Checks before a kit goes live

- Every kit gets an automatic safety check. Free kits go live when they pass.
- Paid kits also need your test run and a deeper check by agents.
- If something needs a fix, you see what and why. Fix it and publish again.

### Who can see it

- `public`: In search and on /kits. Anyone can use it.
- `unlisted`: Anyone with the link can use it. Not in search or on /kits.
- `private`: Only you, or your organization's members.

A new draft is private. It stays that way until you publish it as public or unlisted, or change who can see it. Leaving visibility out of publish keeps the current choice.

To sell a kit, you need Pro or Max. [See pricing](https://clonekit.ai/pricing).

## kit.yaml fields

A kit is a folder with a `kit.yaml` and its files. You need `id`, `title`, `listing` and some content: files your AI reads (like README.md), build steps it runs, or both.

### A minimal kit

```yaml
id: "@your-handle/project-brief"
title: "Write a project brief"
listing: "A one-page project brief from your notes: the goal, the audience and the next action."

# Put the know-how in README.md, next to kit.yaml.
```

### Add steps to make it a run kit

```yaml
deliverables: ["A project brief"]
build:
  - id: write-brief
    step: "Write the brief"
    instructions: "Use the user's notes. State the goal, audience and next action."
    check: "The brief includes all three."
review:
  - "The brief matches the user's notes."
```

### Required

- `id`: The kit's name: "@your-handle/kit-name". Lowercase letters, numbers and dashes.
- `title`: The name people see. 3 to 80 characters.
- `listing`: What a person gets, in plain words, in about 200 characters (20 to 400). Write {tool-id} or {ref-id} only for a tool or ref the kit really uses: it shows as a chip with its logo. No chips is fine. No links, no promised results.

### About the kit

- `about`: Optional, for AI agents and search: who the kit is for, when to use it, when not to, and what it needs. Up to 1,000 characters. Cards don't show it.
- `version`: Like "1.2.0". Starts at 1.0.0. Raise it to publish a new version.
- `mode`: read or run. Optional: build steps make a run kit, no steps make a read kit.
- `domain`: marketing, design, engineering, operations, sales, content, finance or other (the default).
- `language`: The language the kit is written in: en (the default) or es.
- `i18n`: A translated title and listing per language, like i18n: {es: {title, listing}}. Use the same {ids} as the listing.

### Tools and references

- `tools`: Apps the kit uses. Each has an id and a url, plus optional name, mcp (an https MCP link or an MCP Registry id, never a command), required (true by default), alternatives (other tool ids), recommended and est_cost.
- `refs`: Skills, sources and templates the kit uses: id, name and kind (skill, source or template), plus optional url and note.
- `examples`: Real results, shown on the kit's page: type (image, video, audio, before_after or doc), src under examples/ and a caption. Optional: poster, before, input and aspect.
- `original_creator`: Optional credit for an original X post: name, x_handle (without @), and post_url (the original https X post URL). The kit page links the person and post separately. Record the real author; do not put credit in listing prose.

### Run steps

- `understand`: Questions your AI asks first: ask, plus optional id, why and changes.
- `choose`: Choices the user makes: id, question and 2 to 10 options (id, label, and optional asset and note).
- `build`: The steps: id, step (a short title) and instructions (text or a file path). Optional: tool, check, and approval: true for steps with real effects.
- `deliverables`: What a run kit produces. A run kit needs at least one.
- `review`: The final checks your AI makes before it finishes.

### What the user brings and gets

- `inputs`: What the user needs to have.
- `outputs`: What the user gets.
- `guardrails`: Rules your AI keeps the whole time.

### Price and versions

- `pricing`: model: free (the default) or one_time with amount_usd. client_use_usd adds a higher price for client work.
- `license`: own_use (the default) or client_use.
- `refund`: Required for paid kits: 7_days, deliverables_not_produced (run kits) or none.
- `changelog`: What changed. One line, or a list of versions, newest first: version and summary, plus optional date and changes. Each new version needs an entry.

Links go only in `tools[].url` and `refs[].url`. Other kit text can't hold links.

Check a kit folder before you publish:

```sh
npx clonekit-cli validate ./my-kit
```

## MCP tools

The server at /mcp lists only the tools your connection can use. Your AI app shows each tool's inputs.

### No sign-in needed

Signed out, your AI sees only these.

- `search_kits`: Search kits by what you want done, a tool or a domain. With org, search an organization's kits.
- `get_kit`: A kit's details: mode, files, questions, steps, checks, tools and price.
- `get_file`: Read a kit's files. Free kits need no sign-in. Paid kits need a purchase.
- `check_tools`: Compare the tools a kit uses with the ones your AI has.
- `whoami`: How you're connected and what you can do.

### Needs sign-in

The first time your AI calls one, your AI app asks you to sign in.

- `buy`: Buy a paid kit with your saved card, within your limits.
- `start_run`: Start a run of a run kit. Returns the creator's questions.
- `answer`: Send your answers to the questions, or the options you picked.
- `next_step`: Get the current step: what to do, with which tool, and its check.
- `report`: Record a step as done, failed or skipped.
- `finish`: Close the run with the final checks.
- `get_run`: Pick a run up again after a lost connection.
- `rate_kit`: Rate a kit 1 to 5 stars, with an optional review.
- `report_kit_feedback`: Tell the creator where the kit got stuck, or what worked well.
- `report_kit`: Report an unsafe kit to CloneKit.
- `request_refund`: Ask for a refund of a kit you bought.
- `list_my_orgs`: Your organizations and your role in each.
- `check_handle`: Check a creator handle and get suggestions.
- `claim_handle`: Claim your handle and turn on publishing.

### For creators

Listed once you have a creator handle, or an editor role in an organization.

- `start_interview`: Start the interview that writes your kit.
- `validate_kit`: Check a kit.yaml and its files without saving them.
- `create_kit`: Save a new kit or version as a draft.
- `import_kit`: Import a public GitHub repo or folder as a draft.
- `duplicate_kit`: Copy a kit you like into your account as a private draft, to adapt it.
- `create_upload`: Get an upload link for an image or PDF too big to send inline.
- `update_kit`: Edit a draft, or change a live kit's visibility.
- `list_my_kits`: Your kits, their versions and where each one stands.
- `test_run`: Test a draft on a real business that isn't yours.
- `publish_kit`: Publish a kit. A paid kit goes to review first.
- `set_visibility`: Change who can see a kit: public, unlisted or private.
- `get_analytics`: Uses, runs, sales, refunds and failing steps for each kit.
- `update_profile`: Edit your creator page.

Creators also get the `interview` prompt: the script your AI follows to write your kit with you.

### The read-only server

`https://clonekit.ai/mcp/read` is for app directories. It never signs in and never writes, and it sees only public kits. It has 4 tools:

- `search_kits`: Search public kits.
- `get_kit`: A public kit's details.
- `get_kit_files`: Read a free kit's files. Paid kits return paid_kit, and run steps stay on /mcp.
- `list_creator_kits`: A creator's profile and public kits.

## CLI reference

Type clonekit before each command, or npx clonekit-cli if you didn't install it. Add --help to a command to see all its options.

### Commands

- `login`: Sign in in your browser. On SSH, add --paste.
- `whoami`: Show who you're signed in as and what you can do.
- `logout`: Sign out and remove this computer's key.
- `orgs`: List your organizations and your role in each.
- `setup`: Connect CloneKit to your AI apps.
- `search <words>`: Find published kits. Filter with --domain or --tool.
- `open [@ref|dir]`: Open a kit's page. --print only prints the link.
- `export <@ref>`: Download a free kit as a SKILL.md folder.
- `init [dir]`: Start a kit: kit.yaml and README.md.
- `validate [dir]`: Check a kit folder offline, with CloneKit's rules.
- `import <url|dir>`: Turn a public GitHub repo, or a folder on your computer, into a draft kit.
- `duplicate <@ref>`: Copy a kit you like into your account as a private draft, to adapt it.
- `publish [dir|@ref]`: Upload a kit folder and publish it, or publish a draft by its ref.
- `push [dir|@ref]`: Same as publish.
- `status [@ref]`: Your kits: versions, review notes, uses and runs.
- `list`: Same as status.
- `visibility <ref> <v>`: Change who can see a kit: public, unlisted or private.

### Useful options

- `--json`: Print JSON, for scripts and AIs.
- `--token <ck_…>`: Use this API key for one command.
- `CLONEKIT_TOKEN`: The same key as an environment variable. CI needs no login.
- `--org <handle>`: publish, list and search: act for an organization.
- `--visibility <v>`: publish and import: public, unlisted or private. Left out, the kit keeps its visibility. A new kit is private.
- `--draft`: publish: upload a draft and don't publish it.
- `-m, --message <text>`: publish: what changed, for the changelog.
- `--yes`: publish and import: OK a kit's first publish without asking. Read the preview first.

### Sign in over SSH

No browser on that machine? Run login with --paste. It shows a link to Dashboard → Connections. Open it on any device, create a key and paste it in the terminal.

```sh
npx clonekit-cli login --paste
```

### Publish from CI

Save an API key as the CLONEKIT_TOKEN secret, then publish. --yes OKs a kit's first publish.

```sh
npx clonekit-cli publish ./my-kit --yes -m "Fix the brief step"
```

## REST API

A small HTTP API for scripts, with the same rules as the MCP server. Publishing, buying and runs are MCP tools, so use /mcp or the CLI for those.

Base URL:

```
https://clonekit.ai/api/v1
```

### Auth

Make an API key in [Dashboard → Connections](https://clonekit.ai/dashboard/connections) and send it with every request. Search and public kits also work without a key.

```
Authorization: Bearer ck_…
```

Try it:

```sh
curl -H "Authorization: Bearer $CLONEKIT_TOKEN" "https://clonekit.ai/api/v1/kits/search?q=project+brief"
```

### Endpoints

- `GET /api/v1/kits/search?q={words}`: Search kits. Add org={handle} for an organization's kits.
- `GET /api/v1/kits?ref={ref}`: A kit's details.
- `GET /api/v1/kits/files?ref={ref}&path={path}`: Read a kit's files: 1 to 20 path values.
- `POST /api/v1/refunds`: Ask for a refund. Body: { ref, reason }.
- `POST /api/v1/uploads`: Get an upload link for a big image or PDF.
- `GET /api/v1/creators/me`: Your creator profile.
- `PATCH /api/v1/creators/me`: Edit your creator profile.
- `GET /api/v1/organizations`: Your organizations.
- `POST /api/v1/organizations`: Create an organization. Body: { handle, name }.
- `GET /api/v1/organizations/{handle}/members`: An organization's members and invites.
- `POST /api/v1/organizations/{handle}/invites`: Invite someone. Body: { email, role }.
- `DELETE /api/v1/me/key`: Remove the key that makes this call.

Errors are JSON with a code, a message and a fix. Each key can make 60 requests a minute.

## Sell kits

Sell a kit for a one-time price. Selling needs Pro or Max. [See pricing](https://clonekit.ai/pricing).

### Get paid

- You're the seller. Buyers pay into your own Stripe account, and Stripe pays your bank.
- Set it up once in [Dashboard → Earnings](https://clonekit.ai/dashboard/earnings): pick your country, tap Get paid and finish the steps with Stripe.
- Selling works from most countries Stripe supports. Earnings lists them.
- Sales, refunds, disputes and payouts are in your Stripe dashboard. Open it with Open Stripe in Earnings.

### What you keep

Free kits cost you nothing. On each paid sale, CloneKit keeps a commission:

- Pro: you keep 90% when the buyer comes from your link, and 75% when CloneKit finds them.
- Max: you keep 95% and 80%.

Stripe's processing fee also comes out of each sale.

### Before a paid kit goes live

- Set pricing and a refund policy in kit.yaml.
- Keep it public or unlisted. Paid kits can't be private, and organization kits are free.
- A paid run kit needs your passed test run on a real business that isn't yours, with every step done and every check met. Edits after the test need a new test.

A buyer who never used the kit gets their money back at once within 7 days. CloneKit reviews other requests. The money comes from your Stripe account, and CloneKit returns its commission. [Terms](https://clonekit.ai/terms).

## Organizations

An organization is a shared handle, like @acme, for a team's kits. Create one in [Dashboard → Organizations](https://clonekit.ai/dashboard/organizations).

### Roles

- `owner`: Manages roles. Can delete the organization.
- `admin`: Manages invitations and members.
- `editor`: Makes and publishes kits.
- `member`: Uses the organization's private kits.

Organization kits are free. A private kit opens only for current members and their AIs. When someone leaves, their access ends.

Inviting members and publishing need the Team plan, which also gives every member Pro. [See pricing](https://clonekit.ai/pricing).

In the CLI, pick the organization with --org. Your AI does the same with list_my_orgs and the org input of create_kit and publish_kit.

```sh
npx clonekit-cli orgs
npx clonekit-cli publish ./my-kit --org acme
npx clonekit-cli search "onboarding" --org acme
```

## Troubleshooting

Every error has a code, a message and a fix. Your AI reads the fix and acts on it.

```json
{ "error": { "code": "auth_required", "message": "…", "fix": "…" } }
```

### Common errors

- `auth_required`: The action needs your account. Sign in when your AI app asks and tap Allow, or add an API key.
- `invalid_key`: The API key is wrong or was removed. Make a new one in Dashboard → Connections. In the CLI, run clonekit login again.
- `unknown_tool`: This connection doesn't list that tool. Ask your AI to call whoami. Creator tools need a creator handle and a connection that can publish.
- `forbidden`: Your role or connection doesn't allow this. Ask an organization owner for another role, or reconnect with publish permission.
- `not_found`: There's no kit with that ref that you can open. Check it with search_kits. Private kits open only for their creator or members.
- `purchase_required`: It's a paid kit you haven't bought. Ask your AI to buy it, then go on.
- `paid_kit`: The read-only server serves free kits only. Connect /mcp to buy and use paid kits.
- `seller_not_ready`: The creator hasn't finished setting up Stripe, so nobody can buy the kit yet. If it's your kit, finish Get paid in Earnings.
- `plan_required`: Selling, or more than 5 published private kits, needs Pro. A draft does not count. The error includes the upgrade link.
- `test_run_required`: A paid run kit needs a passed test before it goes live. Run test_run on a real case that isn't yours, with every step done and every check met.
- `rate_limited`: Too many requests. Wait for the time in Retry-After, then try again. Runs in progress keep their place.
