Pro setup
Licence keys, the registries block, and installing Pro components.
Pro components install with the same CLI as free ones. The project needs two things once: a licence key in an environment file, and a block in components.json that tells the CLI where the Pro registry is and to send the key. After that, every Pro component is one command.
The three steps
1. Put your licence key in .env.local
Create .env.local in the root of the project, next to components.json, and add one line:
THRUM_LICENSE_KEY=thrum_your-keyNo quotes, no spaces. Where the key comes from is below.
2. Add the Thrum registries to components.json
Add the registries key to the top level of your existing components.json. Leave the rest of the file as it is:
{
"registries": {
"@thrum": "https://thrumui.dev/r/{name}.json",
"@thrum-pro": {
"url": "https://thrumui.dev/r/pro/{name}.json",
"headers": {
"Authorization": "Bearer ${THRUM_LICENSE_KEY}"
}
}
}
}Copy it exactly. ${THRUM_LICENSE_KEY} is a placeholder the CLI fills in from your environment: the key itself never goes in this file, so the file is safe to commit.
3. Install a component
npx shadcn@latest add @thrum-pro/choice-cardpnpm dlx shadcn@latest add @thrum-pro/choice-cardyarn dlx shadcn@latest add @thrum-pro/choice-cardbunx --bun shadcn@latest add @thrum-pro/choice-cardThe part after @thrum-pro/ is the component's name. Every Pro component page shows its own command.
You should see
The CLI writes the component into components/ui/ (blocks go to components/), the same way as a free one. Your account page shows when each key was last used and which component it last installed.
Where the key comes from
- Keys are created on your account page, under Licence keys. Your first key is created with the licence.
- A key is shown in full once, when it is created. We store only a hash of it and a short hint, its first and last four characters, so we cannot show it again. If you lose it, create a new one and revoke the old one.
- A licence can have up to 5 active keys. Give each one a name of up to 40 characters that says where it is used, such as “laptop” or “CI”, so you can revoke one without touching the others.
- Revoking a key takes effect at once.
Keep the key out of git
- The key belongs in
.env.local, never incomponents.jsonor in source code. Check that git ignores the file:git check-ignore .env.localprints the file name when it does. If it prints nothing, add.env*.localto.gitignore. - Commit
components.json. It holds the placeholder, not the key. - If a key is ever committed or pasted somewhere public, revoke it on your account page and create a new one. Removing it from git history is not enough.
Use it in CI
Installed components are source files in your repository. A build in CI compiles them like any other file and needs no key. CI needs the key only if a job runs the install command itself. In that case, create a separate key for CI and set it as a secret environment variable named THRUM_LICENSE_KEY in your CI provider's settings. The CLI reads it from the environment, so no .env.local file is needed there.
What the error messages mean
When the Pro registry refuses a request, the CLI prints one of these messages.
401This is a Pro component. Add THRUM_LICENSE_KEY to .env.local. Steps: https://thrumui.dev/docs/pro
The request carried no key. Check that step 1 is done, that the file is in the folder you run the command from, and that the variable name is spelled exactly.
401That licence key is not valid. Copy it again from https://thrumui.dev/account
The key is cut short, has extra characters, or is not one of ours. A key starts with thrum_ and has no spaces or quotes around it. If you no longer have it, create a new one.
401That key was revoked. Create a new one at https://thrumui.dev/account
Someone on the licence revoked this key. Create a new key and replace the old one everywhere it is used.
403Your plan does not include Pro components. See https://thrumui.dev/pricing
The key is real, but its licence is not active. This happens, for example, when a licence has been revoked or suspended.
403Your updates ended on <date>, and this version of <name> came out later. What you installed keeps working. See https://thrumui.dev/pricing
A licence includes 12 months of new components and new versions. This component, or this version of it, was released after yours ended. Everything already in your project stays licensed and keeps working.
404No component called '<name>'.
The name after @thrum-pro/ is misspelled, or it is the name of a free component, which installs by its address. Copy the command from the component page.
429Too many requests. Wait a minute and run the command again. Your key is fine.
The registry allows 300 requests a minute from one address and 600 a minute with one key, enough to install every Pro component at once. Nothing is wrong with the licence.
429Too many requests with a missing or wrong key. Correct the key, wait a minute, then run the command again.
An address gets this answer after 10 requests in a minute with a missing, wrong or revoked key. Fix the key as the first three messages describe, then wait a minute.
The licence in two sentences
Pro is a one-time purchase for one developer, or for a team of up to 10 with the Team plan: use the components in as many projects as you like, client work included, and keep what you installed for good, with 12 months of updates. You may not redistribute the source as a competing component library or template.
The full text is on the licence page.