npm install
⚠️ Windows Note: If you get build errors forbetter-sqlite3, you need Windows build tools:npm install --global windows-build-toolsRun as administrator, then retry
npm install.
copy .env.example .env
notepad .envFill in at minimum:
ANTHROPIC_API_KEY— Get from https://console.anthropic.com/DISCORD_TOKEN— See "Discord Setup" belowDISCORD_OWNER_ID— Your Discord user ID
Optional:
VOYAGE_API_KEY— For vector embeddings (free at https://www.voyageai.com)- Google Calendar credentials — See README for full setup
- Go to https://discord.com/developers/applications
- Click "New Application" → Name: "MiniClaw"
- Go to Bot tab → Click "Reset Token" → Copy token → Paste into
.envasDISCORD_TOKEN - Enable Message Content Intent under Privileged Gateway Intents
- Go to OAuth2 → URL Generator:
- Scopes:
bot - Permissions:
Send Messages,Read Message History,Embed Links
- Scopes:
- Copy URL → Open in browser → Invite to your private server
- In Discord: Settings → Advanced → Enable Developer Mode
- Right-click your username → Copy User ID → Paste into
.envasDISCORD_OWNER_ID
See full instructions in README.md. Summary:
- Create Google Cloud project
- Enable Calendar API
- Create OAuth2 credentials
- Add credentials to
.env - Run:
npm run auth(opens browser, authorize, done)
npm startYou should see:
=== MiniClaw Starting ===
[Calendar] Initialized with saved tokens
[MemoryIndex] SQLite hybrid search initialized
[Discord] Logged in as MiniClaw#1234
=== MiniClaw Ready ===
In your Discord server, try:
hello! who are you?
The bot should respond. Try these next:
remember that I'm building a game in Godot with procedural terrain
what do you remember about me?
let's build a shopping list skill together
- Check
DISCORD_OWNER_IDmatches your Discord user ID exactly - Make sure Message Content Intent is enabled in Discord Developer Portal
- Look at console for error messages
- Either skip calendar for now (it's optional)
- Or run
npm run authto complete Google OAuth2 flow
- Install Windows build tools:
npm install --global windows-build-tools(as admin) - Requires Python 3 and Visual Studio Build Tools
- This is expected if you don't have
VOYAGE_API_KEY - System falls back to keyword-only search (works fine!)
- Add Voyage API key later if you want semantic search
Once running, explore these features:
Memory System:
remember that my favorite color is blue
search my memory for "blue"
Calendar (if configured):
what's on my calendar this week?
add a meeting tomorrow at 3pm for 1 hour called "Project Review"
Skill Building:
let's build a note-taking skill
Model Switching:
!model claude-haiku-4-5-20251001
what model are you using?
!model claude-sonnet-4-5-20250929
Personality:
update your identity file - pick a name and emoji you like
To keep MiniClaw running permanently on your Windows PC:
- Install PM2:
npm install -g pm2 - Start with PM2:
pm2 start src/index.js --name miniclaw - Save:
pm2 save - Setup startup:
pm2 startup(follow instructions)
Or use node-windows to create a Windows service.
- Read the full README.md for detailed documentation
- Explore
SOUL.mdandIDENTITY.mdto shape your AI's personality - Build your first custom skill together with the AI
- Set up Google Calendar if you skipped it initially
Have fun! Your AI assistant is ready to grow with you.