Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion agents.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Projects built on pre.dev already have the key as `PREDEV_API_KEY`. It spends th

## Plan access

Browser tasks and AI Gateway calls work on every plan, Free included: a Free personal account can spend 2 credits on browser tasks, and a Free workspace 5 credits on AI calls, before it needs a plan. Specifications and the MCP server need Premium, Pro, Team or Enterprise; Plus and team workspaces without a plan get 3 trial specifications. The MCP memory tools work on every plan, Free included, and use no credits. See [API and MCP access](/coding-agent/plans-and-credits#api-and-mcp-access).
Browser tasks and AI Gateway calls work before you subscribe, up to a small allowance: 2 credits on browser tasks for a personal account and 5 credits on AI calls for a workspace. Specifications and the MCP server need Premium, Pro, Team or Enterprise; Plus and team workspaces without a plan get 3 trial specifications. The MCP memory tools work on every plan, Free included, and use no credits. See [API and MCP access](/coding-agent/plans-and-credits#api-and-mcp-access).

## Choose an interface

Expand Down
2 changes: 1 addition & 1 deletion ai-gateway/overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ The pre.dev AI Gateway is an OpenAI-compatible API for hundreds of models from e
Call models from apps built on pre.dev, with the key already in place.
</Card>
<Card title="Pricing" icon="coins" href="/coding-agent/plans-and-credits#ai-gateway-calls">
Credits per call, the free allowance, and what happens when credits run out.
Credits per call, the allowance before you subscribe, and what happens when credits run out.
</Card>
<Card title="Models" icon="list" href="/ai-gateway/models">
Browse the catalog with credit prices attached.
Expand Down
2 changes: 1 addition & 1 deletion ai-gateway/quickstart.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Send one chat completion to `deepseek/deepseek-v4.1-flash-1017` and read the cre

<ApiKeyLocation />

Store it as `PREDEV_API_KEY`. A Free workspace can spend 5 credits on gateway calls in total, whatever its balance; after that, calls return `402` until the workspace subscribes. See [authentication](/api-reference/authentication) and [pricing](/coding-agent/plans-and-credits#ai-gateway-calls).
Store it as `PREDEV_API_KEY`. A workspace without a plan can spend 5 credits on gateway calls in total, whatever its balance; after that, calls return `402` until the workspace subscribes. See [authentication](/api-reference/authentication) and [pricing](/coding-agent/plans-and-credits#ai-gateway-calls).

## Send a request

Expand Down
8 changes: 4 additions & 4 deletions api-reference/authentication.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ Authentication and feature access are separate checks.

| Interface | Accepts |
| --- | --- |
| Browser Agents REST | Every account, including Free. Task submission then applies its own trial, credit, and queue checks. |
| AI Gateway | Every account, including Free. Free workspaces have a small lifetime allowance for gateway calls. |
| Architect REST and the MCP server | Personal accounts on a paid plan, and team workspaces. The MCP server also accepts Free accounts, for the memory tools |
| Browser Agents REST | Every account, with a small allowance before you subscribe. Task submission then applies its own trial, credit, and queue checks. |
| AI Gateway | Every account. A workspace without a plan has a small lifetime allowance for gateway calls. |
| Architect REST and the MCP server | Personal accounts on a paid plan, and team workspaces. The MCP server also accepts accounts without a plan, for the memory tools |

A Free account can call Browser Agents, the AI Gateway, and the MCP memory tools, while an Architect REST call returns `401` and the other MCP tools return an error result with a link to subscribe. Which plans can generate specifications is covered in [plans, credits, and pricing](/coding-agent/plans-and-credits#api-and-mcp-access). Read the response message for the required action.
An account without a plan can call Browser Agents, the AI Gateway, and the MCP memory tools, while an Architect REST call returns `401` and the other MCP tools return an error result with a link to subscribe. Which plans can generate specifications is covered in [plans, credits, and pricing](/coding-agent/plans-and-credits#api-and-mcp-access). Read the response message for the required action.

## Account and team context

Expand Down
2 changes: 1 addition & 1 deletion api-reference/errors.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ Errors from `https://api.pre.dev/v1` use the OpenAI error shape with an extra `p
| `missing_api_key` | `401` | No `Authorization` or `x-api-key` header | | Send the key; see [authentication](/api-reference/authentication) |
| `invalid_api_key` | `401` | Key unknown, or rotated more than 15 minutes ago | | Copy the current key from **Integrations → Built-in** |
| `insufficient_credits` | `402` | The balance cannot cover the call; nothing was sent to the model | `credits_remaining`, `estimated_credits`, `topup_url` | Add credits or enable auto-recharge |
| `subscription_required` | `402` | A Free workspace used its 5-credit gateway allowance | `credits_remaining`, `trial_credits_used`, `topup_url` | Subscribe |
| `subscription_required` | `402` | A workspace without a plan used its 5-credit gateway allowance | `credits_remaining`, `trial_credits_used`, `topup_url` | Subscribe |
| `not_found` | `404` | Unknown path, or a file, job, response, or generation that belongs to another workspace, including one a request refers to; nothing ran. On `GET /v1/generation`, also a call that recorded no stats (a failed call, for example) or a streamed call that is still running | | Check the path and id; look up a streamed call after its stream ends |
| `not_ready` | `404` or `502` | `GET /v1/generation` found the call, but its stats are not available yet (`404`) or could not be read (`502`) | | Retry in a few seconds |
| `rate_limit_exceeded` | `429` | More than the per-minute request limit | `retry_after` | Wait `Retry-After` seconds, then retry |
Expand Down
2 changes: 1 addition & 1 deletion architect-agent/mcp-setup.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ With the local server, try [your own Chrome](/browser-agents/local):
List my Chrome profiles and the tabs I have open.
```

Tool execution uses your account's credits and access. Connecting a server does not change your plan. A Free account can use browser REST, the local Chrome tools, and the memory tools, but not the other hosted tools; see [authentication](/api-reference/authentication#which-accounts-each-interface-accepts).
Tool execution uses your account's credits and access. Connecting a server does not change your plan. An account without a plan can use browser REST, the local Chrome tools, and the memory tools, but not the other hosted tools; see [authentication](/api-reference/authentication#which-accounts-each-interface-accepts).

## Connection lifecycle

Expand Down
6 changes: 3 additions & 3 deletions browser-agents/local.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ Two tools use your pre.dev account to understand the page, through the key saved

### Credits

Among the Chrome tools, plain-words actions are the only ones that call pre.dev. Each one costs a small fraction of a credit. Free workspaces get 10 credits of plain-words actions, enough for hundreds of them, separate from the AI Gateway trial. When they run out, your agent tells you and offers to open the billing page in your Chrome so you can subscribe; every other tool keeps working. They share the [rate limits](/coding-agent/plans-and-credits#limits) of your other API calls. Every other Chrome tool runs on your computer, never calls pre.dev, and is free.
Among the Chrome tools, plain-words actions are the only ones that call pre.dev. Each one costs a small fraction of a credit. Before you subscribe, a workspace gets 10 credits of plain-words actions, enough for hundreds of them, separate from the AI Gateway trial. When they run out, your agent tells you and offers to open the billing page in your Chrome so you can subscribe; every other tool keeps working. They share the [rate limits](/coding-agent/plans-and-credits#limits) of your other API calls. Every other Chrome tool runs on your computer, never calls pre.dev, and is free.

<CreditValue />

Expand Down Expand Up @@ -378,8 +378,8 @@ Browser Agents Local drives your real, signed-in Chrome. Read this before you tu
| Another server already uses the name `predev` | Setup leaves it alone and registers this one as `pre-dev` |
| You had the hosted pre.dev MCP or an older Browser Agents Local install (`chrome` or `predev-chrome`) | Setup replaced it. This server carries all of its tools |
| Codex says a tool call timed out | Run `setup`, which sets `tool_timeout_sec = 900`, or set it in `~/.codex/config.toml` |
| A plain-words action returns `402` with `subscription_required` | The free plan's 10 credits of plain-words actions are used up. Subscribe with the link in the error; your agent can open it in your Chrome |
| A plain-words action returns `402` with `insufficient_credits` | Your workspace is out of credits. Open the link in the error: on the free plan, subscribe; on a paid plan, add credits or turn on auto-recharge |
| A plain-words action returns `402` with `subscription_required` | The 10 credits of plain-words actions before subscribing are used up. Subscribe with the link in the error; your agent can open it in your Chrome |
| A plain-words action returns `402` with `insufficient_credits` | Your workspace is out of credits. Open the link in the error: without a plan, subscribe; on a plan, add credits or turn on auto-recharge |
| A plain-words action returns `429`, rate limited or busy | Wait a few seconds and retry, or use `chrome_snapshot` refs with `chrome_click` and `chrome_type` |
| Anything else | Run the [setup check](#check-your-setup) and read `~/.predev/mcp/predev-mcp.log` |

Expand Down
4 changes: 2 additions & 2 deletions coding-agent/building/publish.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ Set access in the Publish sheet. It applies to both links Share offers, the publ

| Plan | Published app |
| --- | --- |
| Free and Plus | Stays live for 7 days, with a small "Built on pre.dev" badge. Republishing starts a new 7-day window. |
| Plus | Stays live for 7 days, with a small "Built on pre.dev" badge. Republishing starts a new 7-day window. |
| Premium, Pro, Team, and Enterprise | Stays live with no badge, and can use a custom domain |

When a free window ends, the address shows a paused page until you republish.
When a 7-day window ends, the address shows a paused page until you republish.

## What gets published

Expand Down
9 changes: 4 additions & 5 deletions coding-agent/plans-and-credits.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,13 @@ Check your balance with `/balance` in the workspace or CLI.

| Plan | Monthly | Annual | Credits | Adds |
| --- | --- | --- | --- | --- |
| Free | $0 | $0 | 20 a month | Coding agent in the browser and terminal, browser agents, publishing for 7 days |
| Plus | $10 | $99 | 100 a month | More monthly credits |
| Premium | $49 | $499 | 500 a month | Model selection, published apps that stay live, custom domains |
| Pro | $199 | $1,999 | 2,500 a month | More monthly credits |
| Team | $499 | $4,990 | 5,000 a month, pooled | Unlimited team seats |
| Enterprise | Custom | Custom | Per agreement | A dedicated solutions engineer |

Each plan includes everything in the plans above it. A team workspace without a plan gets its 20 free credits once, not every month. See [pricing](https://pre.dev/pricing) for current offers, and manage your plan, top-ups, and auto-recharge in **Billing**.
pre.dev is paid only: building with the agent starts with Plus. Each plan includes everything in the plans above it. See [pricing](https://pre.dev/pricing) for current offers, and manage your plan, top-ups, and auto-recharge in **Billing**.

## What uses credits

Expand Down Expand Up @@ -55,7 +54,7 @@ Worked example: a model whose row lists `credits_per_m_input: 20` and `credits_p

Non-streaming responses report the charge in `x-predev-credits-charged` and the balance in `x-predev-credits-remaining`. [`GET /v1/usage`](/ai-gateway/api/usage) breaks the last 1 to 90 days down by model and path.

**Free allowance.** A Free workspace can spend 5 credits on gateway calls in total, whatever its credit balance. After that, every call returns `402` with code `subscription_required` until the workspace subscribes.
**Before you subscribe.** A workspace without a plan can spend 5 credits on gateway calls in total, whatever its credit balance. After that, every call returns `402` with code `subscription_required` until the workspace subscribes.

**Out of credits.** A workspace without enough credits for a call gets `402` with code `insufficient_credits` before anything is sent to the model, so nothing is generated or charged. Turn on auto-recharge in billing to keep a live app running when the balance would otherwise reach zero. See [AI Gateway errors](/api-reference/errors#ai-gateway-errors).

Expand All @@ -76,6 +75,6 @@ For integrations, [GET /credits-balance](/architect-agent/api/credits-balance) r

## API and MCP access

The Architect API and the MCP server are included with the Premium, Pro, Team, and Enterprise plans. Plus accounts, and team workspaces without an active plan, can connect and generate 3 specifications as a trial; after that, generation returns `403`. Free accounts cannot authenticate to the Architect API. They can connect to MCP for the [memory tools](/mcp/tools#memory_list), which work on every plan and use no credits; the other MCP tools answer with a link to subscribe.
The Architect API and the MCP server are included with the Premium, Pro, Team, and Enterprise plans. Plus accounts, and team workspaces without an active plan, can connect and generate 3 specifications as a trial; after that, generation returns `403`. Accounts without a plan cannot authenticate to the Architect API. They can connect to MCP for the [memory tools](/mcp/tools#memory_list), which work on every plan and use no credits; the other MCP tools answer with a link to subscribe.

Browser Agents REST and the AI Gateway accept every account, including Free. See [authentication](/api-reference/authentication) for how each interface checks keys and [errors and retries](/api-reference/errors) for access errors.
Browser Agents REST and the AI Gateway accept every account, with a small allowance before you subscribe. See [authentication](/api-reference/authentication) for how each interface checks keys and [errors and retries](/api-reference/errors) for access errors.
Loading
Loading