Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

Kroki CLI

$ kroki Official Med Risk
Yuzutech · Design & Docs · MIT · macos / linux / windows

Kroki CLI (kroki) converts PlantUML, Mermaid, Graphviz, BPMN, D2, Structurizr, and 20+ diagram languages into SVG, PNG, PDF, or JPEG using a Kroki server. It supports stdin/stdout pipelines (kroki convert - -t mermaid -o -), though by default it sends diagram source to public https://kroki.io unless KROKI_ENDPOINT or kroki.yml points to a self-hosted instance.

FCRS-1.0 Score
77 /100
Good
Medium Confidence
Zero-Friction Install
go install github.com/yuzutech/kroki-cli@latest
CLI vs MCP Decision CLI Preferred vs MCP

Single kroki convert command renders PlantUML, Mermaid, Graphviz, and BPMN from local files or stdin without wrapping each engine in separate MCP servers.

Agent-Readiness Checklist

— JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 19 / 25

Clean non-interactive kroki convert supporting stdin (-), stdout (-o -), -t, -f, and KROKI_ENDPOINT, though no --json metadata flag.

  • Stdin/stdout (- and -o -) plus explicit -t / -f flags
  • No JSON diagnostic output
Trust & Safety 16 / 25

Transmits diagram source code to external https://kroki.io by default, creating an unintended data-egress risk on confidential architecture diagrams unless KROKI_ENDPOINT is self-hosted.

  • Default endpoint sends diagram payloads to public kroki.io
Setup & Portability 14 / 15

Single zero-dependency Go binary without needing local Java/PlantUML, Chromium/Mermaid, or Graphviz installed.

  • Single binary via go install or GitHub releases across OSes
Utility & Efficiency 13 / 15

Supports 20+ diagram engines (PlantUML, Mermaid, Graphviz, D2, BPMN, Excalidraw, Vega) behind one uniform CLI.

  • Single unified CLI replacing dozens of language-specific renderers
Maintenance & Lineage 8 / 10

Official Yuzutech (yuzutech/kroki-cli) project under MIT.

  • Official Kroki organization repository
Docs & Verifiability 7 / 10

Clear README usage and configuration examples at yuzutech/kroki-cli and kroki.io.

  • Official docs in GitHub README and kroki.io

Security, Auth & Guardrails

Auth Modes
No Auth Config File
Credential Storage

Public https://kroki.io requires no auth; custom/private Kroki endpoints are configured via KROKI_ENDPOINT env var or kroki.yml.

Side Effects
Read-Only Local Write
Cost & Quotas

CLI and Kroki server are open-source (MIT) and free; public kroki.io is hosted free with fair-use limits.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# Kroki CLI Agent Rules
- Warning: By default `kroki` sends diagram source text over HTTPS to `https://kroki.io`; set `KROKI_ENDPOINT` to a local/self-hosted server for proprietary architectures.
- Use `-t <type> -f svg -o <out.svg>` explicitly for predictable file output.
- Check `KROKI_TIMEOUT` when rendering large diagrams.

Agent-Ready Command Recipes

Safe Read-Only Queries

Check Kroki CLI version
kroki version

Prints the installed kroki CLI version without making network calls.

Stream Mermaid SVG conversion to stdout
kroki convert - -t mermaid -f svg -o - < diagram.mmd

Reads diagram text from stdin and prints rendered SVG to stdout (-o -) without writing disk files.

Controlled Writes & Previews

Convert PlantUML diagram to SVG file
kroki convert diagram.puml -t plantuml -f svg -o out.svg

Sends diagram.puml to the configured Kroki endpoint and writes out.svg.

Strengths for Agents

  • + Unified Go binary rendering 20+ diagram formats without installing Java, Chromium, or Graphviz locally.
  • + Clean stdin/stdout (- / -o -) and KROKI_ENDPOINT self-hosting support.

Caveats & Pitfalls

  • ! Sends diagram text to public https://kroki.io by default—unsafe for confidential diagrams without setting KROKI_ENDPOINT to a private server.
  • ! Requires network access to a Kroki server (cannot render offline standalone).

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI