Registry
Add Pro components to your project with the shadcn CLI and a personal token.
Pro components are distributed as a shadcn registry. The CLI downloads the source into your project, so you own and can edit the code.
1. Create a token
Log in with an account that holds a Pro license, open Tokens and create a token. Copy it right away, because it is shown only once.
2. Store the token
Put the token in an environment variable named ALOXE_TOKEN. In a local project, add it to .env.local. In CI, add it as a secret.
ALOXE_TOKEN=alx_your_token_here3. Register Aloxe in components.json
Add the @aloxe registry to your components.json.
{
"registries": {
"@aloxe": {
"url": "https://aloxe.weyv.fr/r/{name}.json",
"headers": { "Authorization": "Bearer ${ALOXE_TOKEN}" }
}
}
}4. Add a component
npx shadcn@latest add @aloxe/modalThe CLI reads ALOXE_TOKEN from your environment and writes the component into your project, in components/ui/aloxe/ (for example components/ui/aloxe/modal.tsx). Import it from @/components/ui/aloxe/modal.
The install also adds the packages the component needs: @aloxe/react, @aloxe/tokens and @base-ui/react. Set up the stylesheet as described in Installation, and add an @source for components/ui/aloxe so Tailwind generates the copied components' classes.
Errors
| Status | Error | What it means |
|---|---|---|
| 401 | token_required | The request had no token. If ALOXE_TOKEN is unset, the CLI sends no usable Authorization header and you get this error. Check that it is set in the shell that runs the CLI. |
| 401 | invalid_token | The token is unknown or has been revoked. Create a new one at Tokens. |
| 403 | no_entitlement | The token is valid, but its owner has no active Pro license for this release. See Pro access. |
The Authorization scheme (Bearer) is case-insensitive.
Free items and the registry index need no token. Only Pro items check one.