# Unclaimed instances

> Start building with no Pontive account. An unclaimed development instance works at once, is deleted after 7 days, and moves intact into your workspace when you claim it.

Source: https://www.pontive.com/docs/unclaimed-instances

An **unclaimed instance** is a development instance that nobody owns yet. A coding agent, the
`pontive` CLI or pontkit's dev server creates one with no Pontive account, writes its credentials into
your project, and your app signs people in on your machine straight away. When you want to keep it,
you sign in to Pontive (or sign up) and **claim** it into a workspace. Nothing in your app changes when
you do: the same issuer, app, keys and users keep working.

An instance nobody claims is deleted, with its users, **7 days** after it was created.

## Create one [#create-one]

**With the CLI** (Node 20 or later), in your app's directory:

```sh
npx pontive@latest init
```

When you are not signed in to Pontive, `init` creates an unclaimed instance and writes its credentials
to `.env.local` and `.pontive/keyless.json`, both added to `.gitignore`. In a coding agent's session
it runs without prompts and prints JSON. `--region us|eu|au` chooses the region; otherwise it is the
region nearest you.

**With pontkit's dev server:** a Next.js app on `@pontive/pontkit-nextjs` (or a server on
`@pontive/pontkit-server`) running `npm run dev` with no `PONTIVE_ISSUER` creates one on first start
and writes the same files. This happens only when `NODE_ENV` is `development`; `PONTIVE_KEYLESS=0`
turns it off, and a production build never does it.

**With the API**, for an agent without a shell CLI: `POST https://api.pontive.com/v1/unclaimed-instances`,
with no credential. [`/auth.md`](https://pontive.com/auth.md) shows the whole call, including how to
receive the secrets encrypted to a key the agent generates.

The instance gets a `b2c` project (or `b2b` if asked) with one development instance, one app with
loopback redirect URIs, and a `developer` secret key named `keyless`.

## How you are told it is unclaimed [#how-you-are-told-it-is-unclaimed]

| Where | What |
| --- | --- |
| Your app, in the browser | pontkit shows a banner: "Unclaimed development instance. Pontive deletes it on *date*, with its users. Claim it to keep it." From 24 hours before deletion it cannot be dismissed. |
| Pontive's hosted sign-in pages | A ribbon: "Development instance · unclaimed · deleted on *date*". |
| API responses | Every response to the instance's credentials carries `Sunset: <date>` (RFC 8594) and `Link: <https://www.pontive.com/docs/unclaimed-instances>; rel="sunset"`. |
| The CLI | `npx pontive status` shows the deletion date, or that it is claimed. |
| The frontend runtime config | `unclaimed: { "expires_at": "…" }`, or `null` once claimed. |

There is no email: nobody's address is known until the claim.

## Limits [#limits]

An unclaimed instance has the **Free plan's** features and caps (for example 10,000 monthly active
users, 2 apps, 5 organizations), applied to the instance on its own, and these limits on top:

| Limit | Value |
| --- | --- |
| Lifetime | 7 days from creation, then deleted with everything in it. Never extended: claiming is the only way to keep it |
| Creations per caller | 3 per IP address per rolling 24 hours (an IPv6 /64 counts as one address), and a daily ceiling per network. Beyond it: `429 unclaimed_instance_limit` with `Retry-After` |
| Instances | Its one development instance. No production instance and no second instance until it is claimed |
| Redirect URIs, allowed origins | Loopback only: `localhost`, `127.0.0.1`, `[::1]`, over `http` or `https`; anything else is `422 redirect_uri_not_loopback`. Registered without a port, they match any port, as on every development instance |
| Email | Sign-in email only (verification codes and links, sign-in links, password resets), in fixed wording with no app name, from `no-reply@pontive.com`: 100 a day per instance, 5 an hour to one address. Invitations are created but not emailed. Beyond a limit: `429 email_limit_reached` |
| Branding, email templates, localization | Pontive's defaults, read-only |
| Not available | Custom domains, webhook subscriptions, generic OIDC and SAML connections, trusted issuers, third-party clients, other secret keys |

What the instance may not do answers `403 instance_unclaimed`. Every limit lifts at the claim, when the
instance becomes an ordinary development instance of your workspace.

## Claim [#claim]

You need a Pontive account, or create one on the way. In the app's directory:

```sh
npx pontive claim
```

It opens a **claim link** (in an agent's session it prints it for you to open), waits while you sign in
or sign up, choose the workspace and confirm, and then forgets the claim token. You can also follow the
banner's *Claim it* link, or ask your coding agent, which mints the link with the same API call
([`/auth.md`](https://pontive.com/auth.md), section 6).

- A claim link lasts **one hour** and works **once**; mint another whenever you need one. It never
  contains the claim token, which stays in `.pontive/keyless.json` on your machine.
- **Which workspace:** one where you are an owner or admin, or a new one. A Free workspace takes it only
  if it holds no project yet (Free has one); a paid workspace takes it as an additional project, and the
  claim page shows what that adds to your bill before you confirm.
- **Region and tenancy mode** do not change: they are fixed when the instance is created.

Whoever holds the claim token can claim the instance, so keep `.pontive/` out of git and never paste the
token anywhere. A leaked claim token reported by GitHub secret scanning is disabled; the instance then
can only expire.

## What survives a claim [#what-survives-a-claim]

| Thing | After the claim |
| --- | --- |
| Instance id, project id, issuer, auth domain, signing keys | Unchanged |
| Users, sessions, organizations, roles, resource types, apps, client secrets, settings, auth flows | Unchanged: nothing inside the instance is rewritten |
| The `keyless` secret key | Keeps working. It is listed under the instance's API keys, created by "Pontive (keyless)"; rotate or revoke it like any other |
| The claim token and claim links | Stop working |
| The limits above | Lifted; the branding is yours to edit |
| `expires_at`, `Sunset`, the banner and the ribbon | Gone |
| Plan, features and caps | Your workspace's, from the moment of the claim |
| Usage and billing | Counted toward your workspace from the claim; nothing before it is ever billed. On a paid plan the project is charged as any added project, prorated from the claim |

## Errors [#errors]

| Code | Status | Meaning |
| --- | --- | --- |
| `unclaimed_instance_limit` | 429 | This IP address or network has created its share today; wait `Retry-After` seconds |
| `unclaimed_instances_unavailable` | 503 | Creation is paused or at capacity; retry after `Retry-After` with the same `X-Idempotency-Key` |
| `caller_blocked` | 403 | This address or network may not create unclaimed instances |
| `redirect_uri_not_loopback` | 422 | A redirect URI or origin is not loopback |
| `invalid_region` | 422 | Not `us`, `eu` or `au` |
| `invalid_encryption_key` | 422 | Not a public P-256 or X25519 JWK, or it carries a private part |
| `instance_unclaimed` | 403 | The action needs a claimed instance |
| `email_limit_reached` | 429 | The instance's development email limits |
| `unclaimed_instance_not_found` | 404 | Unknown or expired instance, or a wrong claim token |
| `claim_link_invalid` | 404 | The claim link is unknown, expired or already used |
| `instance_claimed` | 409 | Already claimed |

A secret key that worked and now answers `401` means the instance expired or its new owner revoked the
key. The CLI and pontkit stop and say so; they never create a replacement silently, since a new instance
would have none of the users you created. `npx pontive init --reset` starts over with a new one.
