lobsite! Sign in Sign up

Docs

Quick start

In a built project, run one command. No account needed: the site lasts 6 hours unless you log in and claim it.

npx lobsite

The folder is the argument, dir in lobsite.toml, or the first of dist/, build/, out/, _site/, public/. Only files that changed upload.

AI agents

Coding agents (Claude Code, Cursor, Codex and others) deploy with the same command. Under an agent the CLI never asks a question, and its output ends with a "Tell the user:" line with the URL and, for a site without an account, the claim link that keeps it.

npx lobsite

There is also an MCP server for coding agents, a remote one for ChatGPT and Claude.ai, and a curl command for sandboxes without Node. Set up your agent.

MCP server

Lobsite's MCP servers let an AI assistant publish and manage sites for you, from plain requests such as "put this page online" or "change the opening hours on my site and show me a preview".

  • Local, for coding agents (Claude Code, Cursor, Codex and others): npx -y lobsite@latest mcp deploys a project folder.
  • Remote, for chat assistants (ChatGPT, Claude.ai): add a custom connector with the URL https://mcp.lobsite.com. Temporary sites need no account; connect your Lobsite account to let the assistant work on the sites you choose, as previews you publish when you're ready.

The MCP server page has what each server can do, example prompts, the tools, the set-up for each client and how connecting your account works.

Drag and drop

Sign in and drop a folder or a zip anywhere on the dashboard. The same checks run before anything uploads; secret files are always left out.

lobsite.toml

site = "quiet-fox-4821"
dir  = "dist"
spa  = false            # true: paths that aren't files open index.html

[[redirects]]
from   = "/blog/:slug"
to     = "/posts/:slug"
status = 301            # 301 | 302 | 307 | 308

[[headers]]
for = "/assets/*"
[headers.values]
Cache-Control = "public, max-age=31536000, immutable"

[forms.contact]
required = ["email", "message"]
redirect = "/thanks"

Unknown keys are an error, with the closest valid key suggested. The config travels with each deploy, so a rollback restores it.

