# Getting started with OpenBelt

You were sent here to help someone get started. When someone is new to OpenBelt or asks for their first tool, do this. Keep each message short.
The pick is the only question before the link: after it, don't ask anything until they have the
link.

Offer the pick first; after they reply, connect if the `docs` tool isn't there yet, then add or build their pick.

## Offer a pick

Offer this, exactly, and wait for their reply:

```
What should we build first? Reply with a number, or describe your own.
1. Message board: you and your agents post and reply, live
2. Journal: a daily log your agents write to and you skim each evening
3. Task organizer: one list you and your agents both pick up and check off
4. Drawing board: a shared canvas everyone sketches on at once
5. Something else: tell me what you need
```

Picks 1-4 are starter apps. They already work and have example data. Don't build them. When
you're connected, add the starter app they picked with one call:

- `starter_add({ starter: "<name>" })`, or with the CLI:
  `~/.local/bin/openbelt call starter_add '{"starter":"<name>"}'`
- `<name>` is `messages` (1), `journal` (2), `tasks` (3) or `sketch` (4).

Then send the link and the next steps `starter_add` gives you, exactly.

If the workspace already has an app by that name, `starter_add` says so: add the starter app with
another `app` name, or send the link to the one that's there.

For pick 5, build it (below), even if what they described is short or unclear: build what you
think they mean.

## Connect

Skip this if the `docs` tool works.

1. If you run on the person's own computer and can run shell commands, install the `openbelt` CLI:
   run `curl -fsSL https://openbelt.com/install | sh -s -- -y`. If it says it's connected, go on to your pick. If it
   ends with a code, tell the person, with that code: "A page opened. Check that it shows <code>,
   click Continue, then Continue with Google (or sign in with your email)." Then run `~/.local/bin/openbelt login --wait` in this turn, with a 10-minute
   timeout: it returns once they've signed in. Don't end your turn while it runs, or it may be
   stopped. It also adds OpenBelt to this agent as an MCP server, signed in.
   This is best effort: if any part fails, go on to step 3.
   A chat app (Claude, ChatGPT) runs commands in a cloud sandbox, not on the person's computer: skip
   to step 3.
2. If the CLI is signed in but the `docs` tool still isn't here (most agents only see a new MCP
   server after a restart), don't wait for one: use the CLI. Each command is one of the MCP tools:
   `openbelt docs apps`, `openbelt app deploy <folder>`, `openbelt app check <app>`,
   `openbelt call <tool> '<json>'` for any tool; `openbelt --help` lists them. Run each as
   `~/.local/bin/openbelt <command>` on its own, with nothing before it (no variables, `cd` or
   `&&`), so the person can allow each kind once instead of every call.
3. Otherwise add the MCP server `https://openbelt.com/mcp` (Streamable HTTP, OAuth). The same sign-in page
   opens.

- Claude Code: `claude mcp add --transport http openbelt https://openbelt.com/mcp`, then `/mcp`, openbelt, Authenticate
- Codex: `codex mcp add openbelt --url https://openbelt.com/mcp`, then `codex mcp login openbelt`
- Claude (claude.ai, the desktop or phone app): you can't add it yourself, so give the person these steps and wait: "Open https://claude.ai/customize/connectors?modal=add-custom-connector&connectorName=OpenBelt&connectorUrl=https%3A%2F%2Fopenbelt.com%2Fmcp and click Continue, then Add, then Connect. Sign in on the OpenBelt page that opens, then come back to this chat and reply ready."
- ChatGPT: you can't add it yourself, so give the person these steps and wait: "Open https://chatgpt.com/plugins, click Add, then Add custom MCP server. Name: OpenBelt. Server URL: https://openbelt.com/mcp. Tick I understand and want to continue, click Create as a plugin, then Connect OpenBelt. Sign in on the OpenBelt page that opens, then come back to this chat and reply ready."
- Anything else: https://openbelt.com/auth.md

## Build it

1. Read `docs({ page: "apps" })` and `docs({ page: "sdk" })`, then build the smallest version that
   works. Keep the UI simple and minimal: one screen, plain layout, only the controls it needs.
   Pick sensible defaults for anything they didn't say; don't ask about it.
2. Check it in a real browser with `check_app`, then make it live: `deploy_app`, or `promote_app`
   if you built it in a preview environment.
3. Send the link and four next steps in the same format as the pick, each fitted to the app:

   ```
   What next? Reply with a number, or tell me.
   1. <something you add to it while they watch, like a first post or entry>
   2. <a change to the app, like a new field or view>
   3. <something it does by itself: a schedule, or a notification on their phone>
   4. <someone to invite, to use it with them>
   ```

## What next

When they reply with a number, do it, then send the next steps again: the ones they didn't pick,
and a new one of the kind they did. Ask follow-up questions only now, after the link, and only if
you need them.

Change an app the way you change any app, and check it before it goes live: `app_files`, then
`deploy_app` with edits into a preview environment, `check_app` there as test people
(`people: ["alice", "bob"]`), then `promote_app`. Starter apps show their controls only to people
signed in, so a check without people sees no buttons.
