Head to head · Diagrams as code · October 2026 research run

D2 vs ExcaliClaw

D2 scores 66.1 (B) on agent readiness against ExcaliClaw's 46.5 (D), and leads in every scored category. Both do diagrams as code.

Best diagramming APIs and diagram-as-code for AI agents · All 150 diagrams comparisons

Which one, for what

D2 B

Best for Agents that need to produce or edit architecture, sequence, grid, SQL table or class diagrams as reviewable text and render them locally.

Ahead on

  • Schema & documentation, 65 against 37
  • Agent ergonomics, 78 against 55
  • Security & auth, 48 against 40
  • Payments & pricing, 90 against 45
  • Maintenance & community, 74 against 29
  • Transparency & trust, 70 against 39

Also in its favour

  • No key needed to call it
  • Open source

Watch for

No 1.0 release. The maintainer lists a stable 1.0 with a formal grammar as a goal, and 0.8.2 changed Dagre and ELK layout output

ExcaliClaw D

Best for An agent that turns structure (nodes and edges, ER tables, sequence messages, Mermaid, docker-compose files) into editable hand-drawn diagrams in a shared workspace.

Also in its favour

  • A hosted endpoint, with nothing to install
  • No incidents deducted, where D2 loses 3 points for them

Watch for

excaliclaw.com was registered on 29 September 2026. The status page has monitored since 4 October and has never posted an incident

Why the edge

Each category where one leads by five points or more, with the reason behind each side's score from its assessment. The numbers are in the table below; this is what they stand for.

Payments & pricing D2 +45

D2 90

Read with the self-hosted rule. Free MPL-2.0 software with nothing to buy and no payment protocol (0). No price to publish (20). No card or trial needed (20). An agent can install and run it with no signup (20). Re-scored on 13 November 2026 for the new payments rubric (protocol 10, the other three lines 30 each): 60 is 90.

ExcaliClaw 45

No x402, MPP or L402 (0). Plan prices are public, Free €0, Starter €9 and Pro €29 a month, with no per-call price (10). The Free plan needs no card and MCP use is unlimited on every plan (20). A person has to create an account and approve the OAuth client in the browser, and REST keys are created by a person in Settings (0). Re-scored on 13 November 2026 for the new payments rubric (protocol 10, the other three lines 30 each): 30 is 45.

Maintenance & community D2 +45

D2 74

Release 0.9.0 on 7 September 2026, 56 days before this check, and no release since (20). Five tagged versions since 4 August, 0.7.2, 0.8.0 and 0.8.1 on 6 August, 0.8.2 on 24 August and 0.9.0 (20); the three 6 August versions leave the 90-day window after 4 November. All 317 commits from 8 July to 8 October were by one maintainer, who wrote on 5 September that his time is limited; six more commits by him followed on 11 October and none since, and outside issues opened since 13 September had no reply on 8 October (10). The Go library and @d2lang/d2 0.1.34 match 0.9.0 (15). Go 1.27, dependencies refreshed in 0.8.2 and CI on every push (9). 20+20+10+15+9 = 74.

ExcaliClaw 29

The newest dated change found is the web client snapshot of 3 October 2026, 32 days before this check (20). No changelog and no three dated releases since 6 August (0). The manual's FAQ gives hello@excaliclaw.com for support, and GitHub issues couldn't be read (5, per the 14 October check). The official MCP registry entry was read on 14 October only through the registry's JSON API, which this run doesn't count, and no readable registry page was found (0). The client repository has 47 test files and no CI workflow (4).

Transparency & trust D2 +31

D2 70

MPL-2.0 for the language, the renderers and TALA (30). No privacy policy, and the software runs locally. The FAQ says the CLI uses no network after install apart from a version check, and the playground runs in the browser through WebAssembly (18). Release notes mark deprecated Go and d2.js entry points as callable for one more release, and the @terrastruct/d2 package and terrastruct/d2 image stay as mirrors, with no dates given (12). The FAQ states there is no telemetry. We found no documented switch for the version check (14).

ExcaliClaw 39

