Installation
This guide walks you through setting up Starwind Pro so you can start installing blocks in minutes.
Prerequisites
Before you begin, make sure you have:
- An Astro project (create one with
npm create astro@latest) - Node.js 20+ installed
- A Starwind Pro license (purchased from the website)
Info
Free blocks work without a license. You only need a Pro license for premium blocks.
Step 1: Initialize Starwind Pro
Choose your preferred setup method. Both methods end up at Step 2: Get Your License Key.
CLI Setup (Recommended)
From your project root, run the init command with the --pro flag:
pnpx starwind@latest init --pronpx starwind@latest init --proyarn dlx starwind@latest init --proThis sets up the Starwind Pro registry alongside the free components, allowing you to install premium blocks.
Info
If you haven’t set up Starwind UI yet, this command will initialize the base configuration in addition to Starwind Pro setup.
Tip
If using pnpm, it is recommended to create a .npmrc file in the root of your project with the following content:
auto-install-peers=truenode-linker=hoistedlockfile=trueOnce complete, skip to Step 2.
Manual Setup
If you prefer full control, you can configure the registry yourself.
You’ll first need Starwind UI set up in your project. See the Starwind UI installation docs for instructions.
Starwind Pro is implemented as a private shadcn registry. Open or create your components.json and add the following to the registries object:
{ "$schema": "https://ui.shadcn.com/schema.json", "registries": { "@starwind-pro": { "url": "https://pro.starwind.dev/r/{name}", "headers": { "Authorization": "Bearer ${STARWIND_LICENSE_KEY}" } } }, "aliases": { "components": "@/components", "utils": "@/lib/utils" }, "tailwind": { "config": "", "css": "src/styles/starwind.css", "baseColor": "neutral", "cssVariables": true }, "style": "default", "rsc": true}Then create a .env.local file in your project root with your license key:
# Starwind Pro registry setupSTARWIND_LICENSE_KEY=your_starwind_pro_license_keyReplace your_starwind_pro_license_key with your actual key (see Step 2 below). A valid license key is not required for free blocks.
Caution
Never commit your .env.local file to version control. Make sure it’s listed in your .gitignore file.
Step 2: Get Your License Key
There are a few ways to retrieve your Starwind Pro license key. Once retrieved, add it to your .env.local file.
Fetch Your License Key Here
If you’re signed in with Starwind Pro access, you can fetch your license key directly:
From the Account Dashboard
- Sign in to your account and go to pro.starwind.dev/account/
- Scroll down to the “Getting Started with Starwind Pro” section
- Click the “Get License Key” button
- Your license key will appear in the code block below
From the Polar Dashboard
- Go to your account page at pro.starwind.dev/account/
- Click “Access Polar Portal” in the Quick Actions card
- Find your license key in the Polar customer portal

Tip
Your license key is tied to your account. Keep it secure and don’t share it publicly.
Step 3: Install Blocks
You’re all set. Browse the component library and install any block with the CLI:
pnpx starwind@latest add @starwind-pro/hero-01npx starwind@latest add @starwind-pro/hero-01yarn dlx starwind@latest add @starwind-pro/hero-01Info
You can find the exact install command on each block’s demo page. Click the copy button and paste it into your terminal.
Next Steps
- Browse the component library to see all available blocks
- Having issues? Check the Troubleshooting page
- Join the community for support and updates