Getting started

Local quickstart

Set up Revyse in your Next.js app with one command. Then click any text or picture to change it, or ask for a change, on your machine, with History to undo.

Revyse opens in your running Next.js dev server. Click any text or picture on the page to change it there, or say what you want in the chat: Revyse writes it into your files, your page updates, History undoes it, and Publish commits and pushes it or opens a pull request. Nothing leaves your machine except your request and the source files it needs (see how Revyse handles your code and data).

You need

  • Node 22 or newer, and your project's package manager (pnpm, npm, yarn or bun).
  • A Next.js app (App Router or Pages Router; Next 14 to 16 are tested) that runs locally.
  • A Revyse account. revyse init creates the project on Revyse for you (or connects to one you already have). A new organization starts on Free, with 150 credits a month; an owner upgrades on its Billing page.
  • Optional, for the browser check: Chromium (npx playwright install chromium) or Chrome.

1. revyse init

In your app's directory:

npx revyse init

It sets everything up, asking before each step:

  1. It shows how Revyse handles your code and asks you to accept it.
  2. It shows the next.config change that adds withRevyse() as a diff you approve.
  3. It writes revyse.config.json and adds .revyse/ to .gitignore.
  4. It installs revyse and @revyse/next as dev dependencies, with your package manager.
  5. It connects the app to Revyse. It asks what to call the project (the name in your package.json unless you type another), then your browser opens: sign in, check the code matches your terminal, and click Create and connect. You can pick an existing project instead. An app that's already connected is shown its project, and keeps it unless you ask for a different one. The CLI gets a token for that one project, stored in your home directory.
  6. It connects your GitHub repository (from your git remote) and the Vercel project that deploys the app (from .vercel/project.json, or one you name), so changes from your live site and the dashboard ship, each with a preview. When Revyse can't see them yet, your browser opens to install its GitHub App or Vercel integration, and init waits. If the project is connected to another repository or Vercel project than your code's, it offers to switch.
  7. It sets up your live site: it registers the site's addresses (your Vercel project's domains, without typing), adds the live option to withRevyse(), and adds Revyse to your Content Security Policy if you have one, each as a diff you approve. See Make changes on your live site.
  8. On Vercel, it offers exact locations, so a selection on your live site leads Revyse to the exact line of code: a build token set on Vercel for you, and two small edits you approve.
  9. It commits and pushes what it changed (one question), and waits until your live site serves Revyse. Nothing is left to do by hand.

Decline the disclosure and nothing is written. --yes accepts the prompts, --force reviews the disclosure and next.config again, and --no-connect sets up without signing in (CI). Running init again finishes a setup that was left halfway: it skips what's done. If your revyse.config.json runs your tests after every change, it asks once whether to keep doing that: they slow each change down. No (the default) removes test from scripts.

The CLI talks to https://revyse.dev. To use a Revyse you run yourself, set REVYSE_API_URL (or --api-url) first, for example http://localhost:3000. revyse login connects to another project later, revyse whoami shows the connection and revyse logout revokes it (owners can revoke any token from the project's settings).

revyse.config.json is yours to edit:

Field Meaning
sourceDirs Directories Revyse may read and write (detected from tsconfig paths and the usual layouts).
exclude Globs that are never read, on top of .env, keys, credentials, node_modules and .git.
scripts Your package.json script names for typecheck, lint, test, build. Only these ever run.
appOrigins Where your dev server runs; the overlay and the browser check are allowed from here only.
agentPort The local agent's port (default 4545). If another project's Revyse is using it, this project's takes the next free one by itself.
engine "agent" (default), the coding agent: new components, back-end code, several files; "classic" for one-shot front-end edits. See supported-changes.md.
testsOnEachChange Whether your tests run after every change. init asks once, and records the answer here; scripts.test is what runs.

Commit revyse.config.json: cloud changes (next guide) read it from the repository.

2. Start your app

Run your dev server as usual (npm run dev). Revyse starts with it: the dev server prints [revyse] Ready. Open the app and click the Revyse button in the corner; the chat opens at the bottom of the page. It only exists in development builds; a production build has no Revyse code in it.

3. Edit the page itself

