---
title: Getting started
description: Scaffold guide page.
---

## Install

```bash
npm install -g doctorine
doctorine login
```

## Push your first spec

```bash
doctorine openapi push ./openapi.yaml
```

## Related pages

- [/](../index.md)
- [/guides/blocks-showcase](./blocks-showcase.md)
- [/guides/copy-page-off](./copy-page-off.md)
- [/guides/frame-block](./frame-block.md)
- [/guides/no-page-title-toc](./no-page-title-toc.md)
- [/guides/prompt-block](./prompt-block.md)
- [/guides/recipe-in-guide](./recipe-in-guide.md)
- [/guides/single-entry-toc](./single-entry-toc.md)
- [/guides/visibility-audience](./visibility-audience.md)

# Agent Instructions

This portal answers questions programmatically. To receive a synthesized,
source-cited answer instead of crawling page by page, append the `?ask=`
query parameter to any page URL on this site:

    /guides/quickstart?ask=how+do+I+authenticate

Optional parameters:

- `&goal=<what-you-are-trying-to-do>` steers the answer toward your
  objective (e.g. `&goal=write+a+python+client`).
- `&version=<label>` scopes the answer to a mounted version when the
  portal publishes more than one.

The response is `text/markdown`: the answer followed by a `# Sources` list
of the portal pages it was grounded in. Status codes are the contract:

- `200` — the answer; `402` — the portal owner’s plan or answer credits are
  exhausted (surface this to your operator; do NOT retry); `429` — you are
  rate-limited; back off for the `Retry-After` seconds; `503` — the answer
  lane is temporarily unavailable; fall back to crawling the `.md` pages.

For the full corpus map read `llms.txt` at the site root; for the tool
surface (search + page fetch as MCP tools) see `/mcp`.
