Setup StoreBrief with Claude Code
Claude Code is a terminal-based AI assistant from Anthropic. It runs in your terminal and can read files, run commands, and connect to external services via MCP (Model Context Protocol). This makes it ideal for StoreBrief - the agent reads your files and connects to your store data automatically.
Time to complete: ~10 minutes
Step 1: Install Claude Code
If you don't have Claude Code installed yet:
- Open your terminal (Terminal on Mac, Command Prompt or PowerShell on Windows)
- Run the install command:
npm install -g @anthropic-ai/claude-code
- Verify it's installed:
claude --version
You should see a version number. If you get an error, make sure you have Node.js installed first (version 18 or higher).
- Launch Claude Code for the first time:
claude
It will ask you to sign in with your Anthropic account. Follow the prompts.
Don't have an Anthropic account? Sign up at console.anthropic.com. You'll need an API key with credits to use Claude Code.
Step 2: Create your StoreBrief project
Create a dedicated folder for StoreBrief. This is where your agent files and data will live.
mkdir storebrief && cd storebrief
Step 3: Add your StoreBrief files
After purchasing StoreBrief, you'll receive 4 files. Place them in your project folder:
storebrief/
├── SOUL.md # How StoreBrief thinks and communicates
├── SKILL.md # The full operator toolkit
├── INTEGRATIONS.md # Data source setup reference
└── GETTING_STARTED.md # Quick start guide
You can drag and drop the files into the folder, or move them via terminal:
mv ~/Downloads/SOUL.md ~/Downloads/SKILL.md ~/Downloads/INTEGRATIONS.md ~/Downloads/GETTING_STARTED.md ./
Step 4: Create your CLAUDE.md file
Claude Code reads a CLAUDE.md file at the root of your project for persistent instructions. Create one that tells Claude to load StoreBrief:
Create a file called CLAUDE.md in your storebrief folder with this content:
# StoreBrief Agent
Read SOUL.md and SKILL.md before responding to any request. These files define your operator persona and capabilities.
Refer to INTEGRATIONS.md for data source configuration.
Step 5: Connect your data source
You need at least one data source connected. Choose the one that fits your setup:
Option A: Kleio (Recommended)
Kleio provides the richest data set via MCP. If you don't have Kleio yet, install it from the Shopify App Store ($29/mo, 14-day free trial).
- In your Kleio dashboard, enable the MCP server and copy your API key
- Add the Kleio MCP server to Claude Code. Run:
claude mcp add kleio -- npx kleio-mcp-server
- When prompted for environment variables, add your Kleio API key
Alternatively, add it manually to .claude/settings.json:
{
"mcpServers": {
"kleio": {
"command": "npx",
"args": ["kleio-mcp-server"],
"env": {
"KLEIO_API_KEY": "YOUR_KLEIO_API_KEY"
}
}
}
}
Option B: Shopify Direct
If you don't use Kleio or Triple Whale, connect directly to Shopify:
- In Shopify Admin, go to Settings → Apps and sales channels → Develop apps
- Create a new app called "StoreBrief"
- Under API access, grant these permissions:
read_products,write_productsread_ordersread_inventory,write_inventoryread_customersread_analyticsread_price_rules,write_price_rulesread_discounts,write_discounts
- Install the app and copy the Admin API access token
- Create a
.envfile in your storebrief folder:
SHOPIFY_STORE_URL=your-store.myshopify.com
SHOPIFY_ACCESS_TOKEN=shpat_xxxxxxxxxxxxx
See Connect Your Shopify Store for the full walkthrough with screenshots.
Option C: Triple Whale
If you already use Triple Whale:
- Get your API key from Triple Whale account settings
- Add to your
.envfile:
TRIPLE_WHALE_API_KEY=your_api_key_here
Step 6: Launch StoreBrief
Open your terminal, navigate to your storebrief folder, and start Claude Code:
cd storebrief
claude
Claude will automatically read your CLAUDE.md, load SOUL.md and SKILL.md, and connect to any configured MCP servers.
Step 7: Run your first daily brief
Type this in Claude Code:
Run my daily brief
First time only: StoreBrief will ask you for some context about your store (revenue range, team size, ad spend, etc.). This is a one-time setup - it saves this context for future briefs.
After providing context, you'll get a daily operator brief that looks like this:
STORE PERFORMANCE - Feb 28, 2026
Revenue: $4,847 | 7d avg: $5,120 | -5.3% ↓
Orders: 62 | 7d avg: 65 | -4.6% ↓
AOV: $78.18 | 7d avg: $78.77 | -0.7% →
Sessions: 1,240 | 7d avg: 1,180 | +5.1% ↑
Conv Rate: 5.0% | 7d avg: 5.5% | -0.5pp ↓
⚠ WATCH: Sessions up, conversion down.
→ Check top landing pages - something may be underperforming.
What to try next
Once your daily brief is running, try these:
- "Why is AOV down?" - triggers the AOV diagnostic tree
- "What's my MER?" - checks marketing efficiency ratio against benchmarks
- "Run a Klaviyo health check" - if Klaviyo is connected
- "Create a product draft for [product name]" - draft-first product creation
- "Check my inventory risk" - flags products at 14-day and 7-day velocity thresholds
Troubleshooting
"Claude doesn't seem to know about StoreBrief"
Make sure your CLAUDE.md file references SOUL.md and SKILL.md. Claude Code reads this file automatically when you launch it in the project directory.
"MCP connection failed"
Run claude mcp list to see configured servers. Make sure your API key is correct and the server is enabled.
"No data returned"
Check that your Shopify access token has the correct permissions. The most common issue is missing the read_analytics scope.
"Command not found: claude"
Make sure Claude Code is installed globally: npm install -g @anthropic-ai/claude-code. You may need to restart your terminal after installation.