selfhost.directory

The index of self-hostable projects — ranked, categorized and served with live updates.
Own your data and stop giving it to big tech.

Mira logo

Self-host Mira

v0.10.0

Self-hosted AI code reviewer with your own LLM key

BetaOpen SourceApache-2.0
Updated12 hours ago
LanguagePython
Setup difficultyModerate
Stars
380
Port
8000 (HTTP server for dashboard and webhooks)
Docker
ghcr.io/miracodeai/mira
Mira dashboard showing review activity, severity breakdown, and per-repo drill-downMira dashboard screenshot from README

What is Mira?

Mira is a self-hosted AI code reviewer that automatically reviews pull requests and merge requests on GitHub, GitLab, and Forgejo (including Codeberg). It works with any LLM through OpenRouter — which provides access to Anthropic, OpenAI, Google, DeepSeek, and other models — or through direct integrations with Ollama, vLLM, Together, Groq, Fireworks, and AWS Bedrock. The tool indexes your entire codebase to give the model full project context, runs hourly OSV.dev vulnerability scans across all dependencies, and learns from your team's review patterns to create custom rules automatically. The built-in dashboard provides org-wide package search, dependency blast-radius graphs, per-repo cost tracking, and review health metrics. You deploy it via a Docker image (ghcr.io/miracodeai/mira) backed by SQLite or PostgreSQL, with one-click options for Railway, Fly.io, and Render. Every feature is included in the open-source version under Apache 2.0 with no paid tier or license key required.

Should you self-host Mira?

Mira scores 51/100 on selfhost.directory (how scoring works) and ranks #6 of 10 in Code Review. It has 380 GitHub stars.

It shipped 10 stable releases in the past year. The latest, v0.10.0, came out on 26 October 2026. New versions land roughly every 2 weeks.

Setup is moderate: expect some configuration beyond a single command. An official Docker image is available. It is Apache-2.0-licensed and written mostly in Python.

Its closest alternative on selfhost.directory is openhands (87/100, 92 094 stars). It scores higher overall, so compare the two before you pick. See Mira vs openhands side by side.

Features

  • AI-powered inline PR comments
  • Cross-chunk and cross-file deduplication
  • Cross-PR overlap detection
  • Custom review rules
  • Dashboard with analytics
  • Dependency blast-radius graphs
  • Full-repo code indexing
  • GitHub, GitLab, and Forgejo support
  • Learning loop
  • Model-agnostic LLM support
  • Multi-file reasoning
  • Org-wide package search
  • PR walkthroughs and summaries
  • Streaming reviews
  • Vulnerability Scanning

Mira README

How to configure Mira

  • ADMIN_PASSWORDDashboard admin password

    Dashboard admin password

  • DATABASE_URLPostgreSQL connection string (optional, defaults to SQLite)

    PostgreSQL connection string (optional, defaults to SQLite)

  • MIRA_DASHBOARD_URLPublic URL of the Mira dashboard

    Public URL of the Mira dashboard

  • MIRA_FORGEJO_TOKENForgejo/Codeberg access token

    Forgejo/Codeberg access token

  • MIRA_FORGEJO_WEBHOOK_SECRETForgejo/Codeberg webhook secret

    Forgejo/Codeberg webhook secret

  • MIRA_GITHUB_APP_IDGitHub App numeric ID

    GitHub App numeric ID

  • MIRA_GITHUB_PRIVATE_KEYGitHub App private key (PEM format)

    GitHub App private key (PEM format)

  • MIRA_GITLAB_TOKENGitLab group or project access token with api scope

    GitLab group or project access token with api scope

  • MIRA_GITLAB_WEBHOOK_SECRETGitLab webhook secret

    GitLab webhook secret

  • MIRA_INDEX_DIRDirectory for storing indexes (SQLite mode)

    Directory for storing indexes (SQLite mode)

  • MIRA_MODELDefault LLM model (fallback, mira.yaml recommended)

    Default LLM model (fallback, mira.yaml recommended)

  • MIRA_WEBHOOK_SECRETWebhook secret for GitHub/GitLab/Forgejo

    Webhook secret for GitHub/GitLab/Forgejo

  • OPENROUTER_API_KEYYour OpenRouter API key for LLM access

    Your OpenRouter API key for LLM access

Mira releases & version history

More in Code Review

Rate this project

Click to rate — no account needed.

0 comments

Posting as guest
Loading comments…