How to run an app Claude Code, Codex or Cursor built for you

By Ihor Klymchuk, Co-founder of Eggie, CTO with 13+ years in software · Updated

To run an app built with Claude Code, Codex or Cursor, ask the agent to start it and give you the address. It will start a small local server and print something like http://localhost:3000. Open that address in your browser and keep the window where the server is running open: close it, and the app disappears. Most “it doesn’t work” moments come from that last part.

Below: what that address actually is, why it breaks, and the exact sentences to send your agent when it does.

What “localhost:3000” means

localhost is your own computer pretending to be a website. When your agent “runs” the app, it starts a little program, a server, that waits for your browser to ask for pages.

The number after the colon is the port: think of it as a door number. Your app lives behind door 3000 (or 5173, or 8000, depending on what the agent used). Two apps can’t use the same door at the same time.

Three things follow from this, and they explain almost every problem:

  1. The app only exists while the server is running.
  2. localhost only works on your computer. A friend who opens the same link is asking their computer, which has nothing there.
  3. If the app needs a database, the database has to be running too, not just the app.

How to run an app built with Claude Code, step by step

  1. Ask the agent to start the app. Paste this:

    Start this project so I can see it in my browser. Tell me the exact address to open, and tell me if anything else (like a database) needs to be running.

  2. Leave the window open. The agent usually starts the server in a terminal or a background task. Closing it, closing the agent, or restarting your computer stops the app.
  3. Open the address the agent gave you, including the port number.
  4. When you come back tomorrow, the app won’t be running anymore. Ask the agent to start it again, same as step 1.

Why it stops working, and what to tell your agent

What you see What’s going on Send your agent
“This site can’t be reached” / “refused to connect” The server isn’t running “Start the project again and give me the address.”
“Port 3000 is already in use” An old copy is still running, or another app took the door “Something is already using the port. Stop the old process or use another port.”
It worked yesterday, not today You restarted, or closed the window, so nothing is running “Start the project again.”
A blank white page The app crashed while loading “The page is blank. Check the browser console and the server log and fix the error.”
Errors about a database The database isn’t installed or isn’t running “Does this project need a database? Set it up and start it, then start the app.”
A friend can’t open your link localhost only means your computer You need a public link or a deploy (see below).
Works on your laptop, not on your phone Same reason: your phone isn’t your laptop Same as above.

Two habits that save a lot of time:

When the manual way gets painful

It’s fine for one small project. It starts to hurt when:

The easier way: let Eggie run it

Eggie gives your agent a ready-made workspace on your computer. Your agent writes the code as usual; Eggie handles running it:

You still use the agent you already pay for: Claude Code, Codex or Cursor.

Join the Eggie beta →

FAQ

Do I have to keep the terminal open?

If you run the app yourself, yes. The app is a running program; closing its window stops it. You can ask your agent to run it in the background, but it will still stop when you restart your computer.

Because localhost always means “this computer”. On your friend’s device it points to their device, where your app doesn’t exist. To share, you need a public link (a tunnel) or to deploy the app to a server.

Can I run two projects at the same time?

Yes, as long as each one uses a different port. If you see “port already in use”, that’s the conflict. Ask your agent to move one of them to another port.

Do I need to install anything to run what the agent built?

Usually something, yes: the runtime the project uses (Node.js or Python, for example) and sometimes a database. A good agent installs what’s missing if you ask, but on your own computer you’ll want to approve each install. See Is it safe to let an AI coding agent run commands on your computer?

Closed beta

Join the Eggie beta

Eggie isn't open to everyone yet. We're letting testers in a few at a time — leave your details and we'll email you an invite.

We'll email you about your beta invite. Privacy policy

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.