Skip to content

Installing Pro

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.

Terminal
npx knowns-ui@latest login
npx knowns-ui@latest add agent-board

add 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.

  1. 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.

  2. Add the Pro registry

    @knowns-ui-pro serves 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}"
          }
        }
      }
    }
  3. Store the key

    The CLI’s login does this step for you. By hand:

    .env.local
    KNOWNS_LICENSE_KEY=your-license-key
  4. Add Pro items

    Free and Pro items can sit in one command. Pro dependencies come through the same registry. With shadcn:

    Terminal
    npx shadcn@latest add @knowns-ui-pro/agent-board
    npx shadcn@latest add @knowns-ui-pro/dashboard-agent-ops @knowns-ui/button

    To 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.

PageBasePro variants
heroFreehero-split, hero-product, hero-statement
testimonialsFreetestimonials-carousel, testimonials-quote, testimonials-stage, testimonials-faces
team-gridFreeteam-list, team-showcase
floating-dockFreemedia-dock, pip-video-card
call-overlayFreecall-overlay-live
json-inspectorFreejson-inspector-pro
chartFreechart-morph
Terminal
npx knowns-ui@latest add hero-split

Seats, 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.

MessageCauseStatusFix
requires the following environment variablesNo key in the environmentBefore the requestAdd KNOWNS_LICENSE_KEY to .env.local or export it in your shell.
missing_licenseNo key sent401Check the headers block for @knowns-ui-pro in components.json.
invalid_licenseWrong, revoked or expired key403Copy the key again from your License page.
rate_limitedDaily limit429One key can fetch 300 Pro items a day. The count resets at 00:00 UTC.

Need help?

Stuck on Installing Pro, or found something off? We read every message.