Guide

You built it with Cursor or Claude Code. Who keeps it running?

Whoever owns production: where it runs, how changes reach it, where the keys live, the backups, and who hears about errors first. Here’s each part, and how to set it up in Cursor, Claude Code and GitHub.

Published 7 min read

A repo going to production: code on GitHub, keys out of the code, checks on every change, backups restored, errors watched, someone on call.

In short

  1. Cursor and Claude Code write and change code very well. Neither one hosts your app, watches it at night or answers when it breaks.
  2. Whoever maintains it owns five things: where it runs, how changes reach it, where the keys live, the backups, and who hears about errors first.
  3. An app built in an AI editor already lives in a real repository, which makes all five easy to set up.
  4. The single biggest fix: every change, from a person or an editor, goes through a pull request with checks before it reaches production.

01The short answer

Someone has to own production

Cursor and Claude Code are AI editors: they read a whole project and change code across it12. That is the building part, and they are very good at it. Production is a different job. Something has to run the app, something has to check each change before customers see it, and someone has to pick up the phone when it breaks.

So the honest answer to “who maintains a Cursor or Claude Code app” is: whoever owns production. That can be you, a developer, or a team like ours. What matters is that each of these five has a name next to it:

  • Where it runs: hosting, the database and the domain, in accounts you own.
  • How changes reach it: a path from the editor to production with checks on the way.
  • Where the keys live: API keys and passwords kept out of the code.
  • Backups: taken every day, and one of them restored to prove it works.
  • Who hears about errors first: you or your team, before your customers.

The good news: an app built in an AI editor already lives in a real code repository. Everything below builds on that.

02First

Get the repository and the keys right

  • One home for the code. Push it to GitHub, with the main branch as the version that runs in production. If the only copy is on one laptop, fix that before anything else.
  • No keys in the code. API keys, database passwords and payment keys belong in your host’s environment settings, not in files an editor can commit. GitHub’s push protection blocks pushes that contain secrets; it is on by default for your own pushes to public repositories, and a repository admin can turn it on for the repository3.
  • Tell the editor what it may not read. In Claude Code, a deny rule such as “Read(./.env)” in the project’s .claude/settings.json stops it reading your secrets file. Commit that file so everyone on the project gets the same rule4.
  • Write the project’s rules down once. Cursor reads project rules from .cursor/rules (files ending in .mdc), or a plain AGENTS.md in the project root5. Claude Code reads CLAUDE.md6. Put the things that must never happen there: never edit a database change that has already run, never touch payments without a test, never commit the .env file.

03Every change

Checks between the editor and production

The most common way an app built in an AI editor breaks in production is a change that fixed one thing and broke another. The answer isn’t to stop using the editor. It’s to put checks between the editor and your customers.

  • Changes go through a pull request. In GitHub, a ruleset on main with “Require a pull request before merging” means nothing reaches production without one7.
  • Required checks. Add a workflow that builds the app and runs its tests on every pull request, then turn on “Require status checks to pass” so a failing build can’t be merged7.
  • A second reader. Cursor’s Bugbot reviews pull requests for bugs, security issues and code quality problems, and takes project context from .cursor/BUGBOT.md (your .cursor/rules files don’t apply to it)8. Claude Code can review pull requests through its GitHub Action, which also answers @claude in a pull request or issue9. Pick one, then read what it finds: a review nobody reads is no review.
  • A copy to try things on. A staging copy of the app with its own database, so a change meets test customers before real ones.

Keep the keys these tools need in GitHub’s secrets, never in the repository; Claude Code’s own guide says the same9.

04Once it’s live

What production needs every day

  • Hosting in your name. The app, its database and its domain in accounts you own, with a team member added rather than a shared password.
  • Backups you have restored. Daily backups of the database and uploaded files, and one test restore, so you know they work before the day you need them.
  • Errors and uptime watched. Error tracking inside the app and an uptime check every minute, sent to a person and not an inbox nobody reads. This is what monitoring means in practice.
  • Updates on a rhythm. The packages the app depends on, updated and tested regularly, not only when something breaks.
  • Someone on call. A name and a number for 2 AM, and a short note of what to do first.

A longer version of this list, for any app built with AI, with checks you can do without code, is our guide You built your app with AI. Who looks after it now?

05This week

Ten lines to check

  • The code is on GitHub, and main is what runs in production.
  • No keys or passwords anywhere in the repository.
  • Claude Code can’t read .env; Cursor and Claude Code both have the project’s rules written down.
  • Main only changes through a pull request.
  • Every pull request builds and runs the tests, and a failing one can’t be merged.
  • Someone, or a review tool, reads every change before it merges.
  • A staging copy exists for trying changes.
  • Backups run daily, and one has been restored.
  • Errors and uptime alert a person.
  • There is a name for 2 AM.

06Getting help

When it’s time to get help

If the honest answer to “who owns production” is “nobody yet”, that is the moment, ideally before the first bad night rather than after it. It’s what we do for apps built with Cursor or Claude Code: we take the repository, set production up in your name, put the checks in place and stay on call, while you or your developer keep building in the editor. It’s the same care a 600-person company gets from us, on a platform we built and still run.

Questions people ask

Who maintains an app built with Cursor or Claude Code?

Whoever owns production: hosting, the path changes take to production, the keys, backups, errors and the 2 AM call. The editor writes the code; someone still has to own those five.

Can Cursor or Claude Code maintain the app by themselves?

They can write changes and review pull requests. They don’t host the app, watch it at night or answer a phone, so someone has to own those parts.

Should I stop using the editor once the app is live?

No. Keep building with it, and put checks between it and production: a pull request for every change, a build and tests that must pass, and someone who reads the change.

Should Claude Code or Cursor push straight to main?

No. Require a pull request and passing checks on main, so every change, from a person or an editor, takes the same path.

Where should my API keys live?

In your host’s environment settings or a secrets manager, never in the repository. In Claude Code, add a deny rule so it can’t read .env.