> ## Documentation Index
> Fetch the complete documentation index at: https://predev.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Agents: start with https://docs.pre.dev/agents.md, which has complete recipes, plan access, polling rules, errors and limits.
> Authenticate with the workspace API key (pdk_…) from Integrations → Built-in, sent as Authorization: Bearer <key>.
> REST API: https://api.pre.dev (OpenAPI: https://docs.pre.dev/api-reference/openapi.json). AI Gateway: https://api.pre.dev/v1, OpenAI-compatible (OpenAPI: https://docs.pre.dev/api-reference/ai-gateway.openapi.json).
> pre.dev MCP server: npx -y @predotdev/mcp setup adds it to every local coding agent with every pre.dev tool plus the user's own Chrome; the hosted server is https://api.pre.dev/mcp. Search these docs over MCP at https://docs.pre.dev/mcp.

# pre.dev documentation

> The Long Horizon Coding Agent, plus APIs for specifications, browser tasks and hundreds of AI models. pre.dev Labs sells verified RL coding tasks to frontier AI labs.

pre.dev is the Long Horizon Coding Agent: it builds software and exposes the pieces behind it as APIs. pre.dev Labs also builds and sells verified RL coding tasks to frontier AI labs for model post-training; see [pre.dev for AI labs](https://predev.mintlify.site/labs/overview.md).

| Product | What it does | Start with |
| - | - | - |
| Coding Agent | Builds, verifies, and publishes apps, in the web workspace or your terminal | [Build your first project](https://predev.mintlify.site/coding-agent/quickstart.md) |
| Architect | Turns a description into a specification with milestones, stories, and architecture | [Generate a spec](https://predev.mintlify.site/architect-agent/quickstart.md) |
| Browser Agents | Runs tasks on websites and returns structured data, or lets your coding agent use your own Chrome | [Run a browser task](https://predev.mintlify.site/browser-agents/quickstart.md) |
| AI Gateway | One OpenAI-compatible API for hundreds of models from every major lab, paid with pre.dev credits | [Call a model](https://predev.mintlify.site/ai-gateway/quickstart.md) |
| Payments and Authentication | Stripe payments and user sign-in, built into every app you build on pre.dev | [Built into every app](https://predev.mintlify.site/coding-agent/built-in.md) |

![Five products and how to reach them. Coding Agent through the web workspace and the CLI, returning pull requests and published apps. Architect and Browser Agents through the API and MCP, returning specs and task results. AI Gateway through the API, returning model responses. Payments and sign-in built into apps made in the web workspace.](https://mintcdn.com/predev/7eUhmIdZncrpx3fC/images/diagrams/product-map-light.svg?fit=max\&auto=format\&n=7eUhmIdZncrpx3fC\&q=85\&s=f08a1bae1fd58e92030731cc40dd454a)

The Coding Agent works in the web workspace and the CLI. Architect and Browser Agents are available over REST, the Node and Python SDKs, and MCP; the AI Gateway over REST. Payments and sign-in come built into apps you create in the web workspace.

## Choose your interface

| Work from | Use | Start with |
| - | - | - |
| A browser | The web workspace for code, plans, previews, and publishing | [Build your first project](https://predev.mintlify.site/coding-agent/quickstart.md) |
| A local repository | The CLI and your existing Git workflow | [Install the CLI](https://predev.mintlify.site/cli/overview.md) |
| Your application | REST, the AI Gateway, or the Node and Python SDKs | [API overview](https://predev.mintlify.site/api-reference/overview.md) |
| Another AI assistant | The pre.dev MCP server, set up with one command | [Connect MCP](https://predev.mintlify.site/architect-agent/mcp-setup.md) |

| Interface | Base URL |
| - | - |
| REST: specifications, browser tasks, and credits | `https://api.pre.dev` |
| AI Gateway | `https://api.pre.dev/v1` |
| Hosted MCP server | `https://api.pre.dev/mcp` |

The public API covers specifications, browser tasks, and AI model calls. For code implementation, start in the web workspace or CLI.

## Build an integration

> **[Get an API key](https://predev.mintlify.site/api-reference/authentication.md)**
>
> Find your key, send it, and check which accounts each interface accepts.

> **[Handle results and errors](https://predev.mintlify.site/api-reference/errors.md)**
>
> Recognize terminal states, recover from failures, and retry safely.

Giving these docs to a coding assistant? Start with the [guide for agents](https://predev.mintlify.site/agents.md) and the OpenAPI files for the [REST API](https://predev.mintlify.site/api-reference/openapi.json) and the [AI Gateway](https://predev.mintlify.site/api-reference/ai-gateway.openapi.json). For plans and usage, see [plans, credits, and pricing](https://predev.mintlify.site/coding-agent/plans-and-credits.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.