SET UP WITH YOUR AGENT

One prompt, your onboarding in Onset

Your coding agent installs Onset and rebuilds the onboarding you already have, screen by screen, while you watch it arrive in the dashboard. Nothing goes live until you publish.

1. Copy the prompt

In the dashboard, create your app and open Set up with your coding agent. The Prompt tab has this text with a fresh pairing code. Paste it into Claude Code, Cursor or Codex, opened in your app's repository.

Prompt
Set up Onset (the onboarding tool I use, onboarding.company) in this app and recreate our current onboarding in it.
I generated this command in my Onset dashboard. It runs the Onset CLI and pairs this repo with my Onset app:

npx -y https://onset.onboarding.company/cli/onset-cli-0.3.18.tgz setup --code ONST-XXXX-XXXX

Run it from the repo root and follow the steps it prints. It makes its code changes in a separate git worktree on a new branch (onset/setup), so my checkout stays as it is. Nothing is committed, and nothing goes live until I publish it in the dashboard.

How I'd like you to work:
- Don't build or run the app, and don't commit.
- Keep going without stopping to ask me; I follow along in the dashboard, so push each screen as soon as you have edited it. Write any assumption as one line in .onset/NOTES.md and I'll review them at the end.
- Do the work yourself in this session (no subagents). Run each onset command on its own, as printed (no cd, pipes or &&), and edit files under .onset/ with your file editing tools, not sed. Read my source files whole with your file-reading tool (not sed, grep or node -e), and don't unpack Onset's packages: `components <type>` and `docs <topic> --find <term>` print the reference.
- When `import finish` prints the hand-off, make that hand-off your whole final reply.
If network access is blocked, ask me to allow it.
The code works once and expires after 15 minutes. If it runs out, the dashboard makes a new one. The instructions your agent follows are public: onset.onboarding.company/agent.md.

2. What your agent does

01Pairs with your app. Exchanges the one-time code for a token scoped to this app only. The token never appears in the chat or your repository.
02Installs the CLI, skill and MCP server. For each coding agent on your machine: Claude Code, Cursor, Codex, VS Code, Windsurf.
03Installs the SDK. Swift Package for iOS, an npm package with an Expo plugin for React Native. Your onboarding does not change yet.
04Recreates your onboarding. Reads your code for copy, colors, fonts and branching, runs the app in the simulator, rebuilds each screen and measures it against the real one, then refines it, up to four rounds per screen.
05Checks its own work. Pass or fail for every screen against the captures, with at least one check off the happy path: dark mode, larger text, the back button.
06Hands off. Saves a draft flow, puts it behind a flag in your app with the old onboarding kept as the fallback, and tells you what still needs you.

Before it starts recreating screens, the agent tells you roughly how long it will take and waits for your go. You can stop it at any point; it picks up where it left off.

3. Watch and review

The setup page shows a checklist. Every row ticks from something our servers saw, never from the agent saying so.

AGENT CONNECTEDTicks when the pairing code was exchanged for a token.
TOOLS INSTALLEDTicks when the first call made with that token.
SDK INSTALLEDTicks when the first launch of a debug build of your app.
FIRST EVENTTicks when the first analytics event from the app.
ONBOARDING FOUNDTicks when the agent started an import with your screen graph.
SCREENS RECREATEDTicks when every screen has a recreated version and a fidelity score.
REVIEWTicks when you marked every screen accurate, or approved all.
LIVETicks when you published (only you can).

Once screens arrive, each card shows your real screen next to the recreated one, with a difference overlay and a fidelity score. Mark a screen accurate or not, draw on what is wrong, and add a comment: your agent reads it and fixes the screen. When everything looks right, approve and publish. Publishing is always your click.

Command and manual setup

Prefer the terminal? This does the pairing and agent configuration in one command, then asks you to approve in the browser:

Terminal
npx -y https://onset.onboarding.company/cli/onset-cli-0.3.18.tgz setup --code ONST-XXXX-XXXX

Coming soon on npm as npx -y onset-cli@latest.

Or add the MCP server by hand and sign in through the browser. No token goes into any config file:

Claude Code
claude mcp add --transport http onset https://onset-api.onboarding.company/mcp

Then run /mcp in Claude Code, pick onset and choose Authenticate. Your browser opens Onset: pick the app, check what the agent may do, approve. Cursor, VS Code and other clients offer the same sign-in when you add the URL. On a machine without a browser, pair with the command above and pass the token from an environment variable, never inline:

Claude Code
claude mcp add --transport http onset https://onset-api.onboarding.company/mcp \
  --header 'Authorization: Bearer ${ONSET_AGENT_TOKEN}'

What the agent can and cannot do

✓Read your app's flows, analytics and setup state. Create and edit drafts, imports and uploads for this one app.
✕Publish, roll back, start or stop experiments, see or change API keys, webhooks, members or billing. The token cannot, by design; it can only ask you to publish.
✓Every change it makes is in your audit log as an agent. Revoke it any time under Settings, Agents.

What Onset cannot import

Your agent flags these instead of faking them:

01Paywall content from RevenueCat, Superwall or Adapty. Your paywall stays theirs; the flow triggers it at the same point.
02Text that only exists at runtime: server-driven copy, another tool's experiments, personalized strings. The structure is rebuilt and listed for you.
03Screens without readable source, such as a third-party SDK's UI. Screenshot-guided at best, and marked as lower confidence.
04Native-only UI such as a camera scan, AR or 3D. It stays native and is embedded in the flow as a custom view your app registers.
05System permission dialogs. They belong to iOS and Android; the screen you show before them is recreated.

Install the SDK yourself

iOS SDK 0.6.3: add the Swift package from github.com/francosae/onset-ios, "Up to Next Major Version".

Package.swift
.package(url: "https://github.com/francosae/onset-ios", from: "0.6.3")

Until that repository is public, the same package is a zip you add as a local package: OnsetSDK-0.6.3.zip.

React Native and Expo (onset-react-native 0.6.5, hosted; coming soon on npm):

Terminal
npm i https://onset.onboarding.company/sdk/react-native/onset-react-native.tgz
# Expo
npx expo install https://onset.onboarding.company/sdk/react-native/onset-react-native.tgz

For reproducible builds, install the versioned file instead: onset-react-native-0.6.5.tgz.

Old app versions keep working when you publish new flows: the SDK tells the server what it can render, and the server only sends what it can. Current versions and checksums: releases.json.