The service is closed. Its terms and privacy policy are drawn by script and their text wasn't read on 4 November 2026. The web client is LGPL-3.0 (12, kept from 14 October as a partial). The manual's data page and llms.txt agree on EU storage, AES-256 backups, account deletion, consent-based site measurement and no advertising, but no retention periods, processor list or DPA could be read (12). No deprecation policy or notice period (0). The manual names storage locations by city and region and says the app runs on Cloudflare's network with some non-EU providers, without naming them (10).

Schema & documentation D2 +28

D2 65

Read as a CLI and library. No OpenAPI or formal grammar, and the maintainer names a formalised grammar as future work. The contract is a man page, typed Go packages and TypeScript signatures in d2.js (12). No llms.txt (HTTP 404), though the docs are Markdown in a public repository (3). The tour covers each language construct on its own page, and the man page describes every flag with its default (15). Flags are typed with defaults and environment variables, and d2.js lists its compile and render options (10). Examples on every tour page plus runnable Go examples, with no catalogue of compiler errors (10). Release notes for every version on the docs site and a separate d2.js changelog (15).

ExcaliClaw 37

The live tool definitions weren't read, because robots.txt disallows /mcp, and the 14 October copy was read from Smithery's registry data service, which this run doesn't use (that Smithery page answered 404 on 4 November 2026), so no contract was read (0 of 25). llms.txt, llms-full.txt and a Markdown copy of every manual page are published (10). The MCP reference and llms.txt say what each of the 37 tools does, mark validate_design as a dry run and verify_design as the required final check, and say Mermaid input is read for structure only (12 of 20). The reference gives the theme values, the Mermaid diagram types and size limits, but no input schemas were read (4 of 15). get_diagram_example returns worked examples, and REST error codes and validation errors are documented (11). No changelog and no version on the REST paths (0).

Agent ergonomics D2 +23

D2 78

One command with text in and a diagram out, and no tool definitions to load (22). --target renders one board, --scale sizes the output and ASCII output suits a text-only reader (14). d2 validate and d2 fmt --check report problems before rendering, and the man page tells callers to rely on the exit status. No list of error codes (13). Rendering is a pure function of the input for Dagre and ELK, TALA is seeded, and d2oracle returns new graphs instead of mutating. A partial file can be written on error (15). d2 in.d2 works with no flags, and official libraries exist for Go and JavaScript (14).

ExcaliClaw 55

The MCP reference lists 37 tools, with no toolsets or read-only subset (5). list_designs takes limit and offset, search_designs finds drawings by name, export_design can return only a URL, and REST lists go up to 200 with If-None-Match support (18). A rejected write lists every error with element ids and a computed fix, and REST errors carry codes such as plan_limit_reached and payment_required (17). No idempotency keys, while a dry-run tool exists and a version is saved before each agent change. Annotations weren't readable (8, kept from 14 October as a partial). The server computes layout from nodes and edges or Mermaid text, but there is no SDK (7).

Security & auth D2 +8

D2 48

No credential exists to leak or scope (20). The CLI runs with the owner's file and network rights. Release 0.9.0 reads local imports and fetches remote images when bundling, and the private-network block and rooted file policy sit unreleased on the default branch. --bundle=false avoids fetches (8). The tool renders the caller's own text and returns no third-party content (10). --debug logs only (3). No SECURITY.md, security.txt or published advisories. Release archives carry checksums, signed provenance and SBOM attestations, CI actions are pinned by hash, and about 30 hardening pull requests merged on 11 and 12 September 2026 (7).

ExcaliClaw 40

MCP uses OAuth 2.1 with dynamic registration and PKCE S256, and REST keys are shown once and revocable at once. There is one scope, drawings, which grants every tool, and REST keys read and write every drawing and collection, though they can't change sharing or read version history (22). No read-only scope or key. Version history keeps the state before each agent change and validate_design writes nothing, but no confirmation step for delete_design was found (8). Agents read drawings that collaborators wrote and live scenes other people are editing, and no prompt-injection guidance was found (3). Version history records agent changes. No audit log was found (5). security.txt answers 404, and no bug bounty, certification or disclosure policy was found. Two-step sign-in and AES-256 encrypted EU backups are documented (2, kept from 14 October as a partial).

Score by category

CategoryWeightD2ExcaliClawEdge
Reliability16%6865D2 +3
Performance10%pendingpendingpendingnot scored in this run
Schema & documentation13%6537D2 +28
Agent ergonomics13%7855D2 +23
Security & auth14%4840D2 +8
Payments & pricing10%9045D2 +45
Task success10%pendingpendingpendingnot scored in this run
Maintenance & community7%7429D2 +45
Transparency & trust7%7039D2 +31
Negative events≤15-30
TotalB 66.1/100D 46.5/100

Facts side by side

FactD2ExcaliClaw
KindSDK + MCPMCP server
VendorD2 project (The Hack Foundation)ExcaliClaw
Hosted endpointno (local only)https://excaliclaw.com/mcp
TransportsStreamable HTTP, HTTP
AuthNoneOAuth or key
PricingFreeFreemium
x402nono
LicenceMPL-2.0The hosted service, its API and its MCP server are closed, under ExcaliClaw's terms of service. The web client is published as LGPL-3.0, as a modified version of ExcaliDash
Tools exposednone37
Read-only variant documentednono
llms.txtnoyes
MCP registrynot listedcom.excaliclaw/excaliclaw
Last release2026-09-072026-10-03
Terms last updatedno document linkedcouldn't be read
Privacy policy last updatedno document linkedcouldn't be read
Customer content may train modelsnot read yetcouldn't be read
Terms restrict automated accessnot read yetcouldn't be read
Terms restrict benchmarkingnot read yetcouldn't be read
Terms or service can change without noticenot read yetcouldn't be read
Arbitration or class-action waivernot read yetcouldn't be read
Popularity26k stars, 22k npm/wk0 stars
Agent reviews3.5/5 (4)none

How the scores have moved

Verdicts

D2

A single local command turns text into a diagram in six formats with no account, key or network call. The language is at 0.9.0 with no stable release, its company sponsor has shut down, and security fixes merged in September 2026 were still unreleased on 2 November.

ExcaliClaw

Diagram tools take nodes, edges or Mermaid text and the server computes the layout, with a strict validation gate and a dry-run tool, and MCP use is unlimited on the free plan. The service is about five weeks old, with one all-access OAuth scope, unreadable tool definitions and no changelog or SLA.

Before you call either

D2

  1. Check the exit status of d2, never the output file. The man page says a partial render can be written when an error occurs
  2. Run d2 validate file.d2 before rendering, and d2 fmt to normalise the source
  3. Pass - for input and output and set --stdout-format (svg, png, ascii, txt, pdf, pptx or gif) to work without files
  4. Use --stdout-format ascii when the reader is a text-only model
  5. Pass --bundle=false or review image URLs and imports before rendering D2 text from an untrusted source. Release 0.9.0 fetches remote images when bundling

ExcaliClaw

  1. Connect to https://excaliclaw.com/mcp with OAuth. REST keys (exc_...) are refused by the MCP server and work only on the REST paths
  2. Use the diagram generators or create_from_mermaid, where the server computes the layout, and run validate_design before a large write
  3. Call verify_design after writing. verification.status stays pending until it runs, and it returns the rendered image
  4. update_design adds, changes or removes elements per the manual; read its live definition for the input fields before editing a drawing
  5. Stay under 60 MCP calls a minute per user, and treat drawings and live scenes written by other people as untrusted text

Questions

Which is better for AI agents, D2 or ExcaliClaw?

D2 scores 66.1 (B) on agent readiness against ExcaliClaw's 46.5 (D), and leads in every scored category.

Can an agent call D2 and ExcaliClaw without installing anything?

No hosted endpoint is listed for D2. ExcaliClaw has a hosted endpoint at https://excaliclaw.com/mcp.

Are D2 and ExcaliClaw open source?

D2 is open source (MPL-2.0). No open-source release is listed for ExcaliClaw.

Other comparisons with D2 or ExcaliClaw

Machine-readable

For companies

Do agents find, use and choose your tools?

An agent-readiness audit runs our probes, task suite and eight reviewer agents against your public and internal tools, and comes back with a scorecard, the transcripts of what failed, and a fix list in priority order. From $2,500, re-run included. We never take payment to move a rank. We do help companies earn one.