Log in once with npx knowns-ui@latest login, then add Pro items by name with npx knowns-ui@latest add. The CLI sets up the licensed registry and keeps your key in .env.local.
On this page
Set up with AI
Paste this prompt into your coding agent and it does steps 2 to 4 for you: it checks shadcn, adds the Pro registry, asks you to put your key in .env.local, connects the MCP server and checks one Pro install. Signed in, your License page has the same prompt.
Set up Knowns UI Pro in this project with the knowns-ui CLI. Work step by step, show me each change, and ask before you install packages or edit files outside this project.
Context: Knowns UI (https://ui.knowns.dev) is a shadcn registry. Free items install from https://ui.knowns.dev/r/{name}.json. Pro items come from the licensed registry @knowns-ui-pro, which needs my license key in KNOWNS_LICENSE_KEY. Setup guide: https://ui.knowns.dev/docs/installing-pro
1. Check the project
- Confirm it is a React project with Tailwind CSS v4.Paste it into Claude Code, Cursor, Codex or any coding agent, or open it in a new chat.
Quick start
Save your key once with login, then add Pro items by name. The knowns-ui CLI finds out whether each name is Free or Pro, and stops with a clear message if the key is missing.
npx knowns-ui@latest login
npx knowns-ui@latest add agent-boardadd sets up components.json and both registries when they are missing (it asks first; -y accepts). init does only that step. login asks for the key without echo, checks it with the server, then writes it to .env.local and makes sure .gitignore covers that file. It only prints the key masked. logout removes it. You can pass the key as an argument (login knp_...), but then it may stay in your shell history.whoami shows the plan, status and expiry of the saved key, still masked. Only if the CLI can’t run, the fallback below does the same by hand with the shadcn CLI.
Fallback: set up by hand with the shadcn CLI
Use these steps only if the knowns-ui CLI can’t run, for example with no network to npm or an older setup.
Get a license key
Buy Pro on the pricing page. The key arrives by email and is on your account’s License page. One key covers every Pro item in every project you build.
Add the Pro registry
@knowns-ui-proserves Pro items. The Free items they depend on come from@knowns-ui, which is built into the shadcn CLI and needs no entry. The CLI fills${KNOWNS_LICENSE_KEY}from your environment and sends it with every Pro request.components.json{ "registries": { "@knowns-ui-pro": { "url": "https://ui.knowns.dev/r/pro/{name}.json", "headers": { "Authorization": "Bearer ${KNOWNS_LICENSE_KEY}" } } } }Store the key
The CLI’s
logindoes this step for you. By hand:.env.localKNOWNS_LICENSE_KEY=your-license-keyAdd Pro items
Free and Pro items can sit in one command. Pro dependencies come through the same registry. With shadcn:
Terminalnpx shadcn@latest add @knowns-ui-pro/agent-board npx shadcn@latest add @knowns-ui-pro/dashboard-agent-ops @knowns-ui/buttonTo look at an item before adding it:
npx shadcn@latest view @knowns-ui-pro/agent-board.
Pro variants
Some Free blocks have Pro variants. The base block stays Free; each variant is its own Pro item that builds on it. The sidebar marks these pages with an outline star.
| Page | Base | Pro variants |
|---|---|---|
| hero | Free | hero-split, hero-product, hero-statement |
| testimonials | Free | testimonials-carousel, testimonials-quote, testimonials-stage, testimonials-faces |
| team-grid | Free | team-list, team-showcase |
| floating-dock | Free | media-dock, pip-video-card |
| call-overlay | Free | call-overlay-live |
| json-inspector | Free | json-inspector-pro |
| chart | Free | chart-morph |
npx knowns-ui@latest add hero-splitSeats, refunds and revoked keys
- A Pro key is for one developer. A Team key covers up to 10 developers on one key.
- Monthly keys stay active while the subscription is paid.
- If an order is refunded or a key is revoked, Pro installs stop with
invalid_license. Free items keep working. - A key used from many places at once may be reviewed.
Troubleshooting
Each error the Pro registry returns, what it means, and the fix. Free items are never affected.
| Message | Cause | Status | Fix |
|---|---|---|---|
| requires the following environment variables | No key in the environment | Before the request | Add KNOWNS_LICENSE_KEY to .env.local or export it in your shell. |
| missing_license | No key sent | 401 | Check the headers block for @knowns-ui-pro in components.json. |
| invalid_license | Wrong, revoked or expired key | 403 | Copy the key again from your License page. |
| rate_limited | Daily limit | 429 | One key can fetch 300 Pro items a day. The count resets at 00:00 UTC. |