| name | configure |
| description | Configure mem0 API key and settings for this project. Use when the user wants to set up mem0, configure memory settings, or add their API key. |
mem0 Configuration Skill
Help the user configure their mem0 integration.
Steps
-
Check current configuration
- Look for
.env file in project root
- Check if
MEM0_API_KEY is already set
-
Guide API key setup
- Direct user to https://app.mem0.ai to get their API key
- Ask for their API key using AskUserQuestion
-
Configure user ID
- Ask if they want a custom user ID or the default
- Explain that user ID scopes memories per project/user
-
Create/update .env file
- Create
.env file with the configuration
- Create
.env.example as a template
- Ensure
.env is in .gitignore
-
Test the connection
- Run a simple test to verify the API key works
- Report success or any errors
Configuration Options
MEM0_API_KEY=your-api-key
MEM0_USER_ID=claude-code-user
MEM0_TOP_K=5
MEM0_THRESHOLD=0.3
MEM0_SAVE_MESSAGES=10
Example Flow
User: /mem0:configure