LOCALHOST
All pages
Start

Build on LOCALHOST

The same things you do in the panel, from your code, your terminal or your AI assistant: names, websites and apps, databases, email, DNS, SMS and billing.

HTTPS + JSON

The API

One base address, an API key in a header, JSON in and out. Every endpoint says which permission it needs and what it returns.

https://api.localhost.co.zw

API reference →
Terminal

The lh command line

Create a site from an image or a repository, follow the build, set its settings, read its logs, register names, and act for the clients you manage.

lh create shop --repo you/shop

Every command →
MCP

Connected assistants

Claude, ChatGPT, Claude Code, Cursor and anything else that speaks MCP connects to an account and works within what its owner ticked. Money moves only within an allowance.

https://api.localhost.co.zw/mcp

How it connects →

Start here

  1. Make an API key under API keys in the panel and tick what it may do. Keys and permissions explains the choices.
  2. Make one call. GET /me answers with the account behind the key. The quick start takes you from there to a running site.
  3. Pick your tool. Scripts and integrations use the API; people at a terminal use lh; an AI assistant connects over MCP. All three go through the same checks, prices and refusals.

What you can do

Account

Who the key belongs to and what it may do.

2 endpoints →

Sites and apps

Containers that run on your account: create, deploy an image, start, stop, read logs.

6 endpoints →

Settings

Environment variables for one site, or shared by every site. Secret values are never returned.

6 endpoints →

Git deploys

Sites that build from a repository: connect a source, start builds, follow logs, roll back, previews.

11 endpoints →

Domains

Check, register, move in, renew and manage names. Paid calls charge the wallet at once.

15 endpoints →

DNS

The zones we hold for your names, and their records.

6 endpoints →

Databases

The managed databases on the account. Read-only here; credentials stay in the panel.

2 endpoints →

Billing

Wallet, invoices, transactions, what renews and what the account may have.

10 endpoints →

SMS

One-time codes, plain messages and tracked campaigns, paid in credits.

7 endpoints →

Website builder

Every change lands in the draft; nothing visitors see changes until publish.

15 endpoints →

Partners

Clients you manage, your book of names and sites, prices, commissions and webhooks.

24 endpoints →

Connect

Tunnels and connectors that give machines of yours a public address.

6 endpoints →

Privacy

Closing an account and downloading its data, for the mobile app.

4 endpoints →

Phone-auth

3 endpoints →

Postmaster

2 endpoints →

Signatures

4 endpoints →

Support

4 endpoints →

Good to know

Everything is scoped to the account behind the key. Someone else's site, name or invoice looks exactly like one that doesn't exist: a 404. Partners act inside a client's account by adding one header; see Partners.

Paid calls charge the wallet at once and take an Idempotency-Key, so a retry after a timeout never pays twice. Registrations and moves finish in the background and answer 202.

Refusals come in plain words, in detail. The errors page lists every status you'll see and what to do about it.

Machine-readable too: openapi.json describes the whole API for code generators, and the explorer lets you try a call with your key from the browser.