Installation
Prerequisites
Section titled “Prerequisites”- Node.js 18+ — Mia uses ESM modules and modern Node APIs.
- Git — Required for workspace context and workflow commands.
- At least one AI provider CLI or API key:
- Claude Code (
claudebinary) - OpenAI Codex (
codexbinary) - Google Gemini (API key)
- OpenCode (
opencodebinary)
- Claude Code (
Install from Source
Section titled “Install from Source”git clone https://github.com/m1ab0t/mia.gitcd mianpm installnpm run buildnpm link # Makes `mia` available globallyFirst-Time Setup
Section titled “First-Time Setup”Run the interactive setup wizard:
mia setupThis will:
- Detect installed plugins — Checks which AI provider CLIs are available on your
$PATH. - Select active plugin — Choose your primary AI backend (e.g., Claude Code).
- Authenticate — Runs provider-specific auth (browser login, API key paste, or OAuth).
- Select model — Choose the default model for your provider.
- Verify — Sends a test prompt to confirm everything works.
- Start daemon — Launches Mia in the background.
- Show QR code — For optional mobile pairing.
Verify Installation
Section titled “Verify Installation”mia status # Check daemon is runningmia doctor # Run health diagnosticsmia ask "hello" # Test a simple promptDirectory Structure
Section titled “Directory Structure”Mia stores all configuration and data in ~/.mia/:
~/.mia/├── mia.json # Configuration file├── .env # API keys and secrets├── .mia.pid # Daemon PID file├── memory.db # SQLite memory store├── sessions.json # Active sessions├── scheduled-tasks.json # Cron task definitions├── context/ # Cached workspace context├── traces/ # Dispatch trace logs└── logs/ # Daemon logsUpdating
Section titled “Updating”Pull the latest code and rebuild:
cd ~/miagit pullnpm installnpm run buildmia restartOr use the built-in update command from the CLI or mobile app:
mia update