Quickstart
InstaVM's fastest path to something live is the installed CLI. This guide installs instavm, authenticates it, deploys a tiny static app with instavm deploy, and returns a share URL.
1. Get an API key
- Sign up at the InstaVM Dashboard
- Navigate to API Keys
- Create a new key that starts with
instavm_sk_...
2. Install the package
pip install instavm
instavm --help
pip install instavm installs both the Python SDK and the instavm CLI. If the CLI entrypoint is not on your PATH, use python -m instavm.cli --help.
3. Authenticate the CLI
instavm auth set-key
instavm auth status
instavm whoami
instavm auth set-key stores the key in ~/.instavm/config.json. For automation and CI, you can use INSTAVM_API_KEY instead of a stored key.
4. Create a tiny app
mkdir hello-instavm
cd hello-instavm
cat > index.html <<'EOF'
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Hello InstaVM</title>
</head>
<body>
<h1>Hello from InstaVM</h1>
<p>This site was deployed with instavm deploy.</p>
</body>
</html>
EOF
A directory with index.html is enough for the CLI to detect a static-site deploy.
5. Preview the deploy plan
instavm deploy --plan
The dry run prints the detected runtime, install command, start command, port, health path, and any secrets that will be requested at deploy time.
6. Deploy and get the URL
instavm deploy
The CLI creates a VM, uploads the project, starts the service, creates a share, and prints the VM ID, share URL, and cleanup hints.
instavm deploy is experimental. It works best today for straightforward static, Node.js, Python, Go, and Deno apps.
7. Common follow-ups
instavm ls
instavm connect <vm_id>
instavm rm <vm_id>
Use these when you want to inspect the running VM, SSH in, or delete it when you are done. If you need a private deploy or a reusable image, rerun with instavm deploy --private or instavm deploy --save-snapshot.
Other paths
- Need the full terminal workflow? Start with CLI.
- Want the deploy flags and follow-up workflows in one place? See Deploy a Web App.
- Already building inside Claude Code, Codex, GitHub Copilot, or another coding agent? See Deploy from a Coding Agent.
- Want a curated starter app instead of deploying your own project? Try
instavm cookbook deploy hello-fastapi. - Need lower-level control instead of CLI automation? See Python SDK Reference.
Next steps
- Authentication -- key management for CLI, SDK, and automation
- How It Works -- architecture and isolation model
- Build an AI Agent Code Execution Tool -- add InstaVM as a tool in your agent
- Build a Code Interpreter -- persistent multi-turn execution
- Guide: Volumes -- durable storage outside VM lifetime
- REST API Reference -- direct API access