Astro AI Docs is a documentation template built on Starlight with an Ask AI button next to search. Readers ask a question in plain language and get an answer written from the pages that match, with links to them. Nothing is made up from outside the site.
Retrieval uses the Pagefind index Starlight already builds, so there is no vector database, no indexing job and no server. The AI script loads only when someone opens the dialog, so the site keeps Starlight's Lighthouse scores.
Included: llms.txt and llms-full.txt for AI coding tools, a clean blue design kit with light and dark mode, and the usual Starlight features (sidebar, search, i18n ready, MDX).
Without a key the dialog still opens and tells readers it is not set up; everything else works. Answers come from OneTag AI; every account gets 1,000,000 free tokens and the key is designed to be public. MIT licensed. The same template is also available as examples/docs inside the astro-ai-starter repository, next to a blog and a landing page.







