Use this path when you want to pull a pattern directly into an existing app with one command.
Two install paths
Free patterns
pnpm dlx shadcn@latest add <pattern-name>
Pro patterns
The UI generates a tokenized install URL and copies a command like:
pnpm dlx shadcn@latest add 'https://www.aisdkagents.com/pro-registry/<pattern-name>?token=<short-lived-token>'
The tokenized command is generated from the block toolbar so private registry access can be validated first.
Where command generation happens
- Toolbar component:
components/shadcn-registry/shadcn-copy-install-button.tsx - Pro flow:
- Request token from
/api/cli-token/<pattern-name> - Build install command using
NEXT_PUBLIC_APP_URLorwindow.location.origin - Copy command to clipboard
- Request token from
- Free flow:
- Build
npx shadcn@latest add <pattern-name> - Copy command to clipboard
- Build
What gets added to your project
shadcn add installs pattern files plus any registry dependencies referenced by that pattern. If the pattern needs additional npm packages, install prompts are shown by the CLI.
Verification checklist
After running the copied command:
- Confirm new files exist in your app.
- Confirm imports resolve (
@/components/*,@/lib/*). - Run your type check and lint:
pnpm lint
pnpm typecheck- Start dev server and open the route that uses the installed pattern.
Common failures
401/403 on pro installs
- Your account is not entitled to the pattern, or
- The token expired before command execution.
Fix: recopy the command from the pattern page and run it immediately.
Command works but UI breaks
- Usually missing env vars or npm dependencies.
Fix: review the pattern docs for required environment variables and services.
When to choose this path
- You already have an app and want specific patterns.
- You want minimal file footprint instead of full project scaffolding.
Join The Beta
Copy and Paste 93+
ai sdk patterns.
ai sdk patterns.
Get early access pricing and shape the future of the product.
Go to pricing