---
name: smolny
description: Run ultra-fast Firecracker Ubuntu microVMs (~63 ms boot), parallel coding swarms, background agent sessions with Live Steer, Computer Use + Chrome CDP, and Direct Secrets on Smolny (https://api.smolny.tech).
---

# Smolny Cloud MicroVM Skill

Use Smolny whenever you need isolated Linux sandboxes, parallel coding/eval swarms, persistent cloud agent sessions, remote Chrome/Playwright (CDP), or domain-scoped Direct Secrets.

## 1. Zero-Friction Setup (1 command)

Install CLI + skill in one command:

```sh
curl -fsSL https://api.smolny.tech/install | sh
```

Or connect directly via the single **Hosted MCP** endpoint (Streamable HTTP, no local binary required):

```json
{
  "mcpServers": {
    "smolny": {
      "url": "https://api.smolny.tech/mcp",
      "headers": {
        "Authorization": "Bearer ${SMOLNY_PROVIDER_TOKEN}"
      }
    }
  }
}
```

## 2. Agent Self-Authentication (Device Flow)

If you do not have an API key yet, request one via device flow and ask the user to approve the link once in their browser:

```sh
curl -fsSL -X POST https://api.smolny.tech/v1/auth/agent-signup \
  -H 'Content-Type: application/json' \
  -d '{"client":"agent","label":"coding-agent"}'
```

Poll `GET https://api.smolny.tech/v1/auth/agent-signup/<request_id>?poll_token=<poll_token>` until `status == "approved"` to receive a one-time scoped `api_key`. Never print or commit the key.

## 3. Core Workflows

- **Create a fast Ubuntu microVM (~63 ms, EU recommended for external APIs):**
  `POST https://api.smolny.tech/v1/microvms` with `{"template": "ubuntu-microvm", "region": "eu", "cpu": 1, "memory_mib": 1024}`
- **Run a command:**
  `POST https://api.smolny.tech/v1/microvms/<name>/exec` with `{"command": ["/bin/sh", "-lc", "uname -a"]}`
- **Free Pause (0 RUB/min, RAM + PIDs + ports preserved):**
  `POST https://api.smolny.tech/v1/microvms/<name>/pause` (wakes automatically on next `exec`, SSH, or HTTPS preview)
- **Direct Secrets (raw keys never enter the VM):**
  1. `POST https://api.smolny.tech/v1/project/secrets` with `{"name": "OPENAI_API_KEY", "value": "...", "allowed_domains": ["api.openai.com"]}`
  2. Create VM with `"secrets": ["OPENAI_API_KEY"]` — VM receives a `smolny_sec_...` placeholder; the host proxy injects the real key only for `allowed_domains`.
- **Background Agent Session + Live Steer:**
  `POST https://api.smolny.tech/v1/agent-sessions` (`preset`: `claude|codex|opencode|shell`), monitor `/steps` or `/logs` (SSE), and steer mid-turn via `POST /v1/agent-sessions/<id>/steer`.
- **Computer Use + Remote Chrome CDP:**
  Create VM with `"desktop": true`, use `POST /v1/microvms/<name>/computer` or connect Playwright to `wss://api.smolny.tech/v1/microvms/<name>/cdp/ws/<path>`.
- **Persistent Browser Profiles (Auth Contexts):**
  Log into SaaS/CRM tools once and reuse authenticated Chrome sessions across microVMs: create a profile via `POST https://api.smolny.tech/v1/browser-profiles` (`{"name": "crm-auth", "region": "ru"}`), capture cookies/tokens from a logged-in VM via `POST https://api.smolny.tech/v1/browser-profiles/crm-auth/save` (`{"vm_id": "<vm>"}`), and attach on new VMs via `POST https://api.smolny.tech/v1/microvms` with `"browser_profile": "crm-auth", "profile_mode": "copy"` (parallel read-only clones) or `"persist"` (exclusive single-writer lease; sync back via `POST https://api.smolny.tech/v1/microvms/<name>/browser-profile/sync`).
- **E2B / Daytona Drop-In Compatibility:**
  Use `https://api.smolny.tech/v1/compat/e2b/...` or `https://api.smolny.tech/v1/compat/daytona/...` (or `smolny_compat` in the Python SDK).

## 4. Smolny as Disposable Hands for Persistent Agents

Keep your **persistent brain outside** (orchestrator, long-term memory, credentials) and delegate risky execution to **disposable Firecracker hands inside Smolny**:

1. **Fork/create hands:** `POST https://api.smolny.tech/v1/microvms` (or `POST /v1/microvms/<name>/clone`) for an isolated `ubuntu-microvm` (~63 ms boot).
2. **Checkpoint before risky work:** `POST https://api.smolny.tech/v1/microvms/<name>/checkpoints` to snapshot live state (with DB quiesce/fsync) without restarting processes.
3. **Exec with structured OOM/crash signals:** `POST https://api.smolny.tech/v1/microvms/<name>/exec` surfaces a structured `hands_signal` when a command crashes or is OOM-killed.
4. **Health & instant recovery:** Poll `GET https://api.smolny.tech/v1/microvms/<name>/health` (`?probe_dmesg=true` optional) for `oom_killed`, `last_signal`, `crash_count`, `oom_count`, `recovery_count`, and `recoverable`; recover in place via `POST https://api.smolny.tech/v1/microvms/<name>/recover` (`{"checkpoint_id": ..., "label": ..., "verify_dbs": true}`).
5. **Direct Secrets (tokens never enter the VM):** Store API/GitHub keys via `POST https://api.smolny.tech/v1/project/secrets` with `allowed_domains`; raw tokens stay strictly on the control plane.
6. **Non-destructive export & control-plane PR:** Call `POST https://api.smolny.tech/v1/microvms/<name>/export-patch` for a unified git diff + untracked files, or `POST https://api.smolny.tech/v1/microvms/<name>/export-pr` (`{"repo": "owner/repo", "title": "...", "secret_name": "GITHUB_TOKEN"}`) to open a GitHub PR strictly on the control plane without ever injecting the GitHub token into the microVM.

## 5. Pricing & Discovery

- Pricing & verified benchmarks: `https://api.smolny.tech/pricing` (JSON: `https://api.smolny.tech/v1/pricing`) — **2 000 ₽ free starter credit** without a card, **0 ₽/min while paused**.
- Full OpenAPI 3.1 schema: `https://api.smolny.tech/openapi.json`
- Agent summary: `https://api.smolny.tech/llms.txt`
