Published · 8 min read
How to create an llms.txt file for your docs
Learn how to create llms.txt for your documentation: what goes in it, how to write or generate one, and how to keep it accurate after each release.
Published · 8 min read
Who owns your docs if your vendor changes pricing or shuts down? Here is how to self-host Thally's MIT-licensed docs engine and where human review fits.
Who owns your docs if your vendor changes its pricing, gets acquired, or shuts down? If the answer isn't "we do, completely," that's the reason to look at an open source documentation platform, self hosted on your own infrastructure. This guide covers what the MIT-licensed engine behind Thally is, how to run it yourself, what the hosted free tier adds, and where human review fits.
It's written for engineering leads at small teams. You want fewer vendors, less lock-in, and docs that don't become a second job.
The engine is the publishing layer: the software that turns your source files into a documentation site. It's the same engine that runs the managed cloud product, and it's available on GitHub under the MIT license. You can host it yourself at any time.
The engine is more than a bare renderer. It includes search, API reference, theming, and a machine-readability layer. You author in MDX and publish one source as HTML, Markdown, JSON, and llms.txt.
MIT is a short license, and it's worth reading the terms rather than a summary. It grants the rights "to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software". The trade-off is in the same text: "THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED".
For a small team, that means:
It's also a license your legal reviewer has probably seen before. The Open Source Initiative reports that the MIT license page drew 1.53M pageviews from 925k visitors in 2025, the most of any license page on its site. That measures interest in the license, not how many projects use it. It does suggest you won't have to explain an unfamiliar license in a procurement review.
Be clear on the boundary before you plan around it. Track, the service that evaluates product changes against your documentation and prepares evidence-backed updates for review, is a separate cloud service. Self-hosting the engine gives you publishing, search, API reference, theming, and machine-readable output. It doesn't give you automated change tracing.
Self-hosting is practical because of where the content lives. Your docs, website, and content remain as source files in Git. The vendor never holds the source, so there's nothing to export.
That changes what "migration risk" means. With content in your repository, moving between self-hosted and managed is a deployment decision, not a content project.
The documented path is short: clone your docs repository and deploy the open-source engine wherever Next.js runs. If your team already ships a Next.js app, you already have a place to put it. Your domain stays under your control either way.
A sensible rollout for a small team looks like this:
If you're starting from existing docs, imports are supported from other common docs tools or a folder of plain Markdown. The import is non-destructive and reversible, so your original source isn't consumed in the process.
Self-hosting isn't free of cost. It moves the cost from a subscription to your team's time. Expect to own:
None of that is exotic for a team that runs its own web app. It is still work, and it competes with product work.
Docs now have two audiences. Your pages need to work for a person reading them and for a tool retrieving them.
The engine handles this from the same source. Two formats matter most:
This also answers a common question: how do you publish machine-consumable docs without making writers learn a complicated workflow? Writers keep writing MDX in Git. The site, Markdown, JSON, and llms.txt outputs are generated from that one source, so there's no second format to maintain by hand.

The moment you connect any docs tool to your repositories, the first question should be: what can it read and what can it write?
If you only self-host the engine, the answer is simple. Your own pipeline builds your own repository on your own infrastructure. No third party needs access.
If you connect the hosted service, the integration is a read-only GitHub App, and content stays in Git. Read-only matters for a small team because it limits the blast radius. An integration that can't write to your code can't change your product.
Before you install any GitHub App, run the same checks:
Self-hosting isn't the only way to start for free. The pricing has three starting points: create one managed documentation site with previews and analytics for free, self-host the MIT-licensed engine, or upgrade for automation, scale, and team controls.
Managed hosting runs on a global edge with SSL, preview deploys, and instant rollback. Those are the same items listed under "what you take on" above. The choice comes down to who operates the site, since the software is the same.
Choose self-hosting when:
Choose the free managed site when:
Starting on one path doesn't close off the other. The pricing page calls managed hosting "a service, not a content lock-in". If you ever stop paying, the site can keep running on the open-source engine, hosted wherever you choose. Because the source is in your repository, switching directions later means changing a deployment. You don't rewrite anything.

A fair question from teams that ship fast: can docs update automatically after a pull request merges, with no manual review step?
Not here. Automation drafts the update, and nothing publishes without human approval. That's deliberate. A docs page that's wrong and confidently published is worse than one that's a day late, especially when AI tools repeat whatever the page says.
What automation removes is the detective work. You don't dig through diffs and tickets to find which pages a merge broke. The update arrives as a pull request with the evidence attached, and a reviewer confirms or rejects it.
On a self-hosted setup, you enforce the same rule with tools you already have:
This is worth doing properly. DORA's research found "a clear link between documentation quality and organizational performance". Its guidance is also clear that documentation has to be actively created and maintained.
Start with the smallest step. Clone your docs repository, deploy the engine somewhere Next.js already runs, and protect the main branch. If the ops work turns out to be more than you want, the free managed site runs the same engine on the same source files.
Published under the Thally editorial policy. Technical conformance is defined in the agent-readiness methodology.
Create a managed site, or use the open-source engine to run Thally yourself.