Installation & Getting Started
This guide will walk you through setting up MIRIX on your system. There are two ways to install MIRIX:
Choose Your Installation Method
Quick Installation (Recommended)
One-click DMG installation - no coding required.
Development Installation
For developers who want to contribute or customize MIRIX.
Jump to Development Installation →
Quick Installation (DMG)
macOS Only
The DMG installation is currently available for macOS only. Windows and Linux users should use the Development Installation method.
Prerequisites
- macOS 10.15 or later
- A valid GEMINI API key
API Key Required
You'll need a GEMINI API key to use MIRIX. Get one free from Google AI Studio.
Installation
-
Download the .dmg file below.
-
Open it and drag MIRIX into your Applications folder.
-
Launch the app.
Because this app is not notarized by Apple, you may see a security warning when launching it. To allow the app to run, you can either:
- Right-click (Control-click) the app in Applications and choose "Open," then confirm in the dialog.
or
- Run this command in Terminal to remove the quarantine attribute:
This is expected behavior for open-source software distributed outside the App Store. The app is built directly from the code in this repository.
Setup
- Enter your API key when prompted:
- Get your free API key from Google AI Studio
-
Paste it into the setup dialog
-
Grant permissions when requested:
- Screen recording permission (for screenshot capture)
Start Using MIRIX
- Start with chat - Initially, MIRIX functions as a chatbot where you can send messages
- Enable screen monitoring - Click the "Screenshots" tab, then click "Start Monitoring" to begin screen capture
- Let it learn - Give MIRIX a few minutes to build your initial memory base from your screen activities
- Ask questions - Once monitoring is active, interact with MIRIX about your recent activities and documents
You're Ready!
MIRIX is now installed and ready to use! It will automatically track your screen activities and build your personal memory base.
Development Installation
This method is for developers who want to set up MIRIX from source code.
Prerequisites
- Python 3.11 or later
- Node.js 14 or later (for the desktop app)
- A valid GEMINI API key
- PostgreSQL 17 (recommended for best performance)
API Key Required
You'll need a GEMINI API key to use MIRIX. Get one free from Google AI Studio.
Step 1: Clone the Repository
Step 2: Set up Environment Variables
Create a .env
file in the project root:
Add your GEMINI API key to the .env
file (you can get it for free at Google AI Studio):
Step 3: Install Python Dependencies
Step 4: Database Setup
Option A: PostgreSQL (Recommended)
PostgreSQL provides better performance, scalability, and vector search capabilities.
Install PostgreSQL and pgvector
- Download PostgreSQL from postgresql.org
- Install pgvector following the official guide
- Start PostgreSQL service
Create Database and Enable Extensions
# Create the mirix database
createdb mirix
# Enable pgvector extension
psql -U $(whoami) -d mirix -c "CREATE EXTENSION IF NOT EXISTS vector;"
Configure Environment Variables
Add PostgreSQL configuration to your .env
file:
GEMINI_API_KEY=your_api_key_here
# PostgreSQL Configuration
# Replace 'your_username' with your system username (find it with: echo $(whoami))
MIRIX_PG_URI=postgresql+pg8000://your_username@localhost:5432/mirix
Username Setup
This setup uses your system user for simplicity in development. For production, consider creating a dedicated PostgreSQL user with limited privileges.
Option B: SQLite (Fallback)
If PostgreSQL setup fails, MIRIX will automatically use SQLite. Simply omit the PostgreSQL environment variables from your .env
file.
SQLite Limitations
SQLite works but has limitations in concurrent access and advanced search capabilities compared to PostgreSQL.
Step 5: Start MIRIX Backend
MIRIX will automatically create all necessary database tables on first startup and begin processing on-screen activities immediately.
Step 6: Launch the Desktop App
To use the graphical interface, you'll need to set up and run the frontend application.
Prerequisites
Ensure you have Node.js (version 14 or later) installed:
- macOS:
brew install node
- Ubuntu/Debian:
sudo apt install nodejs npm
- Windows: Download from nodejs.org
Setup and Launch
# Navigate to the frontend directory
cd frontend
# Install frontend dependencies
npm install
# Launch the desktop application
npm run electron-dev
Two Windows Will Open
This command will open two windows - this is normal behavior:
- Desktop App Window: The main MIRIX desktop application (an Electron app)
- Browser Window: A development server window that may open in your default browser
You can safely close the browser window if it opens - the desktop app window is what you'll primarily use for interacting with MIRIX.
The MIRIX desktop application will open, providing a user-friendly interface to interact with your personal assistant.
Keep Both Running
Keep both the backend (python main.py
) and frontend (npm run electron-dev
) running simultaneously for the full MIRIX experience.
Getting Started
Now that MIRIX is installed, you can start using it:
- Launch the desktop app - Either from Applications (DMG installation) or by running both backend and frontend (development installation)
- Start with chat - Initially, MIRIX functions as a chatbot where you can send messages
- Enable screen monitoring - Click the "Screenshots" tab on the right side of the app, then click "Start Monitoring" to begin screen capture
- Let it learn - Give MIRIX a few minutes to build your initial memory base from your screen activities
- Ask questions - Once monitoring is active, interact with MIRIX about your recent activities and documents
- Explore features - Check out the User Guide for advanced usage
You're Ready!
MIRIX is now tracking your screen activities and building your personal memory base.
What Happens Next?
- Automatic Screenshot Capture: MIRIX takes and processes screenshots every 1.5 seconds
- Memory Building: Your activities are automatically categorized into 6 memory types
- Real-time Processing: 8 specialized agents work together to understand and organize your data
- Privacy First: All data is stored locally on your machine
Explore Further
- Architecture Overview - Understand how MIRIX works
- User Guide - Learn advanced usage patterns
- Desktop App - Try the GUI interface
Troubleshooting
DMG Installation Issues
\"MIRIX is damaged and can't be opened\" error
This is a common macOS Gatekeeper issue:
\"MIRIX can't be opened because it's from an unidentified developer\"
- Go to System Preferences → Security & Privacy → General
- Click "Open Anyway" next to the MIRIX message
- Or use the terminal command above
Screen recording permission denied
- Go to System Preferences → Security & Privacy → Screen Recording
- Check the box next to MIRIX
- Restart the application
Development Installation Issues
Common PostgreSQL Issues
\"extension 'vector' is not available\" error
Install pgvector first:
\"permission denied to create extension\" error
The pgvector extension requires superuser privileges:
Connection refused or timeout
Make sure PostgreSQL service is running:
\"database 'mirix' does not exist\" error
Create the database manually:
\"pg_dump: No such file or directory\" error (during backup)
Set the correct PATH for PostgreSQL tools:
Frontend Issues
\"node: command not found\" error
Install Node.js first:
\"npm install\" fails with permission errors
Fix npm permissions or use a Node version manager: