Can Manus AI build a website? Yes — here's the build
Prompt Manus into a static site, export the files, run a 90-line checker against them, and deploy the result to a domain you actually control.
Manus builds the site and hands you a *.manus.space URL
Manus — the general-purpose agent that launched as an invite-only preview on 6 March 2025 and opened to general availability that May — will build a four-page static site inside its own sandbox in a single run — writing the files, opening a browser against them, deploying the result — and hand back a live *.manus.space link without you opening a terminal. That link is also the problem. It's a demo on somebody else's subdomain, and the files are sitting in a zip you haven't downloaded. Six typed commands move them to Cloudflare Pages under a domain you control, with a 90-line checker wedged between the export and the deploy. The ten steps below are the whole procedure, and most of the elapsed time is the agent working.
Prerequisites:
- A Manus account at manus.im. Work is metered in credits — the pricing page is the only number I'd trust, since the tiers have moved since launch.
- Python 3.9 or newer, confirmed with
python3 --version. No pip installs; the checker's four imports —os,sys,html.parser,urllib.parse— are all standard library. - Node 18+ for
npx wrangler, confirmed withnode --version. Current Wrangler releases, the v4 line included, require Node 18 or newer, andnpxfetches it per invocation, so nothing is installed globally. - A Cloudflare account. The free tier is enough for Pages: 500 builds a month, one build at a time, 100 custom domains per project and unmetered bandwidth, and a direct upload with
wrangler pages deploydoesn't consume a build at all. - A domain you own, if you want step 8. Optional.
The spec you paste in
The quality of what comes back is decided here, not in the follow-up messages. An unconstrained prompt hands the stack choice to the model, and coding agents reach for whatever dominates their training data — for "website," that is a JavaScript framework with a build step, the thing create-next-app or npm create vite scaffolds by default. The artifacts that follow are consistent enough across agent-built sites to plan around: a package.json nobody asked for, images referenced from third-party URLs that can go dead, and root-absolute links like /products/ that resolve on a host with directory rewriting and return 404 from a flat folder of four files. Constrain the stack and the file layout up front.
Build a 4-page static marketing site for "Northwind Supply", a fictional
industrial parts distributor.
Hard constraints:
- Plain HTML and CSS only. No React, no Next.js, no build step, no npm.
- Put everything in one directory named "site", flat: index.html,
products.html, pricing.html, contact.html, plus an assets/ folder.
- Every internal link is RELATIVE (products.html, not /products/).
- Every <img> has an alt attribute. Every page has a unique <title> and a
<meta name="description">. Exactly one <h1> per page.
- Contact page: a form posting to https://forms.example.com/northwind.
That is a placeholder endpoint. Do not build a backend.
- No images fetched from the web. Use inline SVG or CSS for graphics.
When the files are written: deploy it, then zip the "site" directory and
attach the zip here so I can download it.
Two of those lines exist because of how static hosting works, not because of anything specific to Manus. Relative links survive being moved between hosts. Root-absolute ones assume they are sitting at the domain root, which they won't be the moment you preview from a subdirectory or a hash-prefixed Pages URL. And a static export has no server, so a contact form needs an endpoint from somewhere else — naming a placeholder on forms.example.com stops the agent from inventing a PHP mailer that will never run.
The alt, <title> and <h1> lines map one-to-one onto the checks in the next section, and the severity each one gets is borrowed from the specs rather than invented. Text alternatives for non-text content are WCAG 2.1 Success Criterion 1.1.1, a W3C Recommendation since 5 June 2018, and a Level A requirement — the lowest of the three conformance tiers, A, AA and AAA — so a missing attribute is an error. WCAG 2.2, a Recommendation since 5 October 2023, carries 1.1.1 forward unchanged, and the HTML Living Standard independently requires an alt attribute on img outside a short list of enumerated exceptions. It is also the check most worth automating: the 2024 WebAIM Million found detected WCAG 2 failures on 95.9% of the one million home pages surveyed, with missing image alt text among the most common failure types in every year the survey has run. The HTML Living Standard permits at most one <title> element per document, which makes a missing or duplicated one unambiguous; it sets no such limit on <h1>, so a page with two of them is a warning. A meta description is required by no spec at all — Google Search Central documents it as one input to a snippet the engine may rewrite — so that too is a warning. Writing the constraints into the prompt costs one sentence. Retrofitting them afterwards costs a round trip per page.
Build it
- Sign in at manus.im and open a new task. You should see a chat pane on the left and a panel on the right that shows the agent's files, terminal, and browser as it works — that panel is the evidence, the chat is the summary.
- Paste the spec above. Before it writes any HTML, Manus writes a task list. Read it. If the plan mentions
npm, a framework, or apages/directory, correct it now — that is the cheapest intervention point in the whole run. - Let it build. You'll see it write files, then open its own browser against them. When it finishes it posts a link on a
*.manus.spacesubdomain. Open the link and click every item in the nav, including the footer links. - Ask for the zip if it didn't attach one:
zip the site directory and attach it here. Download, thenunzip site.zip -d .andls site. You want to see exactly:assets contact.html index.html pricing.html products.html. If you seepackage.jsonornode_modules, the constraint was ignored — see the failures section below. - Save the script in the next section as
check_site.pynext to thesitefolder. Runpython3 check_site.py ./site. The first line of output should readchecked 4 pages under ./site. - Copy every
ERRORline back into the Manus task verbatim and ask it to fix them and re-zip. Agents fix errors far better from literal tool output than from a description of the problem. Re-run until the last line reads0 errors. A single missingaltis faster to fix by hand than to round-trip. - Authenticate Wrangler:
npx wrangler login. A browser tab opens for the OAuth grant; the terminal then printsSuccessfully logged in.Runnpx wrangler whoamito see which account email and account ID — a 32-character hex string — you are about to deploy into, worth checking if you have more than one. - Deploy:
npx wrangler pages deploy ./site --project-name=northwind-site. Wrangler uploads the files and prints✨ Deployment complete! Take a peek over at https://<hash>.northwind-site.pages.dev. Every deploy gets its own<hash>URL, whilenorthwind-site.pages.devtracks the latest production deployment. Open the hashed URL and click the nav again — this is where relative-vs-absolute link bugs surface. - Attach your domain in the Cloudflare dashboard under the project's Custom domains tab, per the Pages docs. A domain already on Cloudflare gets its record added for you; a domain hosted elsewhere needs a CNAME pointing at
northwind-site.pages.dev, and an apex domain works because Cloudflare flattens the CNAME at the zone root. Watch for the certificate state to reachActivebefore you point anything at it — usually minutes, though Cloudflare documents issuance as taking up to 24 hours. - Make the check a gate, not a habit:
python3 check_site.py ./site && npx wrangler pages deploy ./site --project-name=northwind-site. Exit code 1 from the checker means no deploy happens.
check_site.py
Zero dependencies. It walks a directory, parses every .html file with the standard library's html.parser, resolves internal links against the filesystem, and exits non-zero on anything it classes as an error. Three error classes: missing alt, broken internal links, and placeholder href="#". Two warning classes: missing meta descriptions and wrong <h1> counts.
Three resolution rules do most of the work. Anything with a scheme or a netloc — https:, mailto:, tel: — is skipped, because the script never makes a network request. A bare #fragment is skipped as same-page. An extensionless path like /pricing is tried as both pricing.html and pricing/index.html before being reported broken, and a path that lands on a real directory is resolved to that directory's index.html. Percent-encoding is decoded with unquote first, so an href of our%20catalog.html is checked against the file actually on disk. Character references need no handling at all: HTMLParser has defaulted to convert_charrefs=True since Python 3.5, so an href written as a.html?x=1&y=2 arrives at resolve() already decoded.
#!/usr/bin/env python3
"""check_site.py - static checks on an exported site directory.
Usage: python3 check_site.py ./site
Exit 0 if clean, 1 if any ERROR was found.
"""
import os
import sys
from html.parser import HTMLParser
from urllib.parse import urlparse, unquote
class PageParser(HTMLParser):
def __init__(self):
super().__init__()
self.title = ""
self.meta_description = ""
self.links = []
self.images = []
self.h1_count = 0
self._in_title = False
def handle_starttag(self, tag, attrs):
a = dict(attrs)
if tag == "title":
self._in_title = True
elif tag == "h1":
self.h1_count += 1
elif tag == "meta" and (a.get("name") or "").lower() == "description":
self.meta_description = (a.get("content") or "").strip()
elif tag == "a" and a.get("href") is not None:
self.links.append(a["href"])
elif tag == "img":
self.images.append((a.get("src", ""), a.get("alt")))
def handle_endtag(self, tag):
if tag == "title":
self._in_title = False
def handle_data(self, data):
if self._in_title:
self.title += data.strip()
def resolve(root, page_path, href):
"""Filesystem path an internal href points at, or None if not local."""
parsed = urlparse(href)
if parsed.scheme or parsed.netloc:
return None # http(s), mailto:, tel:
path = unquote(parsed.path)
if not path:
return None # pure #fragment, same page
if path.startswith("/"):
target = os.path.join(root, path.lstrip("/"))
else:
target = os.path.join(os.path.dirname(page_path), path)
target = os.path.normpath(target)
if os.path.isdir(target):
return os.path.join(target, "index.html")
if not os.path.splitext(target)[1]:
for candidate in (target + ".html", os.path.join(target, "index.html")):
if os.path.exists(candidate):
return candidate
return target
def main(root):
pages = []
for dirpath, _dirs, files in os.walk(root):
for name in files:
if name.endswith((".html", ".htm")):
pages.append(os.path.join(dirpath, name))
if not pages:
print("ERROR no .html files under %s" % root)
return 1
errors, warnings = [], []
for page in sorted(pages):
rel = os.path.relpath(page, root)
with open(page, encoding="utf-8", errors="replace") as fh:
parser = PageParser()
parser.feed(fh.read())
if not parser.title:
errors.append("%s: no <title>" % rel)
if not parser.meta_description:
warnings.append("%s: no meta description" % rel)
if parser.h1_count != 1:
warnings.append("%s: %d <h1> tags (want exactly 1)"
% (rel, parser.h1_count))
for src, alt in parser.images:
if alt is None:
errors.append('%s: <img src="%s"> has no alt attribute'
% (rel, src))
for href in parser.links:
if href.strip() in ("", "#"):
errors.append("%s: empty or placeholder href" % rel)
continue
target = resolve(root, page, href)
if target and not os.path.exists(target):
errors.append("%s: broken link %s -> %s"
% (rel, href, os.path.relpath(target, root)))
print("checked %d pages under %s" % (len(pages), root))
for w in warnings:
print("WARN " + w)
for e in errors:
print("ERROR " + e)
print("%d errors, %d warnings" % (len(errors), len(warnings)))
return 1 if errors else 0
if __name__ == "__main__":
sys.exit(main(sys.argv[1] if len(sys.argv) > 1 else "./site"))
First run on a fresh export:
checked 4 pages under ./site
WARN pricing.html: no meta description
WARN index.html: 2 <h1> tags (want exactly 1)
ERROR contact.html: <img src="assets/headshot.png"> has no alt attribute
ERROR index.html: broken link /pricing/ -> pricing/index.html
2 errors, 2 warnings
That last error is the one worth staring at. /pricing/ resolves on a host that rewrites directories, and resolves to nothing in a flat folder of four files. It works in the Manus preview and breaks on yours.
An empty alt="" passes this checker on purpose. Per MDN, an empty alt is a decision about a decorative image; a missing attribute is an omission.
Know what it doesn't cover. Because it makes no network requests, it cannot tell you whether https://forms.example.com/northwind exists, whether an external stylesheet still loads, or whether a mailto: address is real. It checks local structure only — the class of failure that appears when files move between hosts.
What the static export can't do
The four-page site is the easy case.
| You ask for | What a static export gives you | What you still have to own |
|---|---|---|
| Marketing pages | Everything. HTML, CSS, assets. | Hosting, domain, TLS |
| Contact form | Markup and client-side validation | A form endpoint that receives POSTs — a hosted service, or a Pages Function at functions/api/contact.js, which serves the route /api/contact on the Workers free tier's 100,000 requests a day |
| Blog with an editor | Hardcoded post pages | A CMS, or a build step and a repo |
| Login / accounts | A login screen that does nothing | Auth provider, session store, database |
| Search | Client-side filter over a JSON file | A real index, once the file gets big |
| Analytics | Nothing | A script tag and a consent decision — cookieless options such as Cloudflare Web Analytics narrow the second question |
Ask for the bottom half and Manus builds an application. Then you're deploying a Node service rather than uploading files, and everything above stops applying at step 4. Keep the first agent-built thing you ship in the top half, and add the dynamic parts afterwards as separate, capped, metered pieces.
When it doesn't work
It built an app, not a site. ls site shows package.json, src/, and often node_modules. Deploying that folder uploads source instead of a built page, and if node_modules came along, Wrangler fails outright — Cloudflare Pages caps a deployment at 20,000 files and 25 MiB per file, and a single npm install for a React starter routinely writes tens of thousands of files, well past that ceiling. Fix: either restate the constraint and have Manus rebuild as plain HTML, or accept the framework, run its build in the sandbox, and deploy the output directory instead of the project root — ./out for a Next.js static export, which only appears once output: 'export' is set in next.config.js, the key that replaced the standalone next export command in Next.js 13.3 and became the only route to a static export after next export was removed in Next.js 14, or ./dist for Vite, whose location is set by build.outDir and defaults to dist. Deploying the wrong folder produces ✘ [ERROR] Directory not found.
Links work on manus.space and 404 on your host. The checker reports broken link /products/ -> products/index.html before you ever deploy, which is the whole point of running it before the upload. Fix: paste those exact lines back to the agent with "convert all internal links to relative paths matching the flat file layout". Re-run the checker. Don't fix this with _redirects rules — Pages will accept up to 2,100 of them, 2,000 static plus 100 dynamic, and you'll be maintaining a rewrite table for four pages.
The task stops mid-build. Manus meters work in credits, so a long build stops when the budget runs out, not when the work finishes. The fix is scope. Ask for four pages, not fourteen, and run a second task for the rest once the first one is clean. This is the generic containment problem with any agent, not a Manus quirk — unbounded or over-long runs are the most common production failure mode, and the fix is always a cap enforced outside the model. Credits are that cap here. For why the cap belongs outside the agent's own reasoning, see autonomous agents, defined by who chooses the next step.
Wrangler won't deploy. ✘ [ERROR] Authentication error [code: 10000] means the token or session isn't valid — run npx wrangler login again, confirm the result with npx wrangler whoami, and check you're deploying into an account that has Pages enabled. Record what npx wrangler --version prints while you're there, since npx fetches a fresh build and error text drifts between major versions. The full flag list is in the Wrangler command reference.
The part that matters after it's live
A *.manus.space URL is a demo. The files on your machine, in a repo, deployed by a command you can run again, are a site. The difference shows up the first time you want to change a price, or the vendor changes a default, or you want the thing to exist in five years.
I built Metadata.io from $0 to $15M ARR with the marketing stack mostly in other people's products, and the only parts I never worried about were the ones where I held the files. Same judgement applies here. Let the agent write the HTML. Keep the HTML.
And watch the meter, because credits are spent on the runs that produced broken links too. You pay for failed attempts at the same rate as successful ones, which is exactly why the check runs before the deploy and not after. The margin and containment math on any agent you put into production starts there.
Sources
- Manus — What Manus is: a general agent that runs in its own sandbox with a shell and browser, and publishes sites to *.manus.space subdomains
- Manus pricing — Manus meters work in credits; plan tiers and credit allotments have changed since launch, so check before budgeting
- Cloudflare Pages — Direct Upload — Deploying a local folder of static assets with Wrangler
- Cloudflare Pages — Limits — 20,000 files per deployment and 25 MiB per file
- Wrangler commands — wrangler pages deploy and wrangler login syntax
- Cloudflare Pages — Custom domains — Attaching your own domain and certificate status
- Python html.parser — Standard-library HTML parsing used by the checker script, no dependencies
- MDN — <img> alt attribute — alt is required for non-decorative images; a missing attribute is an error, an empty one is a decision