Self-hosted memory platform for Claude Code. Own your data.
Local, privacy-first memory storage for AI coding assistants. No cloud required.
- Self-hosted: Your memories stay on your machine
- Zero dependencies: Just SQLite, no external services
- 5-minute setup: Clone, run, done
- Claude Code ready: Drop-in replacement for Cogniz cloud
- Free forever: No usage limits, no tracking
# Clone
git clone https://github.com/cognizonline/memory-kit.git
cd memory-kit
# Install
pip install -r requirements.txt
# Generate API key
echo "MEMORYKIT_API_KEY=$(python -c 'import secrets; print(secrets.token_urlsafe(32))')" > .env
# Start server
python cli.py startServer runs at http://127.0.0.1:8765
git clone https://github.com/cognizonline/memory-kit.git
cd memory-kit
# Set API key
echo "MEMORYKIT_API_KEY=your_secure_key" > .env
# Start with Docker
docker-compose up -dpython cli.py startpython cli.py statsOutput:
π MemoryKit Statistics
ββββββββββββββββββββββ
Total Memories: 247/1000
Total Projects: 12
Usage: 24.7%
python cli.py search "authentication"python cli.py list --limit 5 --project my-apppython cli.py projectsCompatible with Cogniz API:
POST /v1/store- Save memoryGET /v1/recent- Get recent memoriesGET /v1/search- Search memoriesGET /v1/user-stats- Usage statisticsGET /v1/projects- List projects
Full API docs at: http://127.0.0.1:8765/docs
Use with claude-memory-hooks:
Edit .claude/project-config.json:
{
"cogniz": {
"api_key": "your_memorykit_api_key",
"api_url": "http://127.0.0.1:8765/v1",
"default_project": "my-project"
}
}Now Claude Code saves to your local MemoryKit instead of the cloud.
| Feature | MemoryKit (Free) | Cogniz Premium |
|---|---|---|
| Storage | Local SQLite | Cloud MySQL |
| Max memories | 1,000 | Unlimited |
| Search | Basic text | AI semantic |
| Workspaces | Single user | Teams |
| Sync | No sync | Multi-device |
| Dashboard | CLI only | Web UI |
| Privacy | 100% local | Cloud hosted |
| Cost | Free forever | $9/month |
Upgrade at cogniz.online when you need:
- More than 1,000 memories
- AI-powered semantic search
- Team workspaces
- Cloud sync across devices
- Web dashboard
- Automatic backups
MemoryKit
βββ FastAPI server (async, auto-docs)
βββ SQLite database (zero-config)
βββ REST API (Cogniz-compatible)
βββ CLI tool (management)
Environment variables:
MEMORYKIT_API_KEY=your_secure_key
MEMORYKIT_HOST=127.0.0.1
MEMORYKIT_PORT=8765
MEMORYKIT_DB_PATH=memory.db- API key required for all endpoints
- Local only by default (127.0.0.1)
- No telemetry or external calls
- SQLite encryption optional (enable with SQLCipher)
- 1,000 memory limit
- Basic text search only (no embeddings)
- Single user (no workspaces)
- No cloud sync
- CLI only (no web UI)
These limits encourage upgrade to Cogniz Premium while keeping the free version useful.
# Install dev dependencies
pip install -r requirements.txt
# Run tests
pytest
# Run with auto-reload
uvicorn memorykit.server:app --reloadContributions welcome! Please:
- Fork the repository
- Create feature branch
- Submit pull request
See CONTRIBUTING.md
MIT License - see LICENSE
- Issues: GitHub Issues
- Discussions: GitHub Discussions
- Email: support@cogniz.online
- claude-memory-hooks - Claude Code integration
- cogniz-python - Python SDK for Cogniz
- Cogniz Premium - Cloud-hosted with unlimited features
Built by Cogniz - Own your AI memory