SmartDocs
Write docs in Markdown. Add your API key. Get AI chat on every page.
SmartDocs is an open-source Markdown documentation framework with built-in AI chat. It's simple, self-hosted, and respects your privacy—your docs, your API key, your infrastructure.
✨ Features
- Markdown-native — write in Markdoc, organized by folders
- AI chat on every page — readers ask questions, get answers from your docs
- Bring your own LLM — OpenAI, Anthropic, Ollama, any OpenAI-compatible endpoint
- Self-hosted — zero vendor lock-in, deploy anywhere
- Your API key stays yours — server-side only, never touches the browser
🚀 Get Started
npx smartdocs init my-docs cd my-docs echo "SMARTDOCS_API_KEY=sk-..." > .env npm run dev
🔗 Quick Links
- Quickstart Guide — set up your first docs site
- Configuration Guide — configure providers and settings
- API Reference — CLI commands and deployment
- How the AI Works — graph-backed retrieval explained
- Karpathy's LLM Wiki — the inspiration behind SmartDocs