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.
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.
- You label an issue
daiv. - DAIV posts a plan on the issue.
- You approve it by commenting
@daiv proceed. - DAIV opens a merge request with the code.
- DAIV watches the merge request's CI and fixes failures.
- 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.
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.
How it compares
Pick the tool that fits your team
DAIV is for teams that want one agent in their GitLab or GitHub threads, running on their own servers, with the model and network rules they choose, and a dashboard, MCP endpoint and scheduled jobs in the same deployment.
DAIV and GitHub Copilot cloud agent
Copilot's cloud agent is built into GitHub and needs no infrastructure of your own. If your code is on GitHub and you already pay for Copilot, start there.
DAIV and GitLab Duo Agent Platform
GitLab Duo builds agents into GitLab itself. If your GitLab subscription already includes it, try it first.
DAIV and Claude Code in CI
Claude Code in CI runs Anthropic's agent inside your own pipelines, if you want Claude in CI rather than a long-running service.
DAIV and OpenHands
OpenHands is also open source and self-hostable, with a larger community and a general-purpose agent that goes beyond Git workflows.
FAQ
Questions teams ask first
What do I need to self-host DAIV?
Which LLM providers and models can I use? Can I run local models?
Which Git platforms does DAIV support?
What does DAIV cost?
Is there a hosted version of DAIV?
What is DAIV's license?
What data leaves my infrastructure?
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.