llms.txt for Next.js

Generate a Next.js route that serves /llms.txt.

Result
—

Plugsky is OpenAI-compatible with flat-rate plans — see pricing or start on the free plan (2 free models, no card).

What the How to Add llms.txt to Your Next.js Site | Step-by-Step does

This page is a short step-by-step guide for Next.js developers adding Plugsky to a site, including the llms.txt use case. It walks through three steps: creating an API key in the dashboard, configuring a client with the Plugsky base URL, and testing and deploying. The examples use an OpenAI-compatible client, so the same pattern works with other tools. No account is needed to read the guide; building with the API requires a key.

How to use it

  1. Read the steps on the page in order.
  2. Sign up and generate an API key from the dashboard.
  3. Point your client at the Plugsky base URL with that key.
  4. Run your existing OpenAI SDK code unchanged.
  5. Test streaming and tool calls, then deploy.

FAQ

What is llms.txt?

It is a proposed plain-text file placed at a site root to give language models a curated map of important pages. The idea resembles robots.txt but for readable content rather than crawling permission. Adoption is still early, and not every assistant reads it, so treat it as a supplement to good HTML and structured data.

Do I need special code for Next.js?

The guide's example uses the OpenAI SDK with a custom base URL, which works in any Next.js runtime, including route handlers and server actions. Keep API keys server-side in environment variables and never expose them to the browser.

Is Plugsky's API compatible with OpenAI?

Yes. Change the base URL to the Plugsky endpoint and use your Plugsky key; existing OpenAI SDK code works, including streaming, tool calling and JSON mode. The free plan includes 2 free models, and a 14-day full-access trial is available.

Start Free →

Canonical pricing and plans: plugsky.com/#sec-pricing · Terms · SLA · Docs

Related

How to Build With Plugsky in 5 Minutes

How to Use Plugsky With the Vercel AI SDK

Plugsky Documentation