Installation
Install Mimir on your system. Choose the method that works best for you.
Pre-release: Mimir is currently in development. Installation instructions will be finalized for v1.0 release.
Prerequisites
Before installing Mimir, ensure you have:
- Node.js 22 or later - Download Node.js
- npm, yarn, or pnpm - Comes with Node.js
- (Optional) Docker Desktop - For sandboxed code execution
- API key for your preferred LLM provider
Verify Prerequisites
# Check Node.js version
node --version # Should be v22.0.0 or higher
# Check npm version
npm --version
# Check Docker (optional)
docker --versionInstallation Methods
Linux Installation
Automated installer (recommended):
curl -fsSL https://raw.githubusercontent.com/codedir-labs/mimir-code/main/scripts/install.sh | bashManual installation via npm:
npm install -g @codedir/mimir-code
mimir --versionManual binary installation:
# Download latest binary
curl -L https://github.com/codedir-labs/mimir-code/releases/latest/download/mimir-linux-x64 -o mimir
# Make executable
chmod +x mimir
# Move to PATH
sudo mv mimir /usr/local/bin/
# Verify
mimir --versionQuick Setup
Initialize Mimir
Navigate to your project and initialize:
cd your-project
mimir initThis creates:
.mimir/directoryconfig.ymlconfiguration filemimir.dbSQLite database
Configure API Key
Edit .mimir/config.yml or use environment variables:
# Set environment variable
export DEEPSEEK_API_KEY="your-api-key-here"
# Or add to .env file
echo "DEEPSEEK_API_KEY=your-api-key-here" >> .envStart Mimir
mimirYou should see the interactive prompt. Try asking:
- “Explain this project structure”
- “Add error handling to functions”
- “Write tests for the API client”
Platform-Specific Notes
macOS
On first run, you may need to allow the binary in System Preferences → Security & Privacy.
If you encounter “command not found”, add to PATH:
# For bash
echo 'export PATH="/usr/local/bin:$PATH"' >> ~/.bash_profile
source ~/.bash_profile
# For zsh (macOS default)
echo 'export PATH="/usr/local/bin:$PATH"' >> ~/.zshrc
source ~/.zshrcLinux
Most Linux distributions work out of the box. For older systems, you may need to install:
# Ubuntu/Debian
sudo apt-get install -y ca-certificates curl gnupg
# Fedora/RHEL
sudo dnf install -y ca-certificates curlWindows
Windows users should use PowerShell or Windows Terminal, not Command Prompt.
Install via PowerShell script (coming soon):
# Run as Administrator
irm https://github.com/codedir-labs/@codedir/mimir-code/releases/latest/download/install.ps1 | iexManual installation:
- Download
mimir-windows.exe - Move to a directory in your PATH (e.g.,
C:\Program Files\Mimir\) - Add to PATH:
- System Properties → Advanced → Environment Variables
- Add directory to PATH variable
Docker on Windows:
Install Docker Desktop and ensure WSL 2 backend is enabled.
Docker Setup (Optional)
For sandboxed code execution, install Docker:
Docker is optional. Mimir works without it, but sandboxing provides additional security.
Updating
npm update -g @codedir/mimir-codeUninstalling
npm uninstall -g @codedir/mimir-codeTo remove all data:
# Remove global config
rm -rf ~/.mimir
# Remove project data
rm -rf .mimirTroubleshooting
Command not found
Solution: Ensure the installation directory is in your PATH.
# Check PATH
echo $PATH
# Find where npm installs global packages
npm root -g
# Add to PATH if needed
export PATH="$(npm root -g):$PATH"Permission denied
Solution: On macOS/Linux, you may need to use sudo or fix npm permissions.
# Fix npm permissions (recommended)
mkdir ~/.npm-global
npm config set prefix '~/.npm-global'
export PATH=~/.npm-global/bin:$PATHDocker not working
Solution: Ensure Docker is running and accessible.
# Check Docker status
docker ps
# Start Docker daemon (Linux)
sudo systemctl start docker
# Or disable Docker in config
# .mimir/config.yml
docker:
enabled: falseAPI key not recognized
Solution: Verify environment variable or config file.
# Check environment variable
echo $DEEPSEEK_API_KEY
# Verify config
cat .mimir/config.yml | grep apiKeyNext Steps
- Configuration - Configure providers and settings
- First Project - Build your first project
- Keyboard Shortcuts - Learn productivity shortcuts
Getting Help
- Installation issues: Check Troubleshooting section
- Report bugs: GitHub Issues
- Community: GitHub Discussions