/sapiom:sapiom-sandbox-previewfrom Sapiom
Deploys a web app from the current project to a live Sapiom URL — temporary sandbox preview or durable App Link. Use for previewing, hosting, or sharing web apps, dashboards, APIs, or static sites.
Ships in Sapiom. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Two ways to put the web app in the current project on a live URL, both driven by the
sapiom-dev MCP (npx -y @sapiom/mcp; see the Get Started guide
if it isn't connected) and both reading the same sapiom.json resource:
| You want | Tool | The URL |
|---|---|---|
| To look at it now, iterate, throw it away | sapiom_dev_sandbox_preview | Temporary — dies with the sandbox's ttl |
| A link that lasts, or that someone else opens | sapiom_dev_app_publish | Durable — https://apps.sapiom.ai/{org}/{slug} |
This is not agent deployment. Sapiom agents deploy with sapiom_dev_agents_deploy;
both tools here host an ordinary app (Node server, static site, API, dashboard) from your
working directory.
Run sapiom_authenticate once (browser login; caches a key in ~/.sapiom/credentials.json).
sapiom_dev_sandbox_preview and sapiom_dev_app_publish return a structured
not-authenticated error otherwise; configure and check only touch local files and work
signed-out. Check with sapiom_status.
sapiom_dev_sandbox_configure — creates or updates a preview resource in the
project's sapiom.json. Fill the typed arguments instead of hand-writing JSON — the
config is validated and written under resources.<name> (type: "sandbox"). Returns
the stored config.sapiom_dev_sandbox_check (optional) — statically validates the resources without
deploying. Returns { ok, sandboxes, issues }; fix any issues before previewing.sapiom_dev_sandbox_preview — reads sapiom.json, provisions the sandbox if
needed, uploads the local code, builds, starts, and exposes a public URL. Returns
{ name, url, status, logs }. Pass name only when the project defines more than one
resource.sapiom_dev_app_publish — when the link needs to outlive the sandbox. See below.A failed status is not an error — it carries the build/start logs so you can fix the
app or the config and run sapiom_dev_sandbox_preview again. unverified means the app
started but didn't answer 2xx yet.
The preview URL is temporary. It belongs to a sandbox that expires with the resource's
ttl (default 1h), and it goes away with it — along with any bookmark, Slack message, or
doc anyone pasted it into. Say so when you hand it over, and reach for
sapiom_dev_app_publish instead whenever the link is meant to survive.
Route to sapiom_dev_app_publish whenever the ask is about the link lasting or leaving
your machine — "share this", "send this to my team", "a permanent link", "keep it alive",
"can I bookmark this", "put this somewhere", "my link died", "the URL stopped working".
sapiom_dev_app_publish { slug: "dash", name: "Dash" }
→ { url: "https://apps.sapiom.ai/{org}/dash", appLinkId, bundleSha256, manifest }
It reads the same sapiom.json sandbox resource (source dir, start, port, optional
build/env), uploads the source as a stored bundle, and activates it. What to know:
visibility: "public" (anyone with the link) additionally needs confirmPublic: true
and a dailySpendCapUsd — the org pays for every wake, so ask the user before setting
either.slug again replaces the app at the same
URL and returns a new bundleSha256. That is how you ship an update; never mint a second
slug for v2.node_modules, .git, dotfiles, symlinks and the project's own
sapiom.json are never uploaded, so install dependencies at wake with the resource's
build command.dist, build artifacts, vendored assets) rather than shipping it.resource only when the project defines more than one sandbox resource. slug
([a-z0-9-]{1,63}) is the app's identity; name is what the "Starting…" page shows.The canonical link is the identity — share https://apps.sapiom.ai/{org}/{slug}, never the
sandbox address the browser lands on after a wake.
Publishing is the only thing sapiom_dev_app_publish does. Everything else about a link is
sapiom_dev_app_list / sapiom_dev_app_settings / sapiom_dev_app_delete, which need
@sapiom/mcp 0.15 or newer; older clients use PATCH / DELETE /v1/app-links/{id} with an
org.write key.
sapiom_dev_app_settings { slug, webhooksEnabled: true }, then hand the sender
https://apps.sapiom.ai/{org}/{slug}/hook/<path>. The /hook prefix is stripped before the
app sees the request and the body arrives byte-exact, so signature verification runs inside
the app exactly as it would on any host. A request that lands while the app sleeps is held
for the wake (up to 60 s).visibility, dailySpendCapUsd and wakeRateLimitPerHour are set the same way; going
public needs confirmPublic: true and a cap — ask the user first.sapiom_dev_app_delete { slug, confirm: true } takes the URL down and frees the slug. Ask
the user before calling it.org.write. A credential holding only publish authority gets an
error that names the permission and the fields. Tell the user; do not retry.sapiom.json resource{
"version": 1,
"resources": {
"web": {
"type": "sandbox",
"source": { "kind": "upload" },
"start": "node server.js",
"port": 3000,
"ttl": "1h"
}
}
}
| Field | Required | Notes |
|---|---|---|
source | yes | { "kind": "upload", "path"? } (upload the local dir) or { "kind": "git", "slug", "path"? } (server checks out a Sapiom repo) |
start | yes | The server command (e.g. node server.js) |
port | yes | 1–65535 — the port your app listens on |
build | no | Build command run before start (e.g. npm run build) |
tier | no | Sandbox size: xs | s | m | l | xl |
ttl | no | Sandbox lifetime, e.g. "1h", "24h", "7d" — preview only; an App Link's URL is not bounded by it |
env | no | Environment variables (string map) |
Uploads skip node_modules, .git, and dotfiles — dependencies install in the sandbox at
build time; never upload them.
sapiom sandbox preview [name] # alias: sapiom sbx preview; add --json for machine output
Defaults to the single resource when the project defines exactly one.
Steps can deploy previews through the typed client. Get a Sandbox instance first —
await ctx.sapiom.sandboxes.create({...}) or .attach(name) — then call
sandbox.uploadDir(localDir) to stage the code and
sandbox.deployPreview({ start, port, build?, env? }) →
{ url, status: "deployed" | "unverified" | "failed", logs } (failures return status: "failed" with logs, not a throw). sandbox.createPublicUrl({ port }) is the low-level
primitive — the port must have been declared when the sandbox was created.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
2 skills in this plugin
npx claudepluginhub sapiom/sapiom-js --plugin sapiomOther plugins' skills for the same job