use-instavm
Original:🇺🇸 English
Translated
Operate InstaVM infrastructure: run ephemeral sessions, create or manage VMs, host or deploy apps, take snapshots, clone machines, register SSH keys, expose shares, set egress, mount volumes, and use platform APIs. Use this whenever the user mentions InstaVM, instavm.io, the `instavm` Python SDK, `ssh instavm.dev`, app hosting, or VM lifecycle work, even if they do not explicitly say "InstaVM".
2installs
Sourceinstavm/skills
Added on
NPX Install
npx skill4agent add instavm/skills use-instavmTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →Use InstaVM
InstaVM resource model
- Session is a short-lived execution sandbox.
- VM is a durable machine for longer-running work, SSH access, shares, or mounted volumes.
- Snapshot is a reusable machine image created from a VM or an OCI image.
- Share exposes a port from a session or VM.
- Volume is persistent storage mounted into a VM.
- Platform APIs include computer-use, audit, webhooks, API keys, and related control-plane features.
Preflight
Before any mutation:
- For live deploy, host, create, update, snapshot, or delete requests, verify authentication first.
- If no API key or authenticated CLI path is available, stop and ask for credentials. Do not spend time generating deploy scripts, repo changes, or long offline setup unless the user explicitly asks for offline preparation.
- After auth is confirmed, probe the installed SDK surface before assuming helper names.
- If a native CLI exists later, prefer it only when it is clearly the shortest path.
instavm
Load for exact install, auth, and surface-probe steps.
references/setup.mdRouting
Load only the reference you need. Two references are usually enough, even for multi-step tasks.
- : install, auth, choose session vs VM, create or delete compute.
references/setup.md - : host or deploy an app, including static sites, simple web apps, long-lived servers, shares, and deploy verification.
references/hosting.md - : run code, transfer files, snapshot, clone, or build from OCI.
references/compute.md - : connect to a machine or expose it to the network.
references/access.md - : persist or move data with volumes, checkpoints, and mounts.
references/storage.md - : advanced APIs and REST fallback.
references/platform.md - : prefer or inspect a future native CLI.
references/cli.md
Execution rules
- Trust the live product surface over skill text: start with the installed SDK, actual CLI help if a CLI exists, and read-back state from the API after mutations.
- Detect capability before use. For SDK, inspect attributes or method signatures.
For CLI, use only if the binary exists. Fetch the latest OpenAPI or live docs only when capability is unclear, a field may be unsupported, or you need a REST fallback.
--help - Use a session for short-lived execution. Use a VM for SSH, shares, mounted volumes, or user-facing hosting.
- Keep egress narrow and shares private unless the user explicitly wants broader access.
- For live infrastructure requests, a quick repo inspection is fine, but do not do multi-minute offline scaffolding before auth is confirmed.
- After mutation, read the resource back. If a field is ignored or missing in the follow-up state, treat that capability as unsupported in the current environment.
- If the installed SDK lacks the needed helper, use raw HTTP only after checking the latest schema.
Composition patterns
- Bootstrap a working VM: setup -> compute -> access
- Host a static site or small web app: setup -> hosting -> access
- Create a reusable base image: setup -> compute
- Create a persistent worker: setup -> storage -> access
- Handle an SDK gap: relevant operational reference -> platform
- Add future CLI support: cli -> relevant operational reference
Response format
For operational responses, return:
- What was done and where.
- The result: IDs, URLs, status, or key output.
- What to do next, or confirmation that the task is complete.