Lucid Train turns your codebase into architecture diagrams and hands them to Claude Code or Codex as a spec. Free CLI, $3/month desktop app, runs offline.
Researched and fact-checked by Bartu Cavusoglu · Updated November 29, 2026
What Lucid Train is
Lucid Train describes itself as a "systems-design-first coding harness." You point it at a code repository and it draws the system's architecture as a diagram. You can then hand that diagram to a coding agent as a specification, so the agent builds or changes code against an explicit design instead of an open-ended prompt. It is available as a native desktop app for macOS and Windows, with a Linux download, and as a free 6 MB Rust command-line binary.
Who it is for
Lucid Train is aimed at developers who use AI coding agents and want to understand, document or control the structure of what those agents produce. The founder, Arnab Bhattacharya, says he built it because he "was not sure what claude or codex wrote during my vibe coding sessions." It suits solo developers and small teams working on new or existing codebases, engineers onboarding onto an unfamiliar repo, and privacy-conscious users who want to run everything locally.
How it works
Lucid Train reads your repository, in any language according to the site, and generates an architecture diagram. Layout is computed by the ELK layout engine, which positions boxes and routes edges, so the AI model is not responsible for placing elements. The resulting diagram can be passed to a coding agent as the spec for the next change. The harness can drive four external coding agents it detects on your PATH: Claude Code, Codex, Cursor CLI and OpenCode, using whatever account each one is already signed in to. It also ships a bundled engine that can use local Ollama models with no key, OpenRouter with your own key, or any OpenAI-compatible endpoint, which means it can run fully offline against local models.
Key capabilities
Beyond diagram generation, the desktop app adds a Design mode where you describe a page and get self-contained HTML, then click a single element to rewrite only that part. It also includes Code, Audit (listed as a security audit), Dashboards with Grafana debugging, and Connectors, all in one window, and it can open your project in VS Code, Cursor or Zed in a click. An MCP server is listed in the docs. Model calls go straight from your machine to whichever provider you configure, and Lucid Train says it never sees the credentials used by external agents.
Pricing
The CLI is free and open source, with no account required. The desktop app adds Design, Diagram, Audit and Dashboards on top of the CLI and costs $3 per month, or $30 per year billed annually (shown as $2.50 per month, with two months free). A 7-day free trial is available with no card up front. There are no credits or usage fees: you either run local models for free or pay your chosen model provider directly with your own API key or existing subscription.
Limitations
Lucid Train is an early, independent product, and some features such as Audit, Connectors and MCP are only briefly described in the public docs. Signing in with Claude or ChatGPT subscriptions inside the bundled engine relies on endpoints that the site itself says are not officially supported by either vendor. Diagram quality depends on the model you connect, and fully local models may produce weaker results than frontier models. Only four external coding agents are supported, and the harness rejects others.