Claude Code Setup
Install and configure Claude Code for AI-powered development with Vibestacks. Get started in under 5 minutes.
This guide walks you through installing Claude Code and verifying it works with your Vibestacks project.
Prerequisites
- Node.js 18+ - Required to run Claude Code
- Anthropic API Key - Get one from console.anthropic.com
- Vibestacks Project - Already set up and running locally
Installation
Install Claude Code CLI
Install the Claude Code CLI globally using npm:
npm install -g @anthropic-ai/claude-codeVerify the installation:
claude --versionAuthenticate with Anthropic
Run the authentication command and follow the prompts:
claude authThis will open a browser window to authenticate with your Anthropic account. Once authenticated, your API key is stored securely.
API Key Alternative
You can also set the ANTHROPIC_API_KEY environment variable directly instead of using claude auth.
Start Claude Code
Navigate to your Vibestacks project and start Claude Code:
cd your-project
claudeYou should see Claude Code start up and load your project context.
Verify Configuration
Test that Claude understands your project by asking a simple question:
> What database ORM does this project use?Claude should respond that the project uses Drizzle ORM with PostgreSQL - this confirms it's reading the CLAUDE.md configuration.
Success!
If Claude correctly identifies your stack, everything is configured properly.
Configuration Files
Vibestacks includes these pre-configured files in your project:
CLAUDE.md
The main context file at the root of your project. Contains:
- Available commands (
pnpm dev,pnpm db:push, etc.) - Project architecture and file structure
- Database schema information
- Authentication setup details
- Code conventions
Claude reads this file automatically when you start a session.
.claude/settings.json
Permissions configuration:
{
"permissions": {
"allow": [
"Bash(pnpm dev)",
"Bash(pnpm build)",
"Bash(pnpm db:*)",
"Bash(pnpm email)"
],
"deny": [
"Read(**/.env*)",
"Read(**/node_modules/**)"
]
}
}This allows Claude to run common development commands without prompting you each time, while preventing access to sensitive files.
.claude/rules/
Modular coding standards that Claude follows:
code-style.md- TypeScript conventions, imports, namingcomponents.md- React patterns, Server vs Client componentsdatabase.md- Drizzle queries, schema, migrationsapi.md- Route handlers, validation, error handlingauth.md- Better Auth patternsstripe.md- Subscription handling
.claude/commands/
Custom slash commands for common tasks (see Commands).
Usage Tips
Starting a Session
Always start Claude Code from your project root:
cd your-vibestacks-project
claudeEffective Prompts
Be specific about what you want:
# Good - specific and clear
> Add a settings page at /dashboard/settings where users can update their name and email
# Less effective - vague
> Add settingsMulti-Step Tasks
For complex features, break them down:
> First, let's add a database table for team invitations.
> The table should have: inviter, invitee email, team ID, status, and expiration.
# After Claude creates the table...
> Now add an API route to create invitations. It should send an email using Resend.
# After the API is done...
> Finally, create a UI for the team admin to invite members.Reviewing Changes
Claude will show you what it's about to do. Review the changes before accepting:
Claude: I'll create the following files:
- db/invitation.ts (schema)
- app/api/invitations/route.ts (API)
- components/emails/invitation.tsx (email template)
Proceed? [y/n]Troubleshooting
"CLAUDE.md not found"
Make sure you're running claude from the project root directory where CLAUDE.md exists.
"Permission denied" errors
Check .claude/settings.json - you may need to add the command to the allow list.
Claude doesn't understand the project
Try running /init in Claude Code to refresh the project context:
> /initRate limiting
If you hit API rate limits, wait a few minutes or upgrade your Anthropic plan.
Next Steps
- Learn the Slash Commands - Use pre-built commands for common tasks
- Understand the Rules - See what patterns Claude follows
- Customize the Configuration - Adapt to your preferences
AI-Powered Development
Vibestacks is pre-configured for "vibe coding" with Claude Code. Ship features faster using natural language commands and intelligent code generation.
Slash Commands
Pre-built slash commands for common development tasks. Create features, pages, APIs, and more with guided workflows.