Skip to content

feat(console): redirect /llms.txt to the docs index - #56594

Merged
kitlangton merged 1 commit into
devfrom
root-llms-txt
Oct 17, 2026
Merged

kitlangton merged 1 commit into
devfrom
root-llms-txt

Conversation

@kitlangton

Copy link
Copy Markdown
Contributor

Why

AI tools and agents look for llms.txt at the site root, but https://opencode.ai/llms.txt returns 404. The docs publish one at /v2/llms.txt, listing every v2 docs page.

What Changes

Request Before After
GET /llms.txt 404 301 → /v2/llms.txt

Verification

cd packages/console/app && bun run typecheck
bunx vite dev --port 5199
curl -s -o /dev/null -w "%{http_code} %{redirect_url}\n" http://[::1]:5199/llms.txt

The local dev server returns 301 to /v2/llms.txt, which returns 200 text/plain on opencode.ai.

@opencode-agent opencode-agent Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No problems found. Production https://opencode.ai/llms.txt returns 404 today, and /v2/llms.txt serves the docs index. On a local console dev server, /llms.txt (and /zh/llms.txt) now return 301 → /v2/llms.txt. typecheck passes in packages/console/app. The route follows the same pattern as the other redirect routes in the folder.

Public API: unchanged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant