# Tabbify for AI agents

Tabbify is a private PaaS and AI coding platform. Every app is a git repo
running as a Firecracker microVM on the account's private mesh. You drive it
through one MCP server. This page tells you how to connect and how to work
with it well. Human docs: https://tabbify.io/docs

This file is served at https://tabbify.io/agents.md and, identically, at
https://tabbify.io/CLAUDE.md.

## Guide a person through setup

A person asked you to set them up with Tabbify. Walk them through it one step
at a time: say what to do, wait until they say it is done, then go on. Do
every step you can do yourself instead of describing it.

1. **Connect.** Work out which client you are running in and give the person
   only that client's steps from [Install by client](#install-by-client). If
   you can add the server yourself (a CLI such as `claude mcp add` or
   `codex mcp add`, or a config file you can edit), do it and tell them what
   you changed. Some clients need a restart or a new chat before new tools
   appear; say so.
2. **Sign in or request access.** Tabbify accounts are by invitation.
   - They have an account (they say so, or you know from earlier in this
     conversation): the first Tabbify call opens the Tabbify sign-in in their
     browser, where they sign in with their login and password (or run
     `claude mcp login tabbify`, `codex mcp login tabbify`,
     `opencode mcp auth tabbify`).
   - They have no account: offer to request access for them, ask which email
     the invitation should go to, and follow
     [Request access](#request-access). Then stop until they come back with
     an account.
3. **Check the account.** Call `account_status`.
   - `approved`: go on.
   - `pending`: tell them the account is on the waitlist and the Tabbify team
     approves new accounts by hand; nothing needs reconnecting afterwards.
     Stop here until they come back. Do not retry other tools.
   - `rejected`: tell them, and stop.
4. **First app or database.** Ask what they want to run first, in one
   question.
   - An app: follow [Ship a new app](#ship-a-new-app).
   - A database (Postgres, KV, S3 and others): `container_catalog` → pick the
     reference → `container_document {reference}` (read it; never hand-write
     `container_toml`) → `container_plan` → `container_apply` → poll
     `container_status` until `ready`. Then `resource_bind` it to the app
     that needs it.
5. **Hand over.** Tell them what now exists: app URL (`app_url`), that it is
   private until they agree to publish it, and where the console is
   (https://tabbify.io/apps).

## Request access

There is no open sign-up: the Tabbify team invites people by email. To ask
for an invitation, send one request with the person's email. If you are an
AI agent sending it for a person, add who you are and your answer to the
challenge below. The challenge is new on every read of this page; solve it
yourself, do not ask the person.

- challenge: `ch_tzmmbykvne`
- question: Consider the list: `42, birch, 13, ember, pebble, 7, lily`. Words are the entries made of letters, numbers the entries made of digits. In it, take the largest of each number followed immediately by a word with the letter "i" in it, after that subtract the smallest number in the whole list, then take the remainder after dividing by 8. Reply with the resulting whole number.

```bash
curl -sS https://tabbify.io/v1/register/request \
  -H 'content-type: application/json' \
  -d '{"email":"PERSON@EXAMPLE.COM","agent":"YOUR NAME, e.g. codex or claude-code","challenge":"CHALLENGE ID","answer":"YOUR ANSWER"}'
```

- The answer is always `{"ok":true}`, whether or not the email already has an
  account or an open request. It never says which, so do not guess from it.
- `agent`, `challenge` and `answer` are optional; a request with only the
  email works too.
- Send it once. Then tell the person the Tabbify team will email them an
  invitation link, and that they set a login and password there and sign in.

## Connect

- MCP server: `https://api.tabbify.io/mcp`
- Transport: Streamable HTTP. Auth: OAuth 2.1 with dynamic client
  registration. There is nothing to paste: the first call opens the Tabbify
  sign-in in the browser.
- Headless or CI with no browser: the human mints a token at
  https://tabbify.io/mcp and you send `Authorization: Bearer <token>`. Use
  OAuth or the header, never both.

### Accounts waiting for approval

An account the Tabbify team has not approved yet sees only one tool,
`account_status`, and every other call answers "waiting for approval".

- Call `account_status` and tell the human what `next_step` says.
- Do not retry other tools in a loop and do not reconnect: approval opens the
  tools on the same connection.
- `rejected` means the sign-up was not admitted. Tell the human; stop.

## Install by client

All clients use the same URL and sign in with OAuth on first use.

**Claude app (claude.ai, Claude Desktop).** Customize → Connectors → + Add →
Add custom connector. Name it, URL `https://api.tabbify.io/mcp`, Continue,
keep the detected OAuth, Add, sign in. In a chat: + → Connectors → toggle
Tabbify on. Team/Enterprise: an owner adds it under Organization settings →
Connectors.
Source: https://support.claude.com/en/articles/11175166-get-started-with-custom-connectors-using-remote-mcp

**Claude Code.**

```bash
claude mcp add --transport http tabbify https://api.tabbify.io/mcp
claude mcp login tabbify   # or run /mcp inside Claude Code
```

Source: https://code.claude.com/docs/en/mcp

**Codex (CLI and IDE).**

```bash
codex mcp add tabbify --url https://api.tabbify.io/mcp
codex mcp login tabbify    # --no-browser prints the URL to open
```

Or in `~/.codex/config.toml`:

```toml
[mcp_servers.tabbify]
url = "https://api.tabbify.io/mcp"
```

Source: https://developers.openai.com/codex/mcp

**ChatGPT.** On the web open https://chatgpt.com/plugins → + → Add custom MCP
server. URL `https://api.tabbify.io/mcp`, authentication OAuth (ChatGPT has
no static-token field), Create as a plugin, install, sign in. Business and
Enterprise admins may have to allow custom MCP servers first.
Source: https://developers.openai.com/api/docs/guides/custom-mcp-server

**Mistral Le Chat.** Connectors → + Add Connector → Custom MCP Connector.
Name `tabbify`, URL `https://api.tabbify.io/mcp`, Connect, sign in. Adding a
connector is admin-only.
Source: https://docs.mistral.ai/le-chat/knowledge-integrations/connectors/mcp-connectors

**Cursor.** `.cursor/mcp.json` (project) or `~/.cursor/mcp.json` (global):

```json
{ "mcpServers": { "tabbify": { "url": "https://api.tabbify.io/mcp" } } }
```

Source: https://cursor.com/docs/context/mcp

**OpenCode.**

```bash
opencode mcp add tabbify --url https://api.tabbify.io/mcp
opencode mcp auth tabbify
```

Or in `opencode.jsonc`:

```jsonc
{ "mcp": { "servers": { "tabbify": { "type": "remote", "url": "https://api.tabbify.io/mcp" } } } }
```

Source: https://opencode.ai/docs/mcp-servers/

**Zed.** Settings → AI → MCP Servers → Add Server → Add Remote Server, or in
`settings.json`:

```json
{ "context_servers": { "tabbify": { "url": "https://api.tabbify.io/mcp" } } }
```

With no `Authorization` header Zed runs the MCP OAuth sign-in.
Source: https://zed.dev/docs/ai/mcp

**Anything else.** Any MCP client with remote HTTP servers works: point it at
`https://api.tabbify.io/mcp` and let it run OAuth, or send a Bearer token.
Full guide: https://tabbify.io/docs/mcp

## How to work with Tabbify

The server's own `instructions` (sent at initialize) are the authority; the
rules below are their summary. Trust the tool list and schemas the server
returns over any example here.

### Ask the human only three things

Do the work and report what you did. Never ask for confirmation, which node,
network or region, or redeploy-vs-new. Ask only when it is genuinely unclear:

1. Which repository they mean (`forge_list_repos` lists them).
2. An external GitHub constraint you cannot fix (access, permission, quota).
3. Whether to make a private app public. `app_set_public` needs explicit
   human consent, every time. A deploy alone never authorizes publication.

### Machines: reuse your devbox

- A devbox is a long-lived microVM with its own disk. It is yours until you
  delete it.
- Call `list_devboxes` first and reuse one marked `yours: true`. A stopped one
  comes back with `devbox_start`. Call `create_devbox` only when you have none.
- Out of disk or memory: `devbox_resize` the same devbox. Never create a
  second one to move files into.
- Read and edit code with the code tools (`code_read`, `code_search`,
  `get_symbols_overview`, `find_symbol`, `find_references`, `code_edit`,
  `replace_symbol_body`). Run commands with `exec` in a devbox that has the
  repo attached (`devbox_add_repo`).
- `forge_list_repos` and `forge_file_url` need no machine at all.

### Ship a new app

1. `forge_list_repos`. If the repo exists, reuse it.
2. Otherwise `forge_create_repo {name}`.
3. `list_devboxes`, then `devbox_add_repo {devbox_uuid, repo}`.
4. Write the code, with a Dockerfile.
5. `code_commit`, then `code_push`. Confirm the push succeeded. A push does not
   deploy.
6. `create_app_from_repo {repo}`, or `app_action {app, action: "redeploy"}`
   for an app that exists.
7. Poll `deploy_status` until done.
8. Tell the human it is private and ask whether to publish. Only on a yes:
   `app_set_public {app_uuid}`.
9. `app_url {app_uuid}`: return the URL and its settings page.

### Deploys

- Never redeploy while a deploy is running. A second deploy spawns a duplicate
  instance that collides on the app address and crash-loops.
- Poll `deploy_status` every ~5 s. `typical_secs` is guidance, not a deadline:
  keep polling while `log_tail` moves.
- `deploy_status` done means the app is serving inside the mesh. That is the
  verification. A denied private `get_app` or the public edge is not.
- Omit `targets`; the platform places the app. An existing app with the same
  name or uuid is redeployed in place.
- Deploys build from the forge repo's `main`, not from your devbox. Unpushed
  work does not exist for a deploy.
- Declare the port your server really listens on with `EXPOSE` (nginx 80,
  python http.server 8000). Do not bind 8730. Keep PID 1 in the foreground.

### App names are addresses

- An app's name is its address: `https://<name>.tbfy.app/`. Lowercase a-z,
  0-9 and `-`, 3–32 characters, no leading or trailing `-`, no `--`.
- Rename with `app_rename {app, name}`. The old address redirects (308) for
  30 days and stays reserved for that time.
- Act on apps (by uuid or name), not repos. One repo can hold several apps,
  one per `*tabbify.toml`; `repo_manifests` lists them.

### Logs and debugging

- `logs_query {app_uuid}` reads what the app itself printed, plus platform
  events. Default window: the last hour. `from`/`to` are unix epoch
  milliseconds; each record's `observed_at` is when the line was observed, in
  epoch milliseconds.
- Narrow with `contains`, `severity`, `stream` or `trace_id`; page with
  `next_cursor` → `cursor`.
- A `gap` record means lines were lost, not that the app was quiet.
  `index_state: catching_up` means the page may be short: re-read.
  `coverage_gaps` with `pending_archive` will fill in later; `lost` will not.
- A failed tool returns a `trace_id`. Call `agent_trace {trace_id}` to see
  where it stopped, and fix that cause.
- A deploy stuck at `pending` almost always means your container is
  crash-looping or not serving its `EXPOSE`d port. Read `logs_query`, fix,
  push, redeploy.

### Credentials and secrets

- You consume credentials; the human provisions them. On a
  `needs_credential` error, relay its `say_to_user` text and `admin_url`
  verbatim and stop.
- App secrets: `secret_declare`, relay the returned `admin_url`, reference the
  value as `secret:NAME` (or `secret-file:NAME`) in `[env]`, and redeploy.
  `secret_status` shows what is still missing.
- Never run `git config` or hand-edit git remotes. A rejected push:
  `code_pull`, then `code_push`.

### Feedback

- When a tool failed without a clear reason, or you had to guess, call
  `feedback_submit` with facts and ids only, never secret values.
- At the end of a working session, call `session_rate` once with a 1–5 score
  and a short honest review.

## More

- MCP setup and Bearer tokens: https://tabbify.io/docs/mcp
- Getting started: https://tabbify.io/docs/getting-started
- `tabbify.toml` reference: https://tabbify.io/docs/tabbify-toml
- Deploy pipeline: https://tabbify.io/docs/deploy-pipeline
- Troubleshooting: https://tabbify.io/docs/troubleshooting
- REST API (OpenAPI): https://api.tabbify.io/openapi.json
- Index for LLMs: https://tabbify.io/llms.txt
