> ## Documentation Index
> Fetch the complete documentation index at: https://docs.rivet.design/llms.txt
> Use this file to discover all available pages before exploring further.

# What Rivet is for

> Rivet lets Cursor, Claude Code, Claude Desktop, and Codex CLI build several working UI design variants of your app in parallel, so you can compare them side by side and keep the best one.

Rivet is a design exploration tool that your coding agent drives. It runs a local server and a browser UI on your machine. You ask for several design variants of a page, section, or component. Rivet builds each variant as working code in its own copy of your project, and you compare the variants as live previews in your browser. When one wins, your agent builds it into your project.

## Who Rivet is for

Rivet is for people who design or build web interfaces with a coding agent and want to see more than one option before they commit to a design. It works with Cursor, Claude Code, Claude Desktop, and OpenAI Codex CLI.

Rivet works on web projects built with Next.js, Vite, Create React App, Remix, SvelteKit, or plain HTML. You don't need an existing project. Rivet can also generate new pages from nothing.

## Use cases

### Explore design variants of a screen in your app

Ask your agent for a set of directions and say how they should differ:

> "Create 3 variants of the hero section. One editorial with a serif headline, one dark and brutalist, one airy and minimal."

Rivet builds the directions in parallel, each in an isolated copy of your project, so your own files stay untouched while variants build. Each preview is your real app running the variant's code. It opens on the page the variant changed, or on your app's usual entry page if Rivet can't tell which page that is. See [Your first designs](https://docs.rivet.design/first-designs.md).

### Generate concepts for a new page from scratch

Ask for a fresh run when you have no project yet:

> "I don't have a project yet. Create 3 landing page concepts for a coffee subscription, fresh."

Rivet builds each concept as a standalone static page and saves the generated project under `.rivet/<slug>/` in your workspace. See [Starting from zero](https://docs.rivet.design/first-designs.md#starting-from-zero).

### Match a visual reference

Give Rivet a reference instead of describing a style in words. A run can take live website URLs, images, and videos. It can also take Pinterest boards and Are.na channels after you connect those accounts in the Rivet UI. For a website, Rivet captures a screenshot plus the CSS variables, computed styles, and fonts the page uses. For a video, it pulls keyframes. Every direction's worker looks at the media itself, not a text summary of it. See [Design context](https://docs.rivet.design/design-context.md).

### Refine a promising direction

When a direction is close, give feedback on that one direction:

> "On the brutalist one, keep the layout, but tighten the vertical rhythm and try a warmer accent."

Rivet regenerates that direction in place, from its current state, and leaves the others alone. You can also branch a direction into new variations. Past runs stay in the history view, so you can come back to a direction later. See [Comparing variants](https://docs.rivet.design/comparing-variants.md).

### Check a design against your design principles

Save a Markdown file of rules, such as your motion or typography principles, then ask your agent to check a direction against it. The report lists pass, fail, or couldn't verify for each rule, with a suggested fix for each failure. You can save the check and run it again later. See [Check designs against your principles](https://docs.rivet.design/verifying-designs.md).

## Set up Rivet in your agent

Rivet needs Node.js 22.16 or newer on 22.x, or Node.js 24 or newer. Install the CLI with `npm install -g rivet-design@latest`, then connect your agent:

| Agent | Connect command | Start Rivet |
| - | - | - |
| Cursor | `npx -y rivet-design@latest install cursor` | Restart Cursor, then say "Open Rivet" in a new chat. |
| Claude Code | `npx -y rivet-design@latest install claude` | Start a new session, then type `/rivet` or say "Open Rivet". |
| Claude Desktop | `npx -y rivet-design@latest install claude-desktop` | Restart the app, then ask Claude to open Rivet. |
| Codex CLI | `npx -y rivet-design@latest install codex` | Start a new session, then say "Open Rivet". |

The first time you open Rivet, it opens a sign-in page in your browser. For the full steps, including the **Add to Cursor** button and the files each install changes, see [Install & set up](https://docs.rivet.design/quickstart.md#2-connect-your-coding-agent).

## How Rivet differs from single-answer tools

A coding agent on its own usually gives you one answer per prompt. If the answer misses, you start over. Rivet changes that in these ways:

* **Several directions per request.** One run builds from 1 to 12 directions in parallel, each with a short title and subtitle so you can tell them apart.
* **Working code, not mockups.** Each direction is real code in its own workspace. On an existing project, the preview is your actual app.
* **Local.** Rivet runs on your machine. Your code never leaves it. Only the AI requests do.
* **Refinement without a restart.** You change one direction and keep the rest.
* **Your agent applies the winner.** Rivet keeps directions separate from your project. Your agent builds the chosen direction into your files as a normal code change that you review and commit.
* **A CLI and an MCP server.** Agents drive Rivet through the `rivet` CLI or its MCP server. Both return the same JSON results. See the [reference](https://docs.rivet.design/mcp-guide.md).

## Current limits

* Automatic setup covers only the four agents in the table above. Rivet doesn't configure other agents.
* Rivet supports only the frameworks listed in [Who Rivet is for](#who-rivet-is-for).
* Node.js 23 isn't supported.
* In an existing project, Rivet uses git to keep each variant's workspace separate, so the project must be a git repository. To run without git features, start Rivet with `--no-git`.
* You need to sign in to Rivet with a Google account.
* Rivet's workers call model services, so a run uses your AI provider's usage. When Claude Code or Codex calls Rivet, the workers use that agent's model by default.
* A run takes at most 12 directions. Reference images can be up to 10 MB each and 35 MB in total. A run takes up to 3 reference page URLs and up to 2 videos.
* Rivet doesn't write a direction into your project. Your agent does that when you ask.
* Publishing a direction to a public link is turned off for now.
* Saved design checks stay on the computer where you saved them. A code check that you run with `rivet context verify` runs with your own permissions, not in a sandbox.

For setup and runtime problems, see [Troubleshooting](https://docs.rivet.design/troubleshooting.md), or email [sam@rivet.design](mailto:sam@rivet.design).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.