Click any text on the page and type. It opens where it is, keeping its width and its lines. Enter, or a click elsewhere, keeps it; Escape puts the words back. ⌘ or Ctrl and click uses a link or a button as usual. Whatever is open gets a small bar of tools beside it:

  • Text: a color from your theme (or a new one, saved into your theme), and bold, italic, underline or a link on the highlighted words.
  • Pictures, GIFs and videos: click one to replace it with an upload, a link or one of your site's pictures, or to describe it. Files up to 5 MB go into public/uploads/.
  • Sections, cards and pills: click their own area for a background color or picture; Parent reaches the part around them.
  • Repeated items, like a card in a list: duplicate, move earlier or later, or remove, where the list is written in your code (in that file, imported from another, or handed to a component). A list your page loads while it runs, like products from a database, says From the site's data instead: change those where that data is kept.

Revyse's own code writes each edit into the file that draws it, where your code writes those words or that picture. No model is used, it costs no credits, nothing is sent to Revyse, and your dev server's hot reload shows it. Revyse writes only inside your sourceDirs (and public/ for pictures), never .env, keys, lockfiles or package.json; when it can't, it says why and puts the page back.

4. Ask for a change

  1. Select (optional). Choose Select an element in the chat's tools, then click something on the page. The chat shows what it captured: tag, visible text, and where it's written in your code. Form values are never captured. Select nothing to ask about the whole page, or for a whole feature.
  2. Describe. Say what should change, in words, and send it. Pick a model if you like, or leave it on Default. Each model shows its weight: what a change costs on it against Claude Sonnet 5.5 (×1). Owners can turn models off and choose the default.
  3. It's made. The chat empties at once, ready for your next request: this one is in History, and the part of the page it's about glows while Revyse works. Revyse plans it and writes it into your files in one go, with no Apply step, and the page updates. If the request is unclear it asks first: its questions take the chat's place (up to three, each with a recommended answer you can accept in one click), and once you've answered it carries on. The classic engine refuses back-end work and says why; the agent engine does it, and says what it leaves out.

Your configured checks (typecheck, lint, tests if you turned them on, and the page in a browser) run afterwards in the background. They never hold the change up. Their results are on the change's page in the dashboard, and the dev server prints a one-line summary.

If you edit a file while Revyse is working, it stops rather than overwrite you, says what changed, and offers to re-plan from the latest version.

5. History

Once something has changed, History sits at the top right of the page: every edit and request since the dev server started, newest first.

  • Undo puts one back exactly; Discard all puts back everything.
  • A request still being made has Stop: it's cancelled, and nothing it planned is written.
  • A finished request has Revise: one more request about the same place.
  • A request's row opens its page on Revyse, with each step it took.

History starts over when the dev server restarts; your edits stay in your files.

Publish offers two ways, for what's in History:

  • Commit and push to your branch: the files Revyse changed, and only those, are committed with your own git name and pushed. Your other changes stay as they were.
  • Open a pull request: Revyse makes a new branch (revyse/…) with those files, moves your working copy onto it, pushes it and opens the pull request on GitHub, against the branch you were on. Switch back once it's merged. Without your repository connected to Revyse, the branch is still pushed and Revyse links GitHub's page to open it.

Publish says where the commit goes: the remote's name and its repository. If your clone has more than one remote (your company's repository and a demo, say), it asks which, starting with your branch's own; tick Use as default and Revyse goes there next time. The default is kept in your clone's own git config (revyse.remote), not in a file you commit.

Git runs on your machine with your own credentials. A file you had edited yourself before Revyse wrote it goes in whole, and Publish says so. If the push is refused (your branch is behind, say), the commit is made and Publish says why, in git's words.

6. The dashboard

Every change is on the project page in the dashboard with its conversation, plan, files, diff, checks with evidence, cost, and a timeline with the reason for each step. Leave a thumbs up or down there, or report a problem; it reaches Revyse with the change attached.

If something is off

  • The overlay doesn't appear: is withRevyse() in next.config, is the dev server running on an origin listed in appOrigins? The dev server's [revyse] lines say what's wrong (another app on the agent's port, for example). Restart the dev server after init; if the Next dev cache misbehaves, delete .next.
  • "Revyse isn't sure which file renders this element": Revyse couldn't tell which file draws it (a component rendered by a library, or Turbopack with a Pages Router app without a custom _document). Select it again, or something near it; the agent engine searches your code instead.
  • "not logged in" or "doesn't recognise this machine": npx revyse login again.
  • "no credits left" or "paused": an owner sees the balance on the organization's Credits page, upgrades on its Billing page, and finds the controls in the project's Settings.