Open-source Apache 2.0

Issues in. Merge requests out.
On your infrastructure.

Open-source, self-hosted SWE agents for GitLab & GitHub

DAIV is an open-source, self-hosted AI coding agent for GitLab and GitHub that turns issues into merge requests, answers review comments and fixes failing CI. It also plugs into your editor over MCP. You pick the model, and every task runs in an isolated sandbox whose network egress you define.

GitHub
GitLab
70 seconds on GitLab: label an issue, approve the plan, get a merge request with a passing pipeline, then ask for a change on a line.

How it works

From issue to merge request, inside GitLab and GitHub

You label an issue and approve a plan. DAIV writes the code, opens the merge request, watches its CI and fixes failures, and answers review comments.

  1. You label an issue daiv.
  2. DAIV posts a plan on the issue.
  3. You approve it by commenting @daiv proceed.
  4. DAIV opens a merge request with the code.
  5. DAIV watches the merge request's CI and fixes failures.
  6. You review and mention @daiv; DAIV answers the review comments and pushes, which runs CI again.

Why DAIV

Built different

AI coding tools that require a separate app break your flow. DAIV meets you where you already work.

It lives where you already work

Issue to plan to merge request, replies to review comments, and CI fixes all happen inside GitLab and GitHub threads, self-managed GitLab included.

Your infrastructure, your model, your network rules

Run it on your own servers, with any of the built-in LLM providers or your own OpenAI-compatible server, in a sandbox whose egress you define.

Open source, no per-seat pricing

Apache-2.0, with nothing to buy per developer. Read the code, modify it, no black boxes.

Human-in-the-loop

Plans require approval before execution. You review, you decide, DAIV implements.

Secure by default

Sandboxed execution with command policies. Git history mutation is always blocked.

Fully extensible

Custom skills, subagents, MCP servers, per-repo config. Shape DAIV to your team's needs.

Security model

Each layer limits what a run can reach

DAIV acts on issues, comments and code that other people wrote. So the agent works in a sandbox, behind a network allow-list, without holding the credentials it uses.

A sandbox per session

Every command the agent runs executes in a Docker container managed by daiv-sandbox, optionally under gVisor for a stronger boundary against container escape.

No network unless you allow it

The sandbox has no network by default. A sandbox environment can open it with an egress allow-list that blocks every other host; if the egress proxy is unavailable, the run aborts rather than falling back to an open network.

Credentials stay outside the container

A credential for an allowed host, such as a private registry token, is stored encrypted and added to matching requests by the egress proxy, so the agent never sees it.

Short-lived, scoped git tokens

On GitLab, DAIV clones and pushes with a short-lived token scoped to one project (on GitLab.com this needs Premium or Ultimate, otherwise it uses its main token). On GitHub, it uses a short-lived installation token scoped to the one repository.

People stay in charge. On an issue, DAIV writes code only after someone approves its plan, and allowed_usernames in .daiv.yml limits who can trigger it. Prompt injection through an issue, a comment or repository content is still possible: these layers limit what an injected instruction could reach, not whether the agent reads one.

Read the security model Report a vulnerability

Capabilities

More than just code generation

A complete engineering assistant that fits into your existing workflow.

Slash Commands & Skills

Invoke /plan, /code-review, /security-audit from any issue or MR. Built-in skills cover common tasks. Create your own for anything else.

Secure Sandbox

Tests, builds, and linters run in isolated Docker containers. Full shell access for the agent, strict safety policies for you.

MCP Tool Integrations

Connect external services via Model Context Protocol. Sentry error tracking, documentation lookup, or your own custom servers.

Subagents

Specialized agents for exploration vs. execution. The main agent delegates automatically — fast read-only lookups or complex multi-step work.

Multi-provider LLMs

OpenRouter, Anthropic, OpenAI, Google Gemini. Mix providers, swap models, no vendor lock-in.

Jobs API

Trigger agents programmatically via REST. Chain tasks from CI/CD, or integrate with Slack bots.

MCP Endpoint

The inverse direction: DAIV itself is an MCP server. Delegate tasks to it from Claude Code, Cursor, or Codex CLI without leaving your editor.

Scheduled Jobs

Run agents on a recurring basis — hourly, daily, weekly, or custom cron. Automate dependency audits, code scans, and maintenance tasks.

Dashboard

A self-hosted control plane

Every run lands in one place — whether it started from a webhook, the API, your editor, a schedule, or by hand. Pick the model and thinking effort per run.

Sessions

Chat with the agent live, start background runs, and browse the full history in one list — with retries when something needs another pass.

Sandbox Environments

Define a runtime once and reuse it: base image, CPU and memory, network egress policy, and encrypted secrets — scoped to the repositories you choose.

Notifications

Know the moment work finishes, in the app, by email, in Rocket Chat or on Telegram.

Merge Metrics

Track code velocity with commit-level attribution — what DAIV wrote versus what your team wrote.

FAQ

Questions teams ask first

What do I need to self-host DAIV?
A Linux host with Docker. DAIV runs with Docker Compose or Docker Swarm as a few containers: the app, background workers, a scheduler, PostgreSQL, Redis 8 or later, and the daiv-sandbox service that runs the agent's commands. The Quickstart runs the smallest working setup on one machine and turns a GitLab issue into a merge request in about 15 minutes. Deployment covers a production install.
Which LLM providers and models can I use? Can I run local models?
OpenRouter (the default), Anthropic, OpenAI and Google Gemini, with your own API keys. For local models, an admin can register any OpenAI-compatible server, such as vLLM, llama.cpp, Ollama or LiteLLM, as a custom provider. The agent runs on Claude Sonnet 5.5 by default; you can change the model per repository or per run. DAIV is tested with Claude Sonnet 5.5, Opus 5.5 and Haiku 5.5, GPT-6.1 Sol and GPT-6 Luna, GLM-5.2 through OpenRouter, and Qwen3.8 on a self-hosted vLLM server.
Which Git platforms does DAIV support?
GitLab and GitHub. On GitLab it works with GitLab.com and self-managed instances, as a GitLab user of its own. On GitHub it works with GitHub.com and GitHub Enterprise Server, as a GitHub App you create and install. Issue addressing, answers to review comments, slash commands and CI fixes work on both. The Quickstart uses GitLab; Platform setup covers both. One DAIV install connects to one platform. DAIV does not support Bitbucket, Azure DevOps, Gitea or Forgejo.
What does DAIV cost?
DAIV itself costs nothing: there is no per-seat pricing and no paid tier today. You pay for the servers it runs on and for your LLM provider's usage, billed to your own API keys, or nothing for the model if you run your own. DAIV records the token usage and estimated cost of every run.
Is there a hosted version of DAIV?
No. DAIV runs only on servers you operate, with your own Git platform and LLM provider accounts. The Quickstart sets up a single machine in about 15 minutes.
What is DAIV's license?
Apache-2.0, and it will stay that way. If paid support or hosting is ever offered, it will run the same open-source code, not a separately licensed edition.
What data leaves my infrastructure?
The agent's requests to your LLM provider, which carry issue and comment text and the code it reads; with a model on your own server, none of that leaves. DAIV also calls your GitLab or GitHub. Its web search (DuckDuckGo by default) and web fetch tools, and the built-in Context7 MCP server for library documentation, reach the internet; you can turn each off, or point search at your own SearXNG. The sandbox has no network unless a sandbox environment allows specific hosts. LangSmith tracing and Sentry error reporting are off unless you configure them.

Try DAIV in 15 minutes

The Quickstart runs DAIV on one machine with Docker Compose and turns a GitLab issue into a merge request. For a production install, follow the deployment guide.