Docs: Public web agents (deploy a web app) | Maritime

Public web agents

Any repo with a Dockerfile can be served on a public, no-login HTTPS URL. Maritime builds it, runs it serverlessly, puts it to sleep when idle, and wakes it on the next visit.

Deploy one

maritime create my-app --repo https://github.com/you/app --public
Flag Description
-r, --repo GitHub repo to build (Dockerfile at the root). Combine with -b, --branch
--public Serve a public, no-login web URL for this agent
--port Port the public URL sends traffic to. Keep the default, 8080: Maritime forwards it to the PORT your app binds

The dashboard's New agent flow takes the same sources: a GitHub repo, a Docker image, or a ZIP upload. Repo and ZIP sources build on a dedicated build machine; see How builds work.

Visibility

Every agent that serves a port has its own address, https://<agent-id>.mtm.sh/, shown on its Overview as URL. It is private until you say otherwise.

The app sees its own Host and its own cookies. Agent URLs tell search engines not to index them. The older https://api.maritime.sh/a/<agent-id> path keeps working for public agents.

What your app must do

A web app does not need the chat contract; that is only for agents you want to talk to. If you want both (a web UI and a chattable agent), implement the two-endpoint contract from Deploy any container.

Sleep and wake

The app auto-sleeps when idle and any request to its public URL wakes it, in about a second, with state intact. Sleeping is not downtime: visitors just wake it. The first request after a sleep waits for the wake; every request after that is answered by a running machine.

Configure and observe

maritime env set my-app DATABASE_URL=postgres://... --reload   # encrypted secrets
maritime logs my-app -f                                        # stream logs
maritime history my-app                                        # every build/deploy attempt

Env vars, secrets, and sizing are covered in Env vars & sizing; the full flag set for create and deploy is in the CLI reference.