| name | cloudrouter |
| description | Manage cloud development sandboxes with cloudrouter. Create, sync, and access remote VMs with GPU support, Docker, and browser automation. Use when asked to create a sandbox, spin up a dev environment, run code in the cloud, use GPUs, automate a browser, or interact with remote VMs. |
| license | MIT |
| metadata | {"author":"manaflow-ai","version":"0.0.3"} |
cloudrouter - Cloud Sandboxes for Development
cloudrouter manages cloud sandboxes for development. Use these commands to create, manage, and access remote development environments with GPU support, Docker, and browser automation.
When this skill is invoked
When the user invokes /cloudrouter or /cr without a specific task, present the available modes:
cloudrouter - Cloud Development Sandboxes
Modes:
cloudrouter start . Sync current directory to a cloud sandbox
cloudrouter start --docker . Sandbox with Docker support
cloudrouter start --gpu T4 . Sandbox with T4 GPU (16GB VRAM)
cloudrouter start --gpu A100 . Sandbox with A100 GPU (40GB VRAM)
cloudrouter start --gpu H100 . Sandbox with H100 GPU (80GB VRAM)
Manage:
cloudrouter ls List all sandboxes
cloudrouter code <id> Open VS Code in browser
cloudrouter pty <id> Open terminal session
cloudrouter vnc <id> Open VNC desktop
cloudrouter stop <id> Stop sandbox
Browser automation:
cloudrouter browser open <id> <url> Navigate to URL
cloudrouter browser snapshot <id> Get accessibility tree
cloudrouter browser screenshot <id> Take screenshot
Run "cloudrouter start --help" for all options.
Installation
If cloudrouter is not installed, help the user install it:
npm install -g @manaflow-ai/cloudrouter
This installs both cloudrouter and cr (shorthand) as CLI commands.
Then authenticate:
cloudrouter login
If the user hasn't logged in yet, prompt them to run cloudrouter login first before using any other commands.
Quick Start
cloudrouter login
cloudrouter start .
cloudrouter start --gpu T4 .
cloudrouter start --docker .
cloudrouter code <id>
cloudrouter pty <id>
cloudrouter ls
Preferred: Always use cloudrouter start . or cloudrouter start <local-path> to sync your local directory to a cloud sandbox. This is the recommended workflow over cloning from a git repo.
Commands
Authentication
cloudrouter login
cloudrouter logout
cloudrouter whoami
Creating Sandboxes
cloudrouter start .
cloudrouter start ./my-project
cloudrouter start -o .
cloudrouter start -n my-sandbox .
cloudrouter start --docker .
cloudrouter start --gpu T4 .
cloudrouter start --gpu L4 .
cloudrouter start --gpu A10G .
cloudrouter start --gpu A100 .
cloudrouter start --gpu H100 .
cloudrouter start --gpu H100:2 .
cloudrouter start --cpu 8 .
cloudrouter start --memory 16384 .
cloudrouter start --image ubuntu:22.04 .
cloudrouter start --git user/repo
cloudrouter start --git user/repo -b main
cloudrouter start -p e2b .
cloudrouter start -p modal .
GPU Options
All GPUs are available self-serve — no approval required.
| GPU | VRAM | Best For |
|---|
| T4 | 16GB | Inference, fine-tuning small models |
| L4 | 24GB | Inference, image generation |
| A10G | 24GB | Training medium models |
| L40S | 48GB | Inference, video generation |
| A100 | 40GB | Training large models (7B-70B) |
| A100-80GB | 80GB | Very large models |
| H100 | 80GB | Fast training, research |
| H200 | 141GB | Maximum memory capacity |
| B200 | 192GB | Latest gen, frontier models |
Multi-GPU: append :N to the GPU type, e.g. --gpu H100:2 for 2x H100.
All start Flags
-n, --name <name> Name for the sandbox
-o, --open Open VS Code after creation
--docker Enable Docker support (E2B only)
--gpu <type> GPU type (T4, L4, A10G, L40S, A100, H100, H200, B200)
--cpu <cores> CPU cores (e.g., 4, 8)
--memory <MiB> Memory in MiB (e.g., 8192, 65536)
--image <image> Container image (e.g., ubuntu:22.04)
--git <repo> Git repository URL or user/repo shorthand
-b, --branch <branch> Git branch to clone
-p, --provider <name> Sandbox provider: e2b (default), modal
-T, --template <id> Template ID (overrides --docker) — DO NOT use template names from `cloudrouter templates`; use --docker or --gpu flags instead
Warning: Do NOT pass template names (e.g. cmux-devbox-base) to the -T flag. These are display names, not valid E2B template IDs. Use --docker for Docker support and --gpu <type> for GPU support instead.
Managing Sandboxes
cloudrouter ls
cloudrouter status <id>
cloudrouter stop <id>
cloudrouter extend <id>
cloudrouter extend <id> --seconds 7200
cloudrouter delete <id>
cloudrouter templates
Access Sandbox
cloudrouter code <id>
cloudrouter vnc <id>
cloudrouter pty <id>
Work with Sandbox
cloudrouter pty <id>
cloudrouter exec <id> <command>
Important: Prefer cloudrouter pty for interactive work. Use cloudrouter exec only for quick one-off commands.
File Transfer
Upload and download files or directories between local machine and sandbox.
Command signatures:
cloudrouter upload <id> [local-path] — accepts 1-2 positional args: sandbox ID and optional local path
cloudrouter download <id> [local-path] — accepts 1-2 positional args: sandbox ID and optional local path
- Use
-r <remote-path> flag to specify a non-default remote directory (default: /home/user/workspace)
- Do NOT pass remote paths as positional arguments — this will error. Always use the
-r flag.
cloudrouter upload <id>
cloudrouter upload <id> ./my-project
cloudrouter upload <id> ./config.json
cloudrouter upload <id> . -r /home/user/app
cloudrouter upload <id> . --watch
cloudrouter upload <id> . --delete
cloudrouter upload <id> . -e "*.log"
cloudrouter download <id>
cloudrouter download <id> ./output
cloudrouter download <id> ./output -r /home/user/app
Warning: The -r flag expects a directory path, not a file path. To download a single file, download its parent directory and then access the file locally.
Common mistake: cloudrouter download <id> /remote/path /local/path — this passes 3 positional args and will fail. Use cloudrouter download <id> /local/path -r /remote/path instead.
Browser Automation (cloudrouter browser)
Control Chrome browser via CDP in the sandbox's VNC desktop.
Startup delay: Chrome CDP may not be ready immediately after sandbox creation. If a browser command fails right after cloudrouter start, wait a few seconds and retry. This is rare but expected — Chrome needs a moment to boot inside the sandbox.
Navigation
cloudrouter browser open <id> <url>
cloudrouter browser back <id>
cloudrouter browser forward <id>
cloudrouter browser reload <id>
cloudrouter browser url <id>
cloudrouter browser title <id>
Inspect Page
cloudrouter browser snapshot <id>
cloudrouter browser snapshot -i <id>
cloudrouter browser snapshot -i -c <id>
cloudrouter browser screenshot <id>
cloudrouter browser screenshot <id> out.png
cloudrouter browser eval <id> "document.title"
Interact with Elements
cloudrouter browser click <id> <selector>
cloudrouter browser dblclick <id> <selector>
cloudrouter browser type <id> "text"
cloudrouter browser fill <id> <sel> "value"
cloudrouter browser press <id> <key>
cloudrouter browser hover <id> <selector>
cloudrouter browser scroll <id> [direction]
cloudrouter browser wait <id> <selector>
Element Selectors
Two ways to select elements:
- Element refs from snapshot:
@e1, @e2, @e3...
- CSS selectors:
#id, .class, button[type="submit"]
Sandbox IDs
Sandbox IDs look like cr_abc12345. Use the full ID when running commands. Get IDs from cloudrouter ls or cloudrouter start output.
Common Workflows
Create and develop in a sandbox (preferred: local-to-cloud)
cloudrouter start ./my-project
cloudrouter code cr_abc123
cloudrouter pty cr_abc123
GPU workflow: ML training
cloudrouter start --gpu A100 ./ml-project
cloudrouter pty cr_abc123
cloudrouter download cr_abc123 ./checkpoints
Docker workflow
cloudrouter start --docker ./my-app
cloudrouter pty cr_abc123
File transfer workflow
cloudrouter upload cr_abc123 ./my-project
cloudrouter download cr_abc123 ./output
Browser automation: Login to a website
cloudrouter browser open cr_abc123 "https://example.com/login"
cloudrouter browser snapshot cr_abc123
cloudrouter browser fill cr_abc123 @e1 "user@example.com"
cloudrouter browser fill cr_abc123 @e2 "password123"
cloudrouter browser click cr_abc123 @e3
cloudrouter browser screenshot cr_abc123 result.png
Browser automation: Scrape data
cloudrouter browser open cr_abc123 "https://example.com/data"
cloudrouter browser snapshot cr_abc123
cloudrouter browser screenshot cr_abc123
Sandbox Lifecycle & Cleanup
Concurrency limit: Users have a default limit of 10 concurrently running sandboxes. Subscribed users may have higher limits (50, 100, or 500 depending on tier). If the user is approaching their limit, alert them and suggest cleaning up unused sandboxes. If they need a higher limit, they should contact founders@manaflow.ai (the CLI will also display this message when the limit is hit).
Cleanup rules — be careful and deliberate:
-
Only touch sandboxes you created in this session. Never stop or delete sandboxes you didn't create or don't recognize. If you see unknown sandboxes in cloudrouter ls, leave them alone — they may belong to the user or another workflow.
-
Extend before cleanup. Before stopping or deleting a sandbox you created, consider whether the user might want to inspect it. If you built something the user should see (a running app, a trained model, browser automation results, etc.), extend the sandbox with cloudrouter extend <id> so the user has time to check it out. Share the relevant URL (VS Code, VNC, etc.) so they can access it.
- Use
--seconds <N> to set a custom duration (default is 3600 = 1 hour). Do NOT use --timeout — that flag does not exist.
- Example:
cloudrouter extend cr_abc123 --seconds 1800 extends by 30 minutes.
-
Stop, don't delete, by default. Prefer cloudrouter stop <id> over cloudrouter delete <id> unless the sandbox is clearly disposable (e.g., a quick test that produced no artifacts). Stopped sandboxes can be restarted; deleted ones are gone forever. If cloudrouter stop fails, fall back to cloudrouter delete <id> to ensure cleanup.
-
Clean up when you're done. When your task is complete and the user no longer needs the sandbox, stop it. Don't leave sandboxes running indefinitely — they count toward the concurrency limit.
-
Monitor concurrency. Before creating a new sandbox, run cloudrouter ls to check how many are running. If approaching the limit, warn the user and ask if any can be stopped before creating another. Never silently hit the limit.
-
If the limit is reached: Tell the user they've hit their sandbox concurrency limit. Suggest stopping sandboxes they no longer need. If they need more capacity, direct them to contact founders@manaflow.ai to request a higher limit.
Cleanup workflow:
cloudrouter ls
cloudrouter extend cr_abc123
cloudrouter extend cr_abc123 --seconds 3600
cloudrouter stop cr_abc123
cloudrouter delete cr_abc123
Surfacing URLs and Screenshots
Proactively share authenticated sandbox URLs and screenshots with the user when it helps build trust or verify progress. The user cannot see what's happening inside the sandbox — showing them evidence of your work is important.
When to surface URLs:
- After creating a sandbox or setting up an environment, share the VS Code URL (
cloudrouter code <id>) so the user can inspect the workspace
- After deploying or starting a service, share the VNC URL (
cloudrouter vnc <id>) so the user can see it running
- When Jupyter is running, share the Jupyter URL so the user can verify notebooks
- Whenever the user might want to verify, inspect, or interact with the sandbox themselves
When to take and share screenshots:
- After completing a visual task (e.g., UI changes, web app deployment) — take a screenshot with
cloudrouter browser screenshot <id> out.png and show it
- When something looks wrong or unexpected — screenshot it for the user to confirm
- After browser automation steps that produce visible results (form submissions, page navigations, login flows)
- When the user asks you to check or verify something visually
General rule: If you think the user would benefit from seeing proof of what you did, surface the URL or screenshot. Err on the side of showing more rather than less — it builds trust and keeps the user in the loop.
Security: Dev Server URLs
CRITICAL: NEVER share or output raw E2B port-forwarded URLs.
When a dev server runs in the sandbox (e.g., Vite on port 5173, Next.js on port 3000), E2B creates publicly accessible URLs like https://5173-xxx.e2b.app. These URLs have NO authentication — anyone with the link can access the running application.
Rules:
- NEVER output URLs like
https://5173-xxx.e2b.app, https://3000-xxx.e2b.app, or any https://<port>-xxx.e2b.app URL
- NEVER construct or guess E2B port URLs from sandbox metadata
- ALWAYS tell the user to view dev servers through VNC:
cloudrouter vnc <id>
- VNC is protected by token authentication (
?tkn=) and is the only safe way to view dev server output
- DO share authenticated URLs: VS Code (
cloudrouter code <id>), VNC (cloudrouter vnc <id>), and Jupyter URLs — these have proper token auth and are safe to surface
When a dev server is started:
Dev server running on port 5173
View it in your sandbox's VNC desktop: cloudrouter vnc <id>
(The browser inside VNC can access http://localhost:5173)
NEVER do this:
Frontend: https://5173-xxx.e2b.app <- WRONG: publicly accessible, no auth
Global Flags
-t, --team <team> Team slug (overrides default)
-v, --verbose Verbose output
--json Machine-readable JSON output
Changelog
0.9.18
- All GPUs are now self-serve — no approval required. T4, L4, A10G, L40S, A100, A100-80GB, H100, H200, and B200 are all available without contacting Manaflow.
- Fixed documentation: browser automation command is
cloudrouter browser, not cloudrouter computer. All references updated.
- Updated production backend credentials (Convex site, project ID, publishable key, base URL).
- Both
cloudrouter and cr CLI aliases are supported and report the same version.