Create an API key
Create one API key, keep it in GELATIN_UI_PRO_TOKEN, and the shadcn CLI and your agent can add Pro items.
Pro · step 1 of 2 · 2 min read
Prompt for your agent
Your agent reads /docs/api-key.md: the same text as this page, as Markdown.
An API key lets the shadcn CLI and your agent add Pro items. You create the key in the dashboard. Then you keep it in one environment variable, never in your code.
You need a Pro plan to add Pro items with a key.
Create a key
- Open API keys. Sign in, and open API keys in the dashboard.
- Name the key for its place. For example "Laptop" or "CI", so you know where you use it.
- Copy the key now. The dashboard shows the key one time only.
Set the key in an environment variable
The shadcn CLI and the MCP setups read the key from one variable, GELATIN_UI_PRO_TOKEN. Put it where your tools run:
Keep the key safe
A key starts with gelp_, then 49 letters and digits. If a key leaks, revoke it in the dashboard and make a new one.
Never:
- Paste a key in a chat, an issue, or a support message.
- Commit a key, or write it in code that you share.
If a key leaks:
- Revoke it on the API keys page of the dashboard.
- Create a new key.
- Put the new key in
.env.localand in CI.
Next steps
- Install Pro items: add the Pro registry and your first Pro item.
- Pricing: the Personal and Team plans that come with a key.
- Connect the MCP server: send the key from your agent as a Bearer header.