A coding agent such as Claude Code, Codex or Cursor can install Teaflask in your product for you. You give it Teaflask's setup prompt, and it adds the assistant to your code. A coding agent that can connect to Teaflask's MCP server also sets up what your organization is missing and checks that the assistant answers on your local dev server; Cursor can't connect yet, so it lists those steps for you to finish in the dashboard.

## Get the setup prompt

Teaflask's setup prompt is published at [teaflask.com/setup.md](https://teaflask.com/setup.md), and **Set up for agents** on teaflask.com copies the same text. Paste it into your coding agent, in a session opened on your product's repository. The prompt is written for the coding agent, so there's nothing in it for you to fill in.

The setup prompt works in a Teaflask organization you already have. If you don't have one yet, sign up at [app.teaflask.com](https://app.teaflask.com) first.

## What the setup prompt asks the coding agent to do

The setup prompt asks the coding agent for a minimal setup that provably works on your local dev server: the assistant mounted in your app, answering as a published agent, with your API reachable through actions. The coding agent works in this order:

1. It reads how Teaflask works in these docs, fetching each page as Markdown, and follows them over anything it already believes about Teaflask.
2. It adds the assistant to your code by following [Install](/install). It wires an [actions adapter](/adapters) to the way your frontend already calls your API, and [identity](/identity) to the way your app signs users in.
3. It connects to your Teaflask organization through Teaflask's MCP server, which you sign in to. Cursor can't sign in to it yet, so with Cursor the coding agent ends here, with its report and the remaining steps for you to finish in the dashboard.
4. It checks what your organization already has, and fills only the gaps the local check needs, such as actions, the agent and a [publishable key](/publishable-keys).
5. It starts your dev server and checks that the launcher appears, the agent answers, and an action runs through your adapter.
6. It reports what it changed in your code, file by file, what it set up in Teaflask, what it checked, and anything left for you.

After the report, the coding agent offers [next steps](#after-setup) and builds them only if you ask.

## What you do while the coding agent works

The coding agent stops for you at a few points during setup:

- **Signing in to Teaflask.** Once the coding agent has added Teaflask's MCP server, it stops and asks you to start a new session, sign in to Teaflask when your coding agent asks, and paste the setup prompt again, because a newly added MCP server isn't available until the next session. In your browser, choose your organization and leave every tool on. You can narrow the access later under **Settings → MCP**. Cursor can't sign in yet; with Cursor you finish the setup in the dashboard instead. See [Teaflask MCP server](/teaflask-mcp).
- **Approving changes in Teaflask.** Before each change in your organization, such as registering an action, publishing the agent or creating a key, the coding agent says what it's about to do and waits for your yes.
- **Adding the identity secret.** The coding agent adds a server environment variable for your end-user JWT secret and leaves it empty. Copy the secret into it yourself from **Settings → Keys → Identity verification**, and never paste it into the chat. Until you do, the assistant runs anonymously.
- **Naming your origins.** A publishable key's allowed origins can't be changed after the key is created, so the coding agent asks for your staging and production origins before it creates one.
- **Paying for the work.** If your organization can't yet pay for something the setup starts, such as a scan of your repository for actions, the coding agent stops and tells you what's missing; [Settings → Models](/models) shows what pays for each kind of work.

## What needs an owner

Most of the setup inside your Teaflask organization needs an owner, such as registering actions, publishing the agent, creating a publishable key, copying the identity secret and paying for the work. A member can still run the setup prompt: the coding agent makes every code change and lists the owner's steps in its report. [Members](/members) lists what each role can do.

## If your coding agent can't connect to Teaflask

A coding agent that can't add Teaflask's MCP server or sign in to it still makes the code changes. Cursor can't sign in to Teaflask's MCP server yet, so it takes this path. The coding agent then lists the steps to finish in the dashboard, each linked to its page in these docs, starting with making sure your organization can pay for its work and ending with step 7 of [Install](/install) to check the result. If you connect your coding agent to Teaflask later, paste the setup prompt again, and it does those steps for you.

## Checking the result yourself

The coding agent reports which checks it ran and what it saw. To check for yourself, open your app on the local dev server and work through step 7 of [Install](/install): the launcher appears and the agent answers a message. In the dashboard, your publishable key's row in the agent's **Install** section changes from **Waiting for the first session…** to a line like **Session seen 2 minutes ago**.

## After setup

When setup is done, the coding agent offers these next steps, and builds one only if you ask:

- More docs, drafted from your code: [Drafting](/drafting).
- A fuller agent prompt, more actions, and skills: [Skills](/skills).
- Letting the agent navigate and work with your app's pages: [App Access](/app-access).
- Custom views for action results, such as an order card instead of raw JSON: [Tool views](/tool-views).
- Theming and other surfaces: [Appearance](/appearance) and [Surfaces](/surfaces).
- Tests written from real conversations, so a new version of the agent is checked before it's published: [Tests](/tests).
- Seeing what users do in your product, one journey at a time: [Steep](/steep) and its [install guide](/steep-install). Steep needs its own key, which an owner creates under **Steep**, in the **Keys** section; a coding agent without one stops and asks you for it rather than inventing one.
