openclaw
← All products
Developer Tools

doc-generator

Auto-generate codebase docs via local Qwen. 1000-file repo at $0 vs $30-50 on Claude API.

Get startedSource on GitHub

Launch kit

doc-generator — launch kit

1-liner

Auto-generate codebase docs via local Qwen. 1000-file repo at $0 vs $30-50 on Claude API.

Tweet hook

Mintlify AI is great if you have $20K/yr to spend on docs. For a 5-engineer startup, it's cost-prohibitive.

Built one on local Qwen. 1000-file repo: $0 cost. Same quality on summary tasks.

Stack 🧵

Reddit

  • r/programming: "Self-host docs gen via Qwen"
  • r/devops: "Mintlify alternatives — privacy edition"

Cold-email ICP

  • 5-50 dev startups paying for Mintlify or struggling with stale docs
  • Privacy-sensitive teams (gov / fintech) that need on-prem

Cold-email template

Subject: docs at $0/repo (self-host)

Hi {first} — caught {their open-source / blog post}.

Mintlify AI is $19/seat/mo. For a 10-dev team that's $2.3K/yr just on
docs. We do it on local Qwen — $0 marginal.

DIY MIT-licensed. $99-499/mo managed for the regen-on-PR mode.

Want to run it on your top repo as a free demo?

SEO content

  1. "Mintlify alternatives — self-host edition"
  2. "Privacy-tier docs generation for fintech / gov"
  3. "Diff-aware docs regeneration on PR"

Documentation

doc-generator

Auto-generate (and maintain) documentation from a codebase. Walks files, Qwen-summarizes each, builds a searchable index + Markdown output. Drop-in alternative to Mintlify / GitBook AI features for repos that don't want to send code to cloud LLMs.

Pricing

  • One-shot generation $499 for repos < 500 files
  • Subscription / per-PR docs maintenance $99-499/mo per repo
  • Self-host $0 (open the code; user runs Qwen locally)
  • Privacy-tier $1,499/mo on-prem managed (financial / legal / gov)

Why local Qwen wins here

Big repos = big token volume = expensive on cloud. A 1000-file repo at 8K input + 500 output per file = $30-50 on Claude. Free on local Qwen. Plus, privacy-conscious clients (gov, fintech, legal) won't send code to cloud APIs at all.

Run

cd C:\openclaw-products\doc-generator
python -m venv .venv
.\.venv\Scripts\activate
pip install -e .

docgen build C:\path\to\repo --limit 20    # smoke test on 20 files
docgen build C:\path\to\repo               # full
docgen render docs/index.json --out docs/SUMMARY.md

Roadmap

  • Per-package overview generation (synthesize across files)
  • Diagram synthesis (mermaid)
  • PR-bot mode (refresh affected docs on each merge)
  • Search index (Lunr / Algolia)
  • Mintlify / Docusaurus output formats
  • AST-based dependency-graph (instead of LLM-inferred)