Set up with AI, in detail
The two ways your coding agent sets Rendel up, what it changes in your code and in the console, how it is kept safe, and what to do when a run stops.
Set up in 5 steps is the short version. This page is what happens underneath: the two paths, every step your agent takes, what it can and cannot reach, and how to recover when a run stops halfway.
See what it looks like to your customers and your team: Setup by your agent.
Your agent works in your repository, and Rendel's console fills in from what it finds: the look, the assistant, knowledge, screens and actions. Every setting it writes can also be changed by hand in the console. If your rules keep code away from agents, set up without one.
Two paths
| The setup file | Connect your agent | |
|---|---|---|
| For | Any coding agent | Claude Code, Cursor, Codex, GitHub Copilot or Gemini CLI, with Rendel's MCP server connected |
| How the console fills in | The agent writes rendel/setup.json; you import it | The agent writes it directly, through Rendel's MCP tools |
| What you see | The import filling in | Each step on Home as it happens |
| What reaches Rendel from your machine | Only the file you import | Calls the agent makes with a grant you approved in your browser |
Home's card starts with connecting Rendel's MCP server, for Claude Code, Cursor, Codex, GitHub Copilot or Gemini CLI, so you watch each step land on Home: it shows how each adds the server, and its prompt falls back to the file by itself when a tool is refused. The setup file is folded below it on the same card, for teams that keep agents off outside services, and is the whole card for Windsurf: nothing to install and no sign-in.
The setup file (any agent)
- Paste the prompt from Home into your agent:
Set up Rendel (rendel.ai) for my app {your app's slug}. Add the Rendel SDK (website: the script https://rendel.ai/sdk/web/0.91.0/rendel.js, Flutter: the package from https://github.com/neon-apps/rendel-flutter at v0.116.1, iOS 15+) and, if the app has sign-in, pass my signed-in user's token to it so Rendel can call my API as that user. Ask me for my test key: it is in my Rendel console under Settings › Keys & environments. Then describe the app in rendel/setup.json as https://rendel.ai/schemas/setup/v1.json describes (example: https://rendel.ai/docs/reference/setup-api#example). Send nothing anywhere: I will import the file into my Rendel console myself.
The console gives you this prompt with your app's slug in it. Works in Claude Code, Cursor, Codex, Windsurf, GitHub Copilot and Gemini CLI.
It asks the agent to add the SDK and to describe your app in rendel/setup.json, as the schema says (its descriptions are the guide; copies ship with both SDKs), and to send nothing anywhere.
- Import the file from your project's root with the command Home gives you (the code is your session's, and works while the session is open):
curl -sS --fail-with-body -H "Authorization: Bearer …" -F manifest=@rendel/setup.json -F logo=@assets/logo.svg "https://rendel.ai/api/setup/import"The code travels in the Authorization header, so it stays out of request logs; your shell history still holds it until the session ends.
Or drop it where Home says Drop rendel/setup.json here (drop the logo with it to import that too). The import checks the whole file before it writes anything and lists every problem in one answer, each with its field, so a refused import leaves the console as it was. An action refused while it is saved keeps the session open: Home names it under Actions, and the same command works again once it is fixed. An opening suggestion that matches none of the app's actions or knowledge is listed under Left for you to change, and each line there has an Open button to the page where it is done. On a website with nothing under Allowed domains yet, the setup lists the domains your code names, or else the one its public pages are on, so the test key answers on the deployed site too; an import does it as soon as it has read those pages, before its check questions. With no contact channel listed yet, the setup also saves the support email, help page or phone number your code shows, so the Go live check for one passes without a trip to Settings. Then it fills in each section and runs a test conversation, and a full import ends like an agent's setup: it publishes the drafts and goes live when its Go live checks pass. Home says Imported. Everything it set is in the console now., and the session closes. The agent adds rendel/setup.json to .gitignore, as the schema's guide asks.
A lot of knowledge can go first, in a file holding only $schema, version, app and knowledge; an import over about 4.4 MB is refused with a message saying how to split it. The Setup API reference lists every answer.
Connect your agent (Claude Code)
On Home this is the card's first path, above the setup file. Once per machine, add Rendel's MCP server. The steps below are Claude Code's; for Cursor, Codex, GitHub Copilot or Gemini CLI the console's card shows the line to add and how that agent signs in.
claude mcp add --transport http --scope user rendel https://rendel.ai/api/mcpThen, in Claude Code:
- Sign in once.
/mcp→ rendel › Authenticate, and approve in your browser. The sign-in is yours: it works for every app you can set up. - Allow the tools once.
/permissions→ Allow →mcp__rendel__*. In auto mode this rule is what lets the calls through. - Paste the prompt, with your app's slug:
Set up Rendel (rendel.ai) for my app {your app's slug} using the rendel MCP tools. Add the Rendel SDK (website: the script https://rendel.ai/sdk/web/0.91.0/rendel.js, Flutter: the package from https://github.com/neon-apps/rendel-flutter at v0.116.1, iOS 15+) and, if the app has sign-in, pass my signed-in user's token to it so Rendel can call my API as that user. Then follow the rendel server's setup guide. If rendel needs authentication, ask me to type /mcp, choose rendel and sign in, then wait. If a rendel tool is denied or missing, send nothing else and write rendel/setup.json as https://rendel.ai/schemas/setup/v1.json describes.
The console gives you this prompt with your app's slug in it. Works in Claude Code, Cursor, Codex, Windsurf, GitHub Copilot and Gemini CLI.
The agent calls rendel_start first, which hands it the setup guide, your app's publishable keys and the SDK snippets, and Home shows Agent connected. From there each step lights up on Home as the agent reaches it. For your next setup, a sync or another app, paste that prompt: you stay signed in. To switch Rendel accounts, /mcp → rendel › Re-authenticate. The tools are listed in the MCP reference.
After the setup, the same sign-in lets your agent do the rest of the console for you, such as a colour, an allowed domain or Go live: ask it, and it does it as you would on the page (the rest of the console).
Why the agent does not post to Rendel itself
A coding agent's own safety checks stop it sending your project's details to an outside address on a pasted instruction. We measured it in Claude Code with its default model: a longer pasted setup prompt was declined as "only pasted text" in three runs of three, and typed, its uploads were refused as data exfiltration. So on the file path the agent sends nothing at all, you do; and on the MCP path it writes through tools you approved by name, which passed in three runs of three.
What the agent does
| # | Step | In your code | In the console |
|---|---|---|---|
| 0 | Start | Nothing | Reads what Rendel already knows: your links, what was read from your website, the current configuration, both publishable keys and the SDK snippets |
| 1 | Discover | Nothing; reads only. Platform, router, HTTP layer, sign-in, theme (and dark theme), fonts, logo, languages, screens, in-app help, and every API call, followed to the screen and button that make it | A discovery report and a plan |
| 2 | Install | The SDK, Rendel.init (test key in debug builds, live key in release builds), iOS permission strings, a way in that fits the app, and in a Flutter app Rendel.navigatorObserver on its navigator, so each question carries its screen | — |
| 3 | Identity | identify at sign-in, reset at sign-out, and userToken handing over the token your app already sends to its own API. Skipped for an app with no sign-in. Where it finds them, Rendel.track("signup") at sign-up and Rendel.track("purchase", …) where a purchase succeeds | — |
| 4 | Appearance | themeMode if the app has its own light/dark setting | Your colours, corners, font and card style into the draft, with a dark theme if the app has one, and the logo |
| 5 | Persona | — | The assistant's name, tone, instructions, guardrails, languages, welcome screen and suggestions, into the draft |
| 6 | Knowledge | — | Your public pages as links (Rendel fetches them), and texts written from your code and copy |
| 7 | Screens | registerRoute for each screen a user might ask to open | The same screens, shown as planned until a build registers them |
| 8 | Actions | registerAction where the screen makes the call with something only the device has, together with other calls, or where a server cannot reach it | Every other API call as an HTTP action. One that wants a key your app sends itself runs in your app's code, so you are never asked for a key. Each action in your code gets a note from what the agent read: who it is for, what runs with it, where its result shows. Rendel reads it at once, with no new release |
| 9 | Verify | Your tests, analyzer and a debug build; runs the app once with the test key | Waits for the app to call in with its manifest |
| 10 | Test | — | Check questions: three to five questions; what fell short is rewritten once |
| 11 | Complete | Nothing more | A summary, the files changed and your to-dos |
On the file path, steps 4 to 8 are sections of rendel/setup.json, and the test runs when you import it. Steps 0 and 9 are the MCP path's: there the agent waits for your app to call in before it tests.
Where it writes
| Lands as | Live users see it | |
|---|---|---|
| Appearance, logo | The draft config | Published when the setup finishes |
| Persona | The persona draft | Published when the setup finishes |
| Knowledge | The knowledge draft: sources marked AI setup, indexed as soon as they are written | Published when the setup finishes |
| HTTP actions | Actions marked AI setup, on unless one needs a key | After you go live |
| Screens | Planned on the Screens page | Once a build that registers them runs |
Every write is keyed by a name the agent chooses (external_key), so running setup again updates what is there instead of adding a second copy. Nothing the agent writes deletes anything; something gone from your code is archived by a later sync.
Security
- A sign-in that reaches only your apps. On the MCP path you approve the agent once in your browser. It works only on apps your role lets you set up, one at a time, each named by the prompt you paste, and only in a setup session the console opened. The sign-in lasts 30 days from its last use, with access tokens that last an hour, and ends sooner if you leave the organization. Stop a session (on Home, or Settings › General › AI setup sessions) and the agent's next call in it is refused. On the file path there is no grant at all: the import code works while the session is open, at most 24 hours.
- No token in your repository or your prompt. Nothing the agent needs to keep is a secret.
- Nothing that looks like a credential is accepted. The server scans every write and refuses a password, an API key or a token, whichever path it came by; an import with one is refused whole (
422 secret_refused). The agent never asks you for a key either: an endpoint that wants one runs in your app's code, with the key your app already has. - It cannot publish a live app's look or persona. On a live app those changes wait in the draft until you publish them; knowledge, actions and screens apply as the agent sends them.
- It cannot read conversations, users, or any key but the two publishable ones, which are public by design.
- Your website is read by Rendel's servers, through the same guard that keeps knowledge links away from private addresses, never by the agent.
Every change is in your app's audit log under its setup session. Settings › General › AI setup sessions lists past and running sessions and stops a running one.
If it gets stuck
| What you see | What it means | What to do |
|---|---|---|
| A step turns red with Your agent got stuck | The agent stopped and said why | Fix what the reason names (often the project did not build before it started), then run it again. What it wrote stays and is updated, not duplicated |
A rendel tool is denied or missing | Claude Code has not been allowed the tools, or is not signed in | /permissions → Allow mcp__rendel__*, or /mcp → rendel › Authenticate. The agent writes rendel/setup.json meanwhile; import it |
| The import is refused | The answer's error.code says why: the file is not JSON or fails the schema, it is for another app, something looked like a credential, the session has closed, or the app is live | The Setup API reference lists each code. Fix the file and import it again, or start a new session from Home |
| Building and verifying never turns green | The app has not called in with the test key | Run the app once; check that Rendel.init runs at startup with the test key |
| Test conversation fails | Fewer than 80% of the check questions were answered from your information or your app | Read the answers on Home, add what was missing, and press Run check questions under Go live |
| The app is not Flutter or web | The agent stops at Discover and says so | Native iOS, native Android and React Native are planned |
Writing your own client
Both paths are documented: the MCP tools and the Setup API, with the file's JSON Schema.