Embarko is inBeta

Embarko is the cloud for small apps built by AI. The AI builds the app; Embarko gets it online, keeps it running, and helps the AI take the next useful step.

Agents start with the Markdown quickstart. Every page is also available as Markdown and JSON.

Keep a temporary app

On this page: Over HTTP, Examples, Limits, Errors, What to tell the person

Plain words unless the person is a developer. Never invent a link, name or code. Rules Needs first: deploy.

An app deployed over HTTP without an Embarko key is deleted 24 hours after its first deploy (the exact time is app.expiresAt). Claiming makes it permanent at the same link. Apps deployed through the connector are already permanent: skip this.

Connector: Not needed: connector deploys are already in the person's account

Done when: The deploy reply says claimed: true.

Over HTTP

  1. Check for a token first: DEPLOY_TOKEN, then the first line of ~/.embarko/credentials. If one exists, skip to the redeploy.
  2. Ask the person for their email, then POST https://ship.embarko.ai/api/public/deploy-tokens/request with {"email": "..."}. Call it once. It always answers 202; the Embarko key goes to their inbox, never to you.
  3. Ask them to paste their Embarko key. Save it to ~/.embarko/credentials (mode 600) so you never ask again. Never repeat it back.
  4. Redeploy to https://ship.embarko.ai/apps with the same X-App-Name and Authorization: Bearer {token}. The reply has app.claimed true.
  5. From now on send the same token on status and logs: a claimed app answers 404 without it.

Example: Request the token

body.json:

{"email":"person@example.com"}
curl -sS -X POST 'https://ship.embarko.ai/api/public/deploy-tokens/request' -H 'Content-Type: application/json' --data @body.json

Reply 202:

{"message":"If this email address is valid, a deploy token for each of your workspaces has been sent to it. Check the inbox (and spam folder). Each request creates a new token; your existing tokens keep working."}

Example: Redeploy with it → claimed

curl -sS -X POST 'https://ship.embarko.ai/apps' --oauth2-bearer $DEPLOY_TOKEN -H 'X-App-Name: my-app' -H 'X-Agent-Name: codex' -F 'source=@/tmp/app.tar.gz'

Reply 202:

{"success":true,"status":"building","app":{"name":"my-app","kind":"service","claimed":true},"next":"Claimed, so the app is permanent now. Building: poll links.status every 10 seconds until it says \"live\" or \"failed\".","links":{"status":"https://ship.embarko.ai/apps/my-app/status","feedback":"https://ship.embarko.ai/apps/my-app/customer-query"}}

Limits

  • There is no reminder email. Tell the person the deletion time yourself.
  • A temporary app can be deployed 5 times in all; the sixth is refused with deploy_limit_reached. Claiming removes that limit.
  • Token requests: 5 per email and 10 per IP per hour. The reply is 202 even when limited, so a retry tells you nothing.
  • Tokens do not expire. Each request makes a new one; old ones keep working.
  • People know this token as their "Embarko key" (Settings → Developer, the Deploy dialog and every email say so). When you talk to them, call it their Embarko key, never a token; DEPLOY_TOKEN, ~/.embarko/credentials and the API keep the technical name. There are two kinds. A personal Embarko key was called a "Just me" token before, and a shared workspace Embarko key a "Whole workspace" token: they are the same things.
  • A token from the email or the connector is a personal Embarko key: it works on every app its person can reach, in any of their workspaces, and stops working in a workspace they leave. New apps go to the workspace it was made for.
  • A shared workspace Embarko key (made at https://embarko.ai/app/settings/developer) works only on that workspace's apps, whoever made it, and keeps working after they leave. It is for shared machines and automated deploys. Only a workspace Owner or Admin can make one; anyone else gets a personal Embarko key.
  • A new token never moves an existing app: it reaches the app where it is. To move an app to another workspace, call move (see move).

Errors

CodeStatusRetryWhat to do
unauthorized401NoThe pasted Embarko key is wrong or turned off. Ask the person to check they copied all of it.
no_access403NoThe token's person can't use the workspace named in the message any more. Ask them to get access there, or for an Embarko key from that workspace.
app_moved409NoThe app moved to a workspace this token can't reach. Ask for a personal Embarko key from someone in that workspace. Never redeploy under a new name.

What to tell the person

  • offer: "Your app is live: {link}. It stays online until {time}. Want to keep it? Tell me your email and I'll set it up."
  • ask_token: "I've sent a code to {email} (check spam too). Paste it here and your app becomes permanent."
  • done: "Done: your app is permanent."

Next: Tell the person when the app will be deleted, then offer to keep it.

Related: showcase · custom-domain · env-vars


Guide home · JSON: add .json