Only site is needed, and the CLI writes it on the first deploy (with dir only when the folder isn't found by itself). Redirects and headers can also come from files or the dashboard: see Redirects and headers. lobsite config shows every setting the site has and where it comes from.

Redirects and headers

Put a _redirects file and a _headers file at the top of the folder you deploy. They're the formats Netlify and Cloudflare Pages use, and they work however you deploy: the CLI, a drop in the dashboard, an AI agent or the API.

# _redirects: from  to  [status]
/old-page        /new-page
/blog/*          /posts/:splat   301
/docs/:section   /help/:section  302
/go              https://example.com  307
# _headers: a path, then indented "Name: value" lines
/assets/*
  Cache-Control: public, max-age=31536000, immutable
/*
  X-Frame-Options: DENY
  • Statuses 301 (the default), 302, 307 and 308 work, with :name segments and a final *. Status 200 rewrites, 404 rules, ! forced rules and conditions such as Country= aren't supported: the deploy skips those lines and says which. /* /index.html 200 turns on single-page mode.
  • Only the files at the top of the folder count, and they're never served: /_redirects and /_headers are 404.
  • A deploy takes up to 1,000 redirects and 200 header rules from lobsite.toml and the files together, each file up to 64 KB. The files travel with the deploy, so a rollback restores them.
  • netlify.toml isn't read. Put its redirects in a _redirects file, or in the dashboard.

You can also set up to 100 redirects and 20 header rules in the site's Settings tab, with an import box that takes a _redirects file. They're a site setting, so they stay through deploys and rollbacks, and they win: redirects are checked in the order dashboard, lobsite.toml, _redirects, and the first match is used; for a header set in more than one place, the dashboard's value is used. The deploy warns when one of its rules isn't used because of the dashboard.

Single-page apps

Apps with client-side routing, such as React Router, Vue Router or TanStack Router, have one index.html and draw every page in the browser. Opening /dashboard/settings directly, or reloading it, asks the server for a file that doesn't exist. Single-page mode answers those paths with your index.html, so the app's router takes over. There are three ways to turn it on:

  • spa = true in lobsite.toml. It travels with each deploy, so a rollback restores it. Needs lobsite 0.1.8 or newer; older versions stop with "Unknown key".
  • Single-page app in the site's settings in the dashboard. It's the way for sites you drag and drop, since a dropped folder doesn't send a lobsite.toml. It's a site setting, so it stays as it is through deploys and rollbacks.
  • A 200.html at the top of the site. It's served instead of index.html, and works with any CLI version and with drag and drop. This is how Surge does it.

With Vite (React, Vue, Svelte or Solid), add the setting and deploy dist/ as usual:

npm run build
npx lobsite

Only page requests get the app: a path whose last part has no extension (/dashboard, /users/42), or any request from a browser asking for HTML (/users/jane.doe). A missing file such as /assets/index-3f9a.js gets a real 404. That matters right after a deploy: a visitor who still has the old version open gets a clear error for the old script, not your HTML in its place.

The site has A missing page (/dashboard) A missing file (/old.js)
nothing Lobsite's "Not found", 404 Lobsite's "Not found", 404
404.html 404.html, 404 404.html, 404
single-page mode index.html, 200 Lobsite's "Not found", 404
single-page mode and 404.html index.html, 200 404.html, 404
200.html (with or without the setting) 200.html, 200 404.html if there is one, else "Not found", 404

Coming from Netlify, the _redirects rule /* /index.html 200 works as it is: it turns single-page mode on, as spa = true does. From Vercel, a rewrite of /(.*) to /index.html is the same.

.lobsiteignore

Files that match a pattern in .lobsiteignore aren't deployed. The syntax is the same as .gitignore:

drafts/
*.psd
/notes.txt
!keep.psd

The file is read from the deployed folder and from the project root (next to lobsite.toml); patterns in the root file are relative to the root. .git, node_modules, .DS_Store and .lobsiteignore itself are always left out.

Secret files (.env*, private keys such as *.pem and id_rsa, .npmrc, .netrc and similar) stop a deploy until they're removed or ignored. In a terminal, the CLI offers to add them to .lobsiteignore and deploy without them.

Forms

<form action="/_lobsite/forms/contact" method="POST">
  <input name="email" type="email" required>
  <textarea name="message" required></textarea>
  <button>Send</button>
</form>

Forms are found at deploy time. Spam protection (a honeypot, timing and rate limits) is added for you. Submissions land on your dashboard's Submissions page and in your email. More on forms: examples, sending with JavaScript, frameworks and settings.

A form is a contact form, a waitlist, a survey or a quiz; say which with data-lobsite-type on the <form> (see Form types). A survey sums up the answers to each question on the form's Results page. A quiz is scored: its questions and right answers go in a <script type="application/json" data-lobsite-form="<name>"> block next to the form, or the answers are set in the dashboard to keep them hidden.

On the free plan, forms run in limited mode: a monthly quota per site, notifications to your account email only, and no webhooks. The Standard plan adds webhooks, any verified notification address and a higher quota.

Custom domains

Custom domains come with every account, the free plan included. lobsite domain add www.example.com prints the record to add: a CNAME to cname.lobsite.app. Certificates are issued and renewed for you. If another account has also added the domain, a TXT record proves it's yours.

Previews and rollback

Every deploy has its own URL, <id>--<site>.lobsite.app. lobsite deploy --preview leaves production alone; lobsite rollback and lobsite promote switch the live deploy without uploading.

CLI

lobsite [dir]Deploy a folder (the default command)
lobsite deploy --previewUpload without changing production
lobsite deploysList kept deploys
lobsite rollback [id]Make an earlier deploy live
lobsite promote <id>Make any deploy live
lobsite login / logout / whoamiYour account
lobsite claim [site]Keep an anonymous site
lobsite account [use <email>|me]Switch to an account you're a member of
lobsite token create|ls|revokeCI tokens for LOBSITE_TOKEN (Standard)
lobsite ls / open / rmYour sites
lobsite domain add|status|rmCustom domains
lobsite forms ls / export <name> --csvForm submissions
lobsite mcpAn MCP server for AI agents

Limits

AnonymousFreeStandard
SitesNo cap15
Files per site10010010,000
Per file5 MB5 MB100 MB
Site size50 MB50 MB2 GB
Storage—1 GB20 GB
Deploys an hour1030100
Deploys a day per site20No capNo cap
Deploy historyLive deploy only7 days30 days
Custom domains per account—15
Custom domains per site—11
Bandwidth1 GB10 GBUnlimited, fair use
Form submissions a month—25Unlimited
Analytics——Yes
Automations (Zapier, n8n)——Yes
"Powered by lobsite!" badgeYesYesNo

Bandwidth is per month per account (per site lifetime for anonymous sites). At the limit, free and anonymous sites stop serving until the next month; on Standard there's no cap and sites keep serving: past 1 TB a month, we contact you.