---
title: "Gelatin UI docs"
description: "Install Gelatin UI and build with it through your AI agent. Every page has a prompt to copy and a Markdown copy for the agent."
url: https://gelatinui.com/docs
markdown_url: https://gelatinui.com/docs.md
docs_index: https://gelatinui.com/docs/llms.txt
prompt: "Set up Gelatin UI in this project. Read https://gelatinui.com/docs.md, then do each step of https://gelatinui.com/docs/install.md. You are done when @gelatin-ui/button is in the project and the app builds."
---

> Docs index: https://gelatinui.com/docs/llms.txt

# Gelatin UI docs

> Install Gelatin UI and build with it through your AI agent. Every page has a prompt to copy and a Markdown copy for the agent.

## How to use these docs

Your agent does the work, and you check it. Each page gives the agent what it needs in plain text.

- **A prompt on every page.** Copy it into your agent. It names the Markdown copy of the page and says when the task is done.
- **A Markdown copy of every page.** Add `.md` to the URL, or send the header `Accept: text/markdown` to the page URL.
- **The same text for you and the agent.** The page shows the Markdown as it is, with no tabs and no hidden parts.
- **Commands that run as written.** Each step names the files that it changes.

## Connect your agent

Do these three steps once in each project. Then ask for UI in plain words, and the agent finds and adds the components and blocks.

1. Add the agent skill. It teaches the agent how our components fit together.

```bash
npx skills add https://gelatinui.com -a claude-code -y
```

2. Add the MCP server. The agent uses it to search, read the docs of a component, and plan the install.

```bash
claude mcp add --transport http gelatin-ui https://gelatinui.com/mcp
```

3. Add our rules to the `AGENTS.md` file of your project. [Add rules to AGENTS.md](https://gelatinui.com/docs/agents.md) has the block to paste.

These commands are for Claude Code. For Codex, Cursor, and other agents, see [Install the agent skill](https://gelatinui.com/docs/agent-skill.md) and [Connect the MCP server](https://gelatinui.com/docs/mcp-server.md).

## Files for agents

| File                                                                         | What it holds                                                            |
| ---------------------------------------------------------------------------- | ------------------------------------------------------------------------ |
| [/docs/llms.txt](https://gelatinui.com/docs/llms.txt)                                             | Every docs page, with the link to its Markdown copy.                     |
| [/llms.txt](https://gelatinui.com/llms.txt)                                                       | Every component and block page, with the link to its Markdown copy.      |
| [/llms-full.txt](https://gelatinui.com/llms-full.txt)                                             | The docs of every component and block in one file.                       |
| [/r/registry.json](https://gelatinui.com/r/registry.json)                                         | The shadcn registry index of every public Free item.                     |
| [/.well-known/agent-skills/index.json](https://gelatinui.com/.well-known/agent-skills/index.json) | The agent skill index: the skill folder as one archive, with its digest. |
| `https://gelatinui.com/mcp`                                                  | The MCP server: search, docs, install plans, and checks of your code.    |

Each Markdown answer sends an `x-markdown-tokens` header with its rough size in tokens, so an agent knows the cost before it reads.

## All pages

### Get started

- [Overview](https://gelatinui.com/docs.md): How the docs work for you and your agent.
- [Install](https://gelatinui.com/docs/install.md): Set up the registry, then install your first item.
- [Set up your framework](https://gelatinui.com/docs/frameworks.md): The exact setup for Vite, Next.js, and TanStack Start.

### For AI agents

- [Install the agent skill](https://gelatinui.com/docs/agent-skill.md): Teach your agent how our items fit together.
- [Connect the MCP server](https://gelatinui.com/docs/mcp-server.md): Let your agent find, read, and install items.
- [Add rules to AGENTS.md](https://gelatinui.com/docs/agents.md): Paste our rules into the agent file of your project.
- [llms.txt](https://gelatinui.com/llms.txt): Every component and block page in one text file.
- [Search the registry](https://gelatinui.com/docs/registry-search.md): Find items over HTTP, with no MCP client.

### How items work

- [Compose items from parts](https://gelatinui.com/docs/composition.md): Use a root and its named parts, and style each part.
- [Change the theme](https://gelatinui.com/docs/theming.md): Set the colors, radius, and fonts with tokens.
- [Change motion](https://gelatinui.com/docs/motion.md): Set the durations, curves, and springs of every item.

### Forms

- [Choose a form library](https://gelatinui.com/docs/forms.md): Use TanStack Form or React Hook Form with our Field parts.
- [Use TanStack Form](https://gelatinui.com/docs/forms/tanstack-form.md): Build a form with TanStack Form and Field.
- [Use React Hook Form](https://gelatinui.com/docs/forms/react-hook-form.md): Build a form with React Hook Form and Field.

### Stay up to date

- [Get a newer version](https://gelatinui.com/docs/updates.md): Gelatin UI is in alpha: a newer version of an item can break your code.

### Pro

- [Create an API key](https://gelatinui.com/docs/api-key.md): One key for the CLI, the MCP server, and your agent.
- [Install Pro items](https://gelatinui.com/docs/pro-items.md): Install Pro components and blocks with your API key.
