Setup
Set up Shopify, create a project, and run Vercel Shop locally.
Step 1: Set up Shopify for headless
If you don't already have a Shopify store, create one at shopify.com. Then set up the Headless channel:
- In your Shopify admin, go to Settings → Apps and sales channels → Develop apps
- Install the Headless channel from the Shopify App Store
- Open the Headless channel and create a new storefront
- Copy the Storefront API access token - you'll need this for your environment variables
- Under Storefront API permissions, enable the scopes required by the template
The default storefront needs product listings, inventory, collection listings, checkout, and content access. For the exact scope names, plus optional scopes for Shopify Auth and Shopify CMS, see Storefront API permissions.
Step 2: Create your project
There are three ways to get started:
Deploy with Vercel
The fastest way - deploy directly to Vercel and it will create the repository for you.
Clone with create-vercel-shop
create-vercel-shop also installs the vercel-shop, vercel-plugin, and shopify-ai-toolkit plugins in project scope so a coding agent can start working with the project immediately.
Add the agent setup to an existing project
If you already have a repo and only want the project-scoped agent plugins, run this from the project root:
This skips the storefront scaffold and only installs the vercel-shop, vercel-plugin, and shopify-ai-toolkit plugins in project scope.
Start from v0
You can also use v0 to generate a storefront and iterate on the design before connecting it to Shopify.
Step 3: Add your environment variables
Create a .env.local file in your project root:
You can find the storefront token in Settings → Apps and sales channels → Headless. For the full variable list, see Environment Variables.
Step 4: Run locally
If you scaffolded the storefront, create-vercel-shop uses the package manager you used to scaffold the project. Start the dev server with the matching command:
Your store is now running at localhost:3000.
Next steps
Environment Variables
Full reference for required and optional environment variables.
Storefront API Permissions
Required Shopify scopes for the default storefront and optional skills.
Storefront API
How the template structures Shopify queries, caching, and transforms.
Shopify Integration
How the template maps Shopify products, collections, menus, and webhooks.
Using a Coding Agent
Extend and customize the storefront with Claude Code or Cursor.