Obelisk Cloud
Obelisk Cloud hosts each app on its own VM. You manage apps with obelisk cloud, and a deployed
app is served at myapp.obelisk.works.
Deploying an app
Log in, then push the project from its directory:
obelisk cloud auth login
obelisk generate new myapp
cd myapp
obelisk cloud app push -a app.toml -d deployment.toml --fill
obelisk cloud app status
--fill prompts for required env vars and secrets. Use --fill-non-interactive in scripts to read
same-named environment variables instead, or pass values individually: --env NAME=VALUE,
--env NAME (reads the same-named environment variable), and --secret NAME (always reads the
same-named environment variable, so secrets never appear on the command line).
An idle app may be suspended. It resumes on the next request.
Endpoints
| URL | Serves | Authentication |
|---|---|---|
https://myapp.obelisk.works | external webhooks | None; the webhook decides |
https://internal--myapp.obelisk.works | internal webhooks | Browser sign-in or API token |
https://webui--myapp.obelisk.works | Web UI | Browser sign-in |
https://api--myapp.obelisk.works | API | API token |
The bare hostname answers 404 unless the applied app.toml lists external in
public_http_servers (see below). cloud app status and push
print the endpoints the app serves.
Opening the Web UI or internal host in a browser signs in through the Obelisk Cloud dashboard with GitHub. Other clients send an API token to the API host or the internal host; the Web UI host accepts only the browser session.
Logging in
obelisk cloud auth login prints a link and opens it in a browser, unless it cannot, as over SSH,
or you pass --no-browser. After you approve the login, the page displays a code. Paste it into the
terminal to save an account-wide token valid for 90 days. Only paste such a code into a terminal you
started yourself, and approve a login only if you just ran the command.
CI and agents have no terminal to log in from. Create a token with
obelisk cloud token new, restricted to the apps it needs with --scope, and set
OBELISK_CLOUD_API_TOKEN.
obelisk cloud auth statusshows the saved accounts and whether their tokens still work. An account defaults to your username at the API host, for examplealice@cloud.obeli.sk.auth login --account <ALIAS>assigns a custom name;--defaultmakes that login the default. Refreshing a login preserves its saved name. Account selection is case-sensitive, and backends are distinguished by the full API URL.obelisk cloud auth switch <ACCOUNT>changes the default account. The first login becomes the default.obelisk cloud auth logout [ACCOUNT]revokes the token and forgets the login.
To add another account, switch accounts on GitHub, sign out of
the Obelisk Cloud dashboard, then run obelisk cloud auth login again. Otherwise
GitHub signs you back in as the same user.
Logins are saved unencrypted in cloud-credentials.toml in the Obelisk configuration directory,
~/.config/obelisk on Linux. The file is created readable only by you, and the CLI refuses to use
it if others can read it.
RC17 stores logins in named [account."name"] tables. To upgrade a credentials file from earlier
release candidates, manually convert each [[account]] table using its saved account name, or
remove the file and log in again.
The CLI picks what it talks to from the first row that matches:
| Set | Used |
|---|---|
--api-token or OBELISK_CLOUD_API_TOKEN alone | https://cloud.obeli.sk/api |
The token, OBELISK_CLOUD_API_URL and OBELISK_CLOUD_APPS_DOMAIN | A custom deployment |
--account or OBELISK_CLOUD_ACCOUNT | That saved account, for one command |
| Nothing | The default account |
Setting only some of the token, URL and domain is an error, as is combining any of them with
--account. A custom deployment can also use saved logins: run
obelisk cloud auth login https://cloud.example.com/api, without those variables set. Login also
accepts OBELISK_CLOUD_API_URL as its default URL; an unset or empty value uses
https://cloud.obeli.sk/api, and an explicit URL takes precedence.
Public and private webhooks
Each webhook names its server with http_server.
-
internalis for anything only you should reach, such as admin pages and tools. The platform handles sign-in, so the app needs no login of its own. Webhooks receive the caller's username in theobelisknet-user-slugheader. Only trust it here: other servers are not behind the same check. -
externalis for public sites and for callbacks from other services. Anyone can call it, so the webhook does its own authentication. It starts only whenapp.tomllists it:public_http_servers = ["external"]
Cookies
All apps share one domain with other tenants, so a cookie without the __Host- prefix could have
been set by another app. Webhooks therefore receive only __Host- cookies, and the API and Web UI
receive none. Set cookies like this:
Set-Cookie: __Host-session=...; Secure; Path=/; HttpOnly; SameSite=Lax
The cookie must have Secure, Path=/, and no Domain. Any other cookie is dropped and named in
the obelisknet-cookie-rejected response header, which curl -i and browser developer tools show.
Other apps also count as the same site, so SameSite does not protect against forged requests from
them. A public webhook receives no cookies on a request from another app, except when following a
top-level link. Browsers that do not send Sec-Fetch-Site are not covered, so check Origin on
unsafe methods as well.
Integrations
[cloud.integrations] gives
an app access to LLM, GitHub, and headless browser services the cloud provides, without storing
credentials in the app.
Obelisk identifies the calling execution to these services with the Obelisk-Int-Execution-Id
header, and they refuse requests without it. WASM and JavaScript activities and webhook endpoints
get it automatically; native activity_exec processes do not, so they cannot call integrations.
Browser
The browser integration runs a headless browser on the app's VM, which activities and webhooks
drive with Playwright-style steps. See
Cloud Browser for setup, the session API,
credentials, and troubleshooting denied requests.
Commands
obelisk cloud manages apps hosted by an Obelisk cloud control plane. cloud auth manages
logins. cloud token creates, lists, inspects, and revokes cloud bearer tokens.
cloud status shows the account's plan, this month's usage against each plan allowance, whether
the account is on hold, and the state of each app. When an allowance is used up, the account is
held: its apps stop and cannot be started until the month ends or the plan changes, though their
databases can still be pulled with cloud app db pull. cloud events lists the account's recent
events, newest first: allowance warnings, used-up allowances, and holds applied or lifted; -n, --limit sets how many to show (1-50, default 5). Both need an account-wide token.
cloud app list lists the apps you own. The other cloud app subcommands are scoped to one app:
new,status,enable,disable,delete: app lifecycle.newcreates a bare app with onlyapp_name(from--appor./app.toml) and fails when the name exists, so it never reuses an existing app, e.g. in CI; configure the new app withstageorpush.statusshows the app's endpoints, the applied configuration revision, your drafts with their changes and missing values and, when-aor./app.tomlis readable, whether it matches the default draft. It also shows the health check of a started VM and a scheduled wake-up that keeps failing. An app suspended while idle shows asrunning (suspended)withAPI: resumes on request.pullwrites the runningapp.toml, the active deployment, and its source files to disk.eventslists the app's recent lifecycle and VM events, newest first: completed and failed commands, app failures and restores, critical and recovered health checks, restarts of an unhealthy VM, and failed wake-ups.-n, --limitsets how many to show (1-50, default 5). Routine idle suspends and wake-ups are not recorded.logsshows the logs of the app's VMs, oldest first, including the platform's own lines about starting the VM and health checks. It prints the newest lines, or with--sincethe first lines after an RFC 3339 time or a duration ago (30m,2h);-n, --limitsets how many (1-500, default 100). When more may follow, it prints the--sincevalue to continue from. Logs are kept for about a week. A failed start is also recorded as aserver.startup.failedsystem event, shown bycloud app admin events list --code server.startupand in the Web UI.stageputsapp.tomland any--env/--secretor filled values into a draft without restarting the VM; it never applies. Likepush, it first submits the deployment (-d, --deployment <FILE>, defaultdeployment.toml), then stages its ID in the draft along with the configuration, so a failed submission stages nothing;-dalso takes an existingDep_ID,--empty-deploymentstages an empty deployment instead, and--descriptiondescribes the submitted one. Withoutdeployment.tomlthe draft's deployment is left unchanged. Staging an app that does not exist creates it with onlyapp_nameand an empty deployment, then stages the real configuration and deployment, so required values can be filled in later, from the CLI or the dashboard, and applying the draft brings up the whole app; it fails before creating the app when there is no deployment to stage.unstagediscards the draft.applyprints what changes and applies the staged draft; the control plane activates the draft's staged deployment, or keeps the active one, while respecting the app's intended running state. It fails when nothing is staged.apply --reapplyre-applies the applied revision instead, reconciling the VM with the app's intended state without restarting an unchanged VM.pushpublishes the local project: it creates a missing app (and says so) withapp.tomland the values in one request, or stages them into a newpush-<ID>draft of an existing app. It then submits the deployment (-d, defaultdeployment.toml, or an empty one with--empty-deployment), stages it in the same draft, and applies the draft, so a new app boots once. It fails on missing required values unless they are passed with--envand--secret,--fill, or--fill-non-interactive; to fill them later,stageinstead andapplyonce they are set. The draft never touchesdefaultand is discarded whenpushfails before applying it. When the app name is taken, an interactivepushoffers an alternative and saves it toapp.tomlif the original name came from there; noninteractive and--jsonruns fail with a conflict error.--descriptiondescribes the deployment, as indeployment submit.cloud app deploymenthas noenqueue,apply, orverify. To activate an existing deployment, stage it withcloud app stage --deployment <ID>and runcloud app apply, or use the dashboard. The Web UI hides its switch buttons, and the app's API rejects deployment switch requests with the same guidance.env set,env unset,secrets set, andsecrets unsetstage env vars and secrets into a draft; names starting withOBELISK_are accepted. Internal secrets and internal public environment entries are skipped.env listandsecrets listshow the applied values.deployment,execution,component, andadminconnect directly to the selected app's API.
Select an app with --app after the subcommand (cloud app status --app NAME), OBELISK_APP_NAME,
or app_name in ./app.toml. Cloud app names are 4-20 lowercase ASCII letters, digits, and single
interior hyphens (no --), and are unique within each cloud environment. Names starting with
system- or integrations- are reserved. Env vars bound by
[cloud.integrations] are
supplied by the cloud, so push and apply never ask for them.
Drafts
Changes to app.toml, env vars, and secrets are staged into a draft and take effect when the draft
is applied. stage, unstage, apply, env set/unset, and secrets set/unset take
--draft <KEY> (default default; the dashboard edits the same default draft). Each draft starts
from the applied revision and belongs to you. Applying a draft discards the app's other drafts,
including those of other users; push stages into its own temporary draft and warns about your
drafts it will discard. Apply fails while declared required values are missing; values the draft
sets but app.toml does not declare are reported.
status, stage, and push read the app config from -a, --app-config or discover
./app.toml. --app and OBELISK_APP_NAME override the file's app_name: the config is used for
the selected app with its app_name replaced, and the file is left unchanged. The file's app_name
then only needs to be valid locally, so a local name such as my_app can be pushed with
--app my-app.
cloud token new --name <NAME> -o <FILE> saves the server-issued token to a private file; it
does not overwrite an existing file unless --force is given. --scope <APP> restricts the token
to apps. The new token expires with the token that created it unless --expires-at sets an
RFC 3339 expiry, which cannot exceed it. cloud token list hides revoked tokens unless
--show-revoked is given. Token names are unique per account until revoked. If the
creation response is lost, revoke the inaccessible token before creating a replacement with the same
name.
Cloud commands print concise human-readable results to stderr; --json prints the control-plane
response as received, which is unstable and may change independently of the CLI version.
--verbose adds metadata, diagnostics, and each HTTP request with its response status, prefixed with
the time since the previous step (push steps included). Run obelisk cloud --help and
obelisk cloud app --help for all options.