openpouch
v0.4.0Agent-native hosting: deploy any folder to a live URL in one command.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
openpouch_init
Initialize a project for openpouch: detects framework/build/env vars, writes deploy.manifest.json + deploy.policy.json (default policy: previews autonomous, production requires human approval), auto-matches an existing provider service by name. Idempotent.
| Parameter | Type | Description |
|---|---|---|
cwd | string | Project directory containing deploy.manifest.json (default: server cwd) |
force | boolean | Overwrite existing manifest/policy |
openpouch_inspect
Answer: what is deployed, where, on which commit, which required env vars are missing (names only — never values), and what drift exists between manifest and provider. Env vars passed at deploy time (--var/--env-file) appear as `deployProvided` (names from local evidence — the instant lane never exposes them via the API). Read-only. The result carries a plain-language `summary` you can relay directly to a non-technical human.
| Parameter | Type | Description |
|---|---|---|
cwd | string | Project directory containing deploy.manifest.json (default: server cwd) |
openpouch_plan
Per environment: the policy decision (allowed / requires-approval / denied), blockers, readiness, and concrete next steps including the human-approval path. Read-only — reports, never acts.
| Parameter | Type | Description |
|---|---|---|
cwd | string | Project directory containing deploy.manifest.json (default: server cwd) |
openpouch_deploy
Zero-config INSTANT preview on openpouch's own infra — the `openpouch deploy` command (was CLI-only; Codex 2026-07-04). No account, no provider key, no manifest needed (a saved openpouch API key lifts the deploy into your tier; otherwise anonymous). Uploads the folder, builds on deploy (dynamic Node apps run in a container), probes health, and returns top-level `url`, `healthStatus` (+ `pending`), and a plain-language `summary` to relay to your human. The private claim link (a save token — like a password) is REDACTED from the result BY DEFAULT here, because tool results flow through chat…
| Parameter | Type | Description |
|---|---|---|
alwaysOn | boolean | Paid tiers: keep the container running (no scale-to-zero cold start). Capped per tier; denied with an honest fix when unavailable. |
cwd | string | Project directory containing deploy.manifest.json (default: server cwd) |
dir | string | Subfolder to deploy (e.g. `dist` for a built frontend) — default: the project folder itself (source trees build server-side) |
env | object | Env vars for the deployed app as NAME→value. Values are secrets (never surfaced; PORT/HOME are reserved and rejected). |
healthPath | string | Extra health check: after `/` answers, GET <path> must return 200 too (e.g. /api/health); recorded in the manifest so verify re-checks it |
redactSecrets | boolean | Default TRUE (unlike the CLI flag): the private claim link is omitted from the result and kept only in .openpouch/claim.json. Set false to include it — only in a private context, never in a shared r… |
volume | boolean | Paid tiers: mount the account's persistent /data volume (keyed to account+project — survives redeploys). Dynamic apps only; denied with an honest fix on free tiers. |
openpouch_deploy_preview
Deploy the preview environment through the governed pipeline (policy check → deploy → poll → smoke → evidence). Default policy allows previews autonomously. For the zero-config instant preview (no manifest/provider key) use openpouch_deploy instead. On success the live URL is returned at top-level `url`, plus a plain-language `summary` to relay to your human.
| Parameter | Type | Description |
|---|---|---|
cwd | string | Project directory containing deploy.manifest.json (default: server cwd) |
openpouch_deploy_production
Deploy production through the governed pipeline. If policy requires approval, this returns approvalRequest{id} with isError — ask your HUMAN to run `openpouch approve <id>` in their own terminal, then call this tool again. Agents cannot approve; there is intentionally no approve tool. Every result carries a plain-language `summary` to relay to your human; on a live deploy the URL is at top-level `url`.
| Parameter | Type | Description |
|---|---|---|
cwd | string | Project directory containing deploy.manifest.json (default: server cwd) |
openpouch_verify
Run the healthcheck/smoke against the environment's live URL and append the results to the evidence (deploy.evidence.json + DEPLOYMENT.md). For a full-stack app pass healthPath (e.g. /api/health) — it is checked IN ADDITION to `/`, because a live shell can hide a dead API. The result carries a plain-language `summary` (healthy / has a problem) you can relay to your human.
| Parameter | Type | Description |
|---|---|---|
cwd | string | Project directory containing deploy.manifest.json (default: server cwd) |
environment | string | Target environment. Omit to use the deploy's environment — production if the manifest has one, otherwise the single mapped env (e.g. an instant-lane preview). Same default as the CLI. |
healthPath | string | Extra path that must ALSO return 200 (e.g. /api/health) — checked in addition to / |
openpouch_logs
Structured runtime logs ({timestamp, message}) of the mapped service. Read-only. This is the first step of the self-repair loop: when a deploy comes back unhealthy (a failed verify, a non-200 app, or a pending/not-yet-live URL), read the logs to find the cause, fix the code or config, redeploy, then verify — repeat until it passes.
| Parameter | Type | Description |
|---|---|---|
cwd | string | Project directory containing deploy.manifest.json (default: server cwd) |
environment | string | Target environment. Omit to use the deploy's environment — production if the manifest has one, otherwise the single mapped env (e.g. an instant-lane preview). Same default as the CLI. |
limit | integer | Max log lines (default 50) |
openpouch_rollback
Redeploy the recorded rollback anchor commit (the deploy that was live before the latest one). Approval-gated like any write action — may return approvalRequest{id} for your human.
| Parameter | Type | Description |
|---|---|---|
cwd | string | Project directory containing deploy.manifest.json (default: server cwd) |
environment | string | Target environment. Omit to use the deploy's environment — production if the manifest has one, otherwise the single mapped env (e.g. an instant-lane preview). Same default as the CLI. |
openpouch_whoami
Report the openpouch account behind the current API key: tier (plan) and current usage (live apps, deploys this hour/day), or that the caller is anonymous. Read-only. The key is read from OPENPOUCH_API_KEY / ~/.openpouch/openpouch-run.key and never echoed. Carries a plain-language `summary` you can relay to your human. (Signup/activation are CLI/web only — they involve a human email or browser step.)
openpouch_upgrade
Get a hosted-checkout URL for a paid openpouch tier (plan). Payment is deliberately a HUMAN step: hand the returned checkoutUrl to your human — they pay in the browser at the Merchant of Record; agents never enter payment data and there is no pay tool. The account tier updates automatically after payment (verify with openpouch_whoami). Needs an API key; returns availablePlans in the error when the plan name is unknown.
| Parameter | Type | Description |
|---|---|---|
plan * | string | Paid tier to buy, e.g. starter | pro | scale | business |
openpouch_list
List the instant-lane apps owned by the current openpouch account key: name (slug), kind (static/dynamic), status, live URL, and expiry. Read-only; needs an account key (anonymous previews aren't grouped under an account → an empty list with a signup pointer). Carries a plain-language `summary` to relay to your human. Pair with openpouch_delete to free a quota slot when a deploy hits a 'limit reached' error.
openpouch_delete
Delete one of YOUR OWN instant-lane apps by name (slug) → frees a quota slot. This is the self-service fix for a 'limit reached' deploy error: list your apps, delete an unused one, redeploy. Owner-only — it uses your account key and the server verifies ownership, so you can never delete another account's app. Deleting an ephemeral preview is NOT a governed-production action, so it needs no approval (there is still no approve tool, D13). Returns the removed name + a plain-language `summary`.
| Parameter | Type | Description |
|---|---|---|
slug * | string | The app name (slug / subdomain) to delete — exactly as shown by openpouch_list |
openpouch_data_push
Replace a named app's persistent /data volume with a local directory's contents (L13 — the migration/restore primitive). The server stops the app for the write and restarts it health-gated, so files like a SQLite DB are never swapped under a running process. Owner-only (account key); file CONTENTS never appear in logs or results (counts/sizes only). Typical migration: export data from the old host (your own means — you own the code), then push it here.
| Parameter | Type | Description |
|---|---|---|
app * | string | The named app (created with deploy --app <name> --volume) |
dir * | string | Local directory whose contents REPLACE the app's /data |
openpouch_data_pull
Download a named app's persistent /data volume as a gzipped tar file (L13 — the BACKUP primitive: your human's data is never locked in). Owner-only (account key). Writes the archive to a local path and returns its location + size.
| Parameter | Type | Description |
|---|---|---|
app * | string | The named app whose /data to back up |
dest | string | Local file path for the backup (default: <app>-data.tgz) |
openpouch_data_ls
List the files in a named app's persistent /data volume — names, sizes and timestamps only, never contents. Owner-only (account key). Use it to verify a data push/migration landed.
| Parameter | Type | Description |
|---|---|---|
app * | string | The named app whose /data to list |
openpouch_list_approvals
List pending approval requests (read-only). Approving itself is human-only via `openpouch approve <id>` in an interactive terminal — by design not available to agents.
| Parameter | Type | Description |
|---|---|---|
cwd | string | Project directory containing deploy.manifest.json (default: server cwd) |