Back to MarketplaceOpen Live Demo

$49
OpenDoc AI
Local-first CLI tool that auto-generates Markdown docs & Mermaid.js diagrams from your codebase using Ollama.

Type
Tech stack
Documentation
Full
Setup, architecture, and how the pieces fit together.
Maintenance
None
Sold as-is. No further updates from the Builder.
Description
OpenDoc AI
Local-first CLI documentation generator — scans your codebase and uses a local Ollama LLM to produce Markdown architecture and API reference docs, including Mermaid.js diagrams.
Built on top of OpenCode.
Features
- ✅ 100 % local — works offline, no data leaves your machine
- ✅ .gitignore-aware — respects your existing ignore rules
- ✅ Multi-language — Python (AST), JavaScript/TS, Go, Rust, Java, Ruby, PHP, C/C++, C#, Swift, Kotlin
- ✅ Mermaid diagrams — the LLM is prompted to include flowcharts, class diagrams, and sequence diagrams
- ✅ Beautiful CLI — progress spinners via
rich
Requirements
-
Ollama with at least one code model pulled, e.g.:
-
Python 3.10+
Installation
Or from source:
Usage
Output is written to ./docs/Architecture.md and ./docs/API_Reference.md.
Environment variables
| Variable | Default | Description |
|---|---|---|
OPENDOC_MODEL | deepseek-coder:1.5b | Override the LLM model |
How it works
- Scan — walks the directory tree, parses
.gitignore, and extracts classes, functions, imports using AST (Python) or regex (other languages). - Prompt — the code structure is compacted and sent to the local Ollama model with a strict system prompt that demands Mermaid diagrams.
- Write — the LLM response (JSON with
architectureandapi_referencekeys) is rendered into Markdown files indocs/.
Limitations
- The quality of the generated docs depends heavily on the model used. Small models (1.5B params) produce simpler output; larger models (7B, 13B, 34B) give much richer diagrams and explanations.
- Non-Python languages are parsed with regex, which can miss complex patterns or nested definitions.
- Very large codebases may exceed the model's context window — the scanner truncates the prompt at ~12 000 characters.
License
MIT
Domains
aideveloper-tools
Seller
@user-d35k
1 listing
Reviews
No reviews yet.

Share Listing
$49
Stats
Views3
ListedNov 29, 2026
Trust signals
Government ID