GuidesUpdated

How do I find the command that runs an AI-built app?

Find the folder, runtime, run script and local URL for an AI-built app, and read the first error before you ask an agent to fix setup.

On this page

An agent can say the app is done while you still have no page to open. The run command belongs to the project; there's no universal recipe. Find it in the project's instructions, start it from the right folder, and check the printed URL before judging the feature.

Canopy Servers panel showing saved commands and local process output
Canopy Servers panel showing saved commands and local process output

Read the project's own instructions first

Look for README.md or a setup doc in the project folder before trying commands from search results. JavaScript projects declare scripts in `package.json`, and `npm run <name>` runs one. Python, Rust or container projects use other commands. Don't assume `npm run dev` exists. A website, API and worker may each need their own command.

Check prerequisites before you start

Check the runtime the project needs and whether it's installed. The practice project needs only Python 3: open the unzipped folder, run `python3 -m http.server --bind 127.0.0.1 4173`, then open `http://127.0.0.1:4173`. The bind keeps the server on your machine; Python's default can expose it more widely, and its docs warn against production use. Your project may also need dependencies, environment variables, a database or a login. Never paste secrets into chat.

Read the first error literally

Run the documented command from its folder and leave it running. Copy the command and the first relevant error. A missing executable, missing script, busy port and failed API call are different problems. Don't ask the agent to rewrite the product until you know the app started. If it prints a URL, open that exact URL; a server can still serve the wrong folder or checkout.

Let the message pick the next check, not a random replacement command.
What you seeWhere to lookWhat to send the agent
command not foundRuntime or CLI installation and PATHCommand, platform, README prerequisite
missing scriptCurrent folder and package.json scriptsWorking directory and scripts section
port already in useAnother process on the documented portPort, process output, expected URL
server ready, page failsBrowser URL, API, console or wrong checkoutExact URL, browser error, service log, branch

Ask the agent for proof it ran

Ask: 'Read the README and package or runtime config. Tell me the folder and command for each component. Run only what a local preview needs. Report the URL, first log line and any missing prerequisite. Don't change product code to hide a setup error.' Check it really ran them. A mockup screenshot or 'done' message isn't a working app; open the page yourself.

Save the commands that worked

Save the working command as a project component in Canopy's Servers panel, with the right folder. Next time, check whether it's already running before starting another. Canopy shows output and detected ports and opens a local Preview. Add the URL and startup order to the README too. A saved command is a restart shortcut, not hosting.

Copyable resources

Run-command request

Give this to a coding agent pointed at the project folder.

Find how to run this project locally. Read README.md and the runtime or package config first.
For each component, report: folder, exact command, prerequisite, expected log line and local URL.
Start only the local services a preview needs. If a command fails, show the first relevant error and diagnose setup before editing product code.
Do not print or commit secrets. Do not deploy.
When ready, show the running page and tell me what to test. I will check the page, logs and final diff.

Frequently asked questions

Is npm run dev the command for every AI-built website?

No. It works only when the project defines that script and the tools are installed. Read the project's instructions and package config.

Why does the command work for the agent but not for me?

Compare working directory, runtime version, installed dependencies, environment and port. Ask the agent for the exact command and first successful log line from the same checkout.

Can I just double-click index.html?

A simple static page may open that way, but storage, modules, requests and frameworks often need a local server. Use the project's documented method; the practice board uses a small loopback HTTP server.

Does saving a run command in Canopy publish my app?

No. It starts a local process on your computer. Hosting is a separate decision.

More questions and answers →

Sources and further reading