π Multi-Agent Pipeline β’ π Language Agnostic β’ β‘ Recursive Type Analysis
β¨ Say goodbye to manual API documentation! Docutilians uses LLM-powered multi-agent architecture to automatically generate accurate OpenAPI specs from your source code.
Docutilians is a CLI tool that automatically generates OpenAPI specifications from your source code using LLM. No
more manual documentationβjust point to your project and get a complete openapi.yaml.
| Feature | Description |
|---|---|
| π Language Agnostic | Supports Kotlin, Java, TypeScript controllers and more |
| π Auto Type Analysis | Recursively scans DTOs, Enums, and Entities to build complete schemas |
| π€ Multi-Agent Architecture | File Collector β YAML Generator β Aggregator pipeline for higher accuracy |
| π¦ Single Output | Generates a clean, merged openapi.yaml ready for Swagger UI |
| π Built-in Docs Viewer | Generates Scalar HTML for instant API documentation preview |
# Using npm
npm install -g docutilians# Generate OpenAPI spec from your project
docutilians ./target-project
# With options
docutilians ./target-project -o ./docs/openapi -m claude-sonnet-4-5 -k sk-claudekey... -l KO| Option | Description | Default |
|---|---|---|
-k, --claude-api-key |
Anthropic Claude API Key | ANTHROPIC_API_KEY env |
-m, --claude-model |
Model to use (claude-haiku-4-5, claude-sonnet-4-5) |
claude-haiku-4-5 |
-o, --openapi-output |
Output directory for generated files | .docutilians/openapi |
-l, --language |
Language for prompts (EN, KO) |
EN |
βββββββββββββββββββββββββββββββββββββββββββ
β 1. Project Scanner β
β Discovers controller files β
ββββββββββββββββββββββ¬βββββββββββββββββββββ
βΌ
βββββββββββββββββββββββββββββββββββββββββββ
β 2. File Collector Agent β
β Gathers referenced DTOs & Enums β
ββββββββββββββββββββββ¬βββββββββββββββββββββ
βΌ
βββββββββββββββββββββββββββββββββββββββββββ
β 3. YAML Generator Agent β
β Creates OpenAPI YAML per controller β
ββββββββββββββββββββββ¬βββββββββββββββββββββ
βΌ
βββββββββββββββββββββββββββββββββββββββββββ
β 4. Aggregator β
β Merges partials & generates HTML β
ββββββββββββββββββββββ¬βββββββββββββββββββββ
βΌ
openapi.yaml + index.html β
.docutilians/openapi/
βββ partials/
β βββ chat_controller.yaml
β βββ user_controller.yaml
β βββ order_controller.yaml
βββ openapi.yaml # Final merged spec
βββ openapi.html # Scalar API docs viewer
π‘ Tip: Open
index.htmldirectly in your browser β no server required!
MIT License β see the LICENSE file for details.
Made with β€οΈ by the Docutilians Team

