This guide outlines the best approaches for using Mem0's memory capabilities across different devices and platforms.
flowchart TD
A[Choose Deployment Option] --> B[Managed Platform]
A --> C[Self-Hosted Open Source]
B --> D[Setup Managed Solution]
D --> D1[Get API Key]
D --> D2[Install SDK]
C --> E[Setup Self-Hosted]
E --> E1[Install Package]
E --> E2[Configure Storage]
D1 --> F[Integration Methods]
D2 --> F
E1 --> F
E2 --> F
F --> G[Python SDK]
F --> H[JavaScript SDK]
F --> I[REST API]
G --> J[Implementation Options]
H --> J
I --> J
J --> K[Desktop Apps]
J --> L[Mobile Apps]
J --> M[Web Apps]
J --> N[Browser Extension]
- Hassle-free setup
- Automatic updates
- Built-in synchronization
- Enterprise security features
- Full customization
- Data sovereignty
- Local deployment
- Create account at app.mem0.ai
- Get API key from dashboard
- Install SDK for preferred language
- Install package via pip/npm
- Configure local storage
- Set up environment
- Use JavaScript/TypeScript SDK
- Deploy as Progressive Web App (PWA)
- Accessible from any device with a browser
- Use Python SDK for desktop apps
- Install Chrome extension for browser integration
- Enable local caching for offline access
- Use REST API for mobile apps
- Implement local storage for offline functionality
- Sync when online
Python Example:
from mem0 import MemoryClient
client = MemoryClient(api_key="your-api-key")
JavaScript Example:
import MemoryClient from 'mem0ai';
const client = new MemoryClient({ apiKey: 'your-api-key' });
- Use for platforms without direct SDK support
- Implement with standard HTTP requests
- Enable cross-platform consistency
- Use unique user_id across devices
- Implement memory retrieval with filters
- Cache frequently accessed memories locally
- Sync when connection is available
- Use consistent user_ids across devices
- Implement proper error handling
- Cache essential data locally
- Use metadata for better organization
- Implement proper security measures
- Browser extension for web integration
- Offline support where possible
- Multi-user support
- Custom categories for organization
- Choose your deployment option (Managed or Self-hosted)
- Set up authentication (API key for managed, environment for self-hosted)
- Install necessary SDKs for your platforms
- Implement user identification system
- Set up synchronization mechanisms
- Add error handling and offline capabilities
- Test across different devices and platforms
For detailed implementation examples and API documentation, visit docs.mem0.ai.