Skip to content

OpenDiagram

Self-hostable AI diagram generator for engineers, drawing on an editable Excalidraw canvas

Copyleft (OSI) · AGPL-3.0 AI-native

Listed by , founder & editor

60

Health

Active

Overview

Stars

78

Last commit

2 days ago

Nov 2026

Repository age

5 months

since Jun 2026

Latest version

–

Contributors

–

2 active in 90 days

Releases

0

last 12 months

Language

TypeScript

OpenDiagram turns a plain-English prompt into software architecture diagrams. You describe a system, an AI agent designs it, and the result lands as editable shapes on an Excalidraw whiteboard. It covers system and cloud architecture, sequence diagrams, ER diagrams, flowcharts, and network diagrams.

The AI does not write Mermaid or choose pixels. It emits a typed diagram spec, and a layout engine (ELK) with a themed renderer draws it, with AWS, GCP and Kubernetes icons and orthogonal arrows. You can pick a hand-drawn Sketch theme or a cleaner Classic theme. You refine diagrams by chatting, for example asking it to add a Redis cache, and project context persists across sessions.

You bring your own key for OpenAI, Anthropic, Google or OpenRouter. Keys are encrypted at rest and stay on your instance. The app is built with Next.js and TypeScript, ships with Docker support, and is licensed AGPL-3.0. It is a self-hosted alternative to Eraser and DiagramGPT.

Who it's for

Software engineers documenting system design

You get architecture, sequence and ER diagrams from a prompt, then adjust them on a normal canvas.

Skip if: You need diagrams stored as Mermaid text inside your docs.

Teams that must keep data and API keys on their own infrastructure

You run the whole stack yourself and use your own model provider key.

Skip if: You would rather use a hosted service with no setup.

Eraser users who want a self-hosted option

It covers the same prompt-to-architecture-diagram workflow without a vendor account.

Skip if: You rely on Slack or Confluence integrations or a template library.

The problem it solves

Drawing architecture diagrams by hand is slow, and most AI tools only output Mermaid code that looks generic. OpenDiagram generates styled, editable diagrams from a description and lets you run it on your own server with your own AI key.

Strengths

  • Outputs a typed spec rendered by an ELK layout engine, not Mermaid text
  • Real AWS, GCP and Kubernetes icons on an editable Excalidraw canvas
  • Works with OpenAI, Anthropic, Google or OpenRouter keys you supply
  • Chat-based edits update the diagram in place
  • Docker support and AGPL-3.0 license for self-hosting

Trade-offs

  • No real-time multi-user collaboration
  • No Slack or Confluence integrations
  • No built-in template library
  • Young project with no tagged releases and two recent contributors

OpenDiagram replaces

Self-host OpenDiagram

Self-hostable
Yes
Docker Compose
The repository ships a Compose file

Frequently asked questions

Is OpenDiagram free?

Yes. It is open source under AGPL-3.0. You pay your own AI provider for model usage through your key.

Can I self-host it?

Yes. The project supports Docker and is designed to run on your own infrastructure.

Which AI providers work?

You can use OpenAI, Anthropic, Google or OpenRouter. You choose the model per project.

Does it output Mermaid?

No. The AI produces a typed diagram spec that is rendered as Excalidraw elements.

What does the AGPL mean for me?

You can use and modify it freely. If you offer a modified version to others over a network, you must share your source under the same license.

Similar tools in Diagramming and whiteboard tools

Dia

Diagramming and whiteboard tools

Lightweight offline diagram editor for people who want a Visio-style desktop tool

27 52 40 days ago Slowing GPL-2.0-or-later

Replaces Microsoft Visio

Excalidraw

Diagramming and whiteboard tools

Hand-drawn style virtual whiteboard for sketching diagrams, usable as a React component

136k 16k today Active MIT

Replaces MiroMicrosoft Visio

drawDB

Diagramming and whiteboard tools

Browser-based ER diagram editor that generates SQL for common databases

40k 3.4k 2 days ago Active AGPL-3.0

ChartDB

Diagramming and whiteboard tools

Web editor that turns one query into an editable database schema diagram

23k 1.5k 23 days ago Active AGPL-3.0

Gaphor

Diagramming and whiteboard tools

Desktop modeling tool for UML, SysML, RAAML and C4 diagrams, scriptable in Python

2.3k 247 7 days ago Active Apache-2.0

Replaces Microsoft Visio