<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: PetrJ</title>
    <description>The latest articles on DEV Community by PetrJ (@petrj).</description>
    <link>https://dev.to/petrj</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4243550%2F04af960e-e4fd-45d5-b12d-1b56e3f3a3a3.png</url>
      <title>DEV Community: PetrJ</title>
      <link>https://dev.to/petrj</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/petrj"/>
    <language>en</language>
    <item>
      <title>Run AI-agent jobs on a schedule or from a webhook – in an isolated microVM</title>
      <dc:creator>PetrJ</dc:creator>
      <pubDate>Sun, 29 Nov 2026 18:23:41 +0000</pubDate>
      <link>https://dev.to/petrj/run-ai-agent-jobs-on-a-schedule-or-from-a-webhook-in-an-isolated-microvm-2m3b</link>
      <guid>https://dev.to/petrj/run-ai-agent-jobs-on-a-schedule-or-from-a-webhook-in-an-isolated-microvm-2m3b</guid>
      <description>&lt;p&gt;You have a script that should run every weekday morning. Or a job that should start whenever someone pushes to GitHub. The classic answer is cron on a server, and it works – until you have to keep that server patched, share it with other services, keep secrets on it, and find out why yesterday's run is still running when today's one starts.&lt;/p&gt;

&lt;p&gt;AI agents make this more common, not less. An agent that writes a daily report, checks a website or updates a dataset needs to run &lt;em&gt;later&lt;/em&gt;, without you opening a chat.&lt;/p&gt;

&lt;p&gt;This tutorial shows &lt;strong&gt;triggers&lt;/strong&gt; in &lt;a href="https://sandbox.wbx.cz" rel="noopener noreferrer"&gt;WBX Sandbox&lt;/a&gt;: you save a job once, and it runs by itself.&lt;/p&gt;

&lt;h2&gt;
  
  
  The idea: a trigger is a saved job
&lt;/h2&gt;

&lt;p&gt;A trigger stores &lt;em&gt;what&lt;/em&gt; to run and &lt;em&gt;when&lt;/em&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;What:&lt;/strong&gt; a background job in a fresh sandbox (a Firecracker microVM), or a command in a &lt;strong&gt;named sandbox&lt;/strong&gt; that keeps its files between runs.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;When:&lt;/strong&gt; a cron &lt;strong&gt;schedule&lt;/strong&gt; in your time zone, a &lt;strong&gt;webhook&lt;/strong&gt; URL, or both. You can also run it right now.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Every scheduled or webhook run is an ordinary job: it has a log, result files and an execution receipt, and it is tagged with &lt;code&gt;trigger_id&lt;/code&gt;, &lt;code&gt;trigger_event&lt;/code&gt; and &lt;code&gt;trigger_run&lt;/code&gt;, so you can filter and audit runs later.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 1 – A schedule
&lt;/h2&gt;

&lt;p&gt;Every weekday at 7:00 Prague time, run &lt;code&gt;report.py&lt;/code&gt; and keep its output files. With curl:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl -s -X POST https://sandbox.wbx.cz/v1/triggers \
  -H &lt;span class="s2"&gt;"Authorization: Bearer $WBXSANDBOX_API_KEY"&lt;/span&gt; \
  -H &lt;span class="s2"&gt;"Content-Type: application/json"&lt;/span&gt; \
  -d &lt;span class="s1"&gt;'{
    "name": "Morning report",
    "job": {"command": "python report.py", "template": "base", "timeout_s": 600, "save_artifacts": true},
    "schedule": {"cron": "0 7 * * 1-5", "timezone": "Europe/Prague"},
    "max_cost": "0.10"
  }'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The same with the Python SDK (&lt;code&gt;pip install wbxsandbox&lt;/code&gt;):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="n"&gt;wbxsandbox&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nc"&gt;Trigger&lt;/span&gt;

&lt;span class="n"&gt;t&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;Trigger&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;create&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"Morning report"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"python report.py"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                   &lt;span class="n"&gt;schedule&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"0 7 * * 1-5"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;timezone&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"Europe/Prague"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                   &lt;span class="n"&gt;max_cost&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"0.10"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;template&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"base"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;timeout_seconds&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;600&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;save_artifacts&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="kc"&gt;True&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And with the TypeScript SDK (&lt;code&gt;npm install wbxsandbox&lt;/code&gt;):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="no"&gt;WBX&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s2"&gt;"wbxsandbox"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;wbx&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="no"&gt;WBX&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;apiKey&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;process&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;env&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="no"&gt;WBXSANDBOX_API_KEY&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;t&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;wbx&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;triggers&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;create&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Morning report"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;schedule&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"0 7 * * 1-5"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;timezone&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Europe/Prague"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;maxCost&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"0.10"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;job&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;command&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"python report.py"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;saveArtifacts&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="nb"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;t&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;nextRuns&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The answer already contains the next five run times. When I tried this on a Sunday evening, it returned Monday to Friday at 07:00 &lt;code&gt;+01:00&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;"next_runs": [
  "2026-11-30T07:00:00+01:00",
  "2026-12-01T07:00:00+01:00",
  ...
]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A few details worth knowing:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;cron&lt;/code&gt; is the standard five-field format. Names like &lt;code&gt;mon-fri&lt;/code&gt; and shortcuts like &lt;code&gt;@daily&lt;/code&gt; work too.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;timezone&lt;/code&gt; is an IANA name (default UTC). Summer time is handled: a local time that doesn't exist that day is skipped, a repeated one runs once.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;max_cost&lt;/code&gt; is &lt;strong&gt;required&lt;/strong&gt; for job triggers – a price limit for each run, in your account's currency, checked before the run starts (&lt;code&gt;"0.10"&lt;/code&gt; here; for CZK use &lt;code&gt;"2.50"&lt;/code&gt;). Add &lt;code&gt;max_cost_per_day&lt;/code&gt; if you want a daily cap too.&lt;/li&gt;
&lt;li&gt;Runs can start up to 30 seconds late (load spreading). Missed times (for example during maintenance) are not replayed – one run starts and records how many were missed.&lt;/li&gt;
&lt;li&gt;Values in &lt;code&gt;env&lt;/code&gt; are stored encrypted and never returned by the API.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Useful endpoints: &lt;code&gt;GET /v1/triggers&lt;/code&gt;, &lt;code&gt;PATCH&lt;/code&gt;/&lt;code&gt;DELETE /v1/triggers/{id}&lt;/code&gt;, &lt;code&gt;POST /v1/triggers/{id}/run&lt;/code&gt; (run now) and &lt;code&gt;GET /v1/triggers/{id}/runs&lt;/code&gt;. In the SDKs: &lt;code&gt;t.run()&lt;/code&gt;, &lt;code&gt;t.runs()&lt;/code&gt;, &lt;code&gt;t.pause()&lt;/code&gt;, &lt;code&gt;t.resume()&lt;/code&gt;, &lt;code&gt;t.delete()&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 2 – A signed webhook, e.g. from GitHub
&lt;/h2&gt;

&lt;p&gt;Add a webhook and require a signature:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="nl"&gt;"webhook"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nl"&gt;"enabled"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"signature"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"hmac-sha256"&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;(In the SDKs: &lt;code&gt;webhook=True, signed=True&lt;/code&gt; in Python, &lt;code&gt;webhook: true, signed: true&lt;/code&gt; in TypeScript.)&lt;/p&gt;

&lt;p&gt;The response to the create call contains &lt;code&gt;webhook_url&lt;/code&gt; and &lt;code&gt;signing_secret&lt;/code&gt;. &lt;strong&gt;They are shown only once&lt;/strong&gt; – only a hash of the secret is stored. The URL looks like &lt;code&gt;https://sandbox.wbx.cz/v1/hooks/trg_…/&amp;lt;secret&amp;gt;&lt;/code&gt;. If it leaks, &lt;code&gt;POST /v1/triggers/{id}/rotate-secret&lt;/code&gt; (or &lt;code&gt;t.rotate_secret()&lt;/code&gt;) gives you a new one and the old URL stops working.&lt;/p&gt;

&lt;p&gt;For GitHub, paste the URL into &lt;em&gt;Settings → Webhooks&lt;/em&gt; (content type &lt;code&gt;application/json&lt;/code&gt;) and use the signing secret as the webhook secret: GitHub's &lt;code&gt;X-Hub-Signature-256&lt;/code&gt; header is accepted, as well as our own &lt;code&gt;X-WBX-Signature: sha256=…&lt;/code&gt;. If you call the webhook from your own code, the SDKs sign the body for you:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;requests&lt;/span&gt;
&lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="n"&gt;wbxsandbox&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nc"&gt;Trigger&lt;/span&gt;

&lt;span class="n"&gt;body&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;b&lt;/span&gt;&lt;span class="s1"&gt;'{"ref": "refs/heads/main"}'&lt;/span&gt;
&lt;span class="n"&gt;requests&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;post&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="no"&gt;WEBHOOK_URL&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;body&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;headers&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="s2"&gt;"Content-Type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"application/json"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="s2"&gt;"X-WBX-Signature"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;Trigger&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;sign&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="no"&gt;SIGNING_SECRET&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;body&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;signWebhook&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s2"&gt;"wbxsandbox"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;body&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;JSON&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;stringify&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;ref&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"refs/heads/main"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nb"&gt;fetch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;webhookUrl&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;method&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"POST"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;body&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;headers&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="s2"&gt;"X-WBX-Signature"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;signWebhook&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;signingSecret&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;body&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The HTTP answer tells you what happened: &lt;code&gt;202&lt;/code&gt; started, &lt;code&gt;401&lt;/code&gt; bad or missing signature, &lt;code&gt;404&lt;/code&gt; unknown URL, &lt;code&gt;409&lt;/code&gt; paused or the previous run is still active, &lt;code&gt;413&lt;/code&gt; body over 1 MB, &lt;code&gt;429&lt;/code&gt; rate limit. In my test, a push without a signature got:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;401 {"code": "invalid_signature", "error": "missing or invalid signature (X-WBX-Signature: sha256=&amp;lt;HMAC-SHA256 of the body&amp;gt;)"}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;and the same push, signed, got &lt;code&gt;202&lt;/code&gt; with the new job's ID.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The important part:&lt;/strong&gt; the webhook body never becomes part of your command. It arrives as files in &lt;code&gt;input/&lt;/code&gt; – &lt;code&gt;input/webhook.body&lt;/code&gt; (the raw body) and &lt;code&gt;input/webhook.json&lt;/code&gt; (metadata such as selected headers) – and their paths are in environment variables:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;json&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;os&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;subprocess&lt;/span&gt;

&lt;span class="n"&gt;meta&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;json&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;load&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;open&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;os&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;environ&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"WBX_WEBHOOK_FILE"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;payload&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;json&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;load&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;open&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;os&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;environ&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"WBX_WEBHOOK_BODY"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;event&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;meta&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"headers"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"x-github-event"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;event&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="s2"&gt;"push"&lt;/span&gt; &lt;span class="ow"&gt;and&lt;/span&gt; &lt;span class="n"&gt;payload&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"ref"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="s2"&gt;"refs/heads/main"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;subprocess&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;run&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"python"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"-m"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"pytest"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"-q"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;check&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="kc"&gt;True&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;My test job printed the event and ran a public test suite in its own microVM:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;event: push | ref: refs/heads/main | commit: Fix token expiry check
297 passed
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Every run also gets &lt;code&gt;WBX_TRIGGER_ID&lt;/code&gt;, &lt;code&gt;WBX_TRIGGER_EVENT&lt;/code&gt; (&lt;code&gt;schedule&lt;/code&gt;, &lt;code&gt;webhook&lt;/code&gt; or &lt;code&gt;manual&lt;/code&gt;) and &lt;code&gt;WBX_TRIGGER_RUN&lt;/code&gt;, plus &lt;code&gt;WBX_SCHEDULED_AT&lt;/code&gt; for scheduled runs.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 3 – An agent with memory in a named sandbox
&lt;/h2&gt;

&lt;p&gt;A fresh microVM per run is perfect for reports and tests. Sometimes you want the opposite: an agent that remembers. Point the trigger at a &lt;strong&gt;named sandbox&lt;/strong&gt; instead of a job:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="nl"&gt;"sandbox"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nl"&gt;"name"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"research-agent"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"command"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"python agent.py"&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="nc"&gt;Trigger&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;create&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"Research agent"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"python agent.py"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;sandbox&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"research-agent"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
               &lt;span class="n"&gt;schedule&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"0 */6 * * *"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;timezone&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"Europe/Prague"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The sandbox is created on the first run. Every later run wakes the same sandbox with its files and, when possible, its memory, then runs the command. The agent can keep notes, a SQLite database or a logged-in browser profile between runs. The command has a time limit (&lt;code&gt;timeout_s&lt;/code&gt;, default 300 s, at most 3600 s), and each run record keeps the exit code and the last 4 KB of output.&lt;/p&gt;

&lt;h2&gt;
  
  
  Job or named sandbox?
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;You want…&lt;/th&gt;
&lt;th&gt;Use&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;a clean environment every time (reports, tests, exports)&lt;/td&gt;
&lt;td&gt;a &lt;strong&gt;job&lt;/strong&gt; – every run is a fresh microVM, nothing carries over&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;results you can audit later&lt;/td&gt;
&lt;td&gt;a &lt;strong&gt;job&lt;/strong&gt; – each run has a log, result files and an execution receipt&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;an agent that remembers (notes, a database, a logged-in browser)&lt;/td&gt;
&lt;td&gt;a &lt;strong&gt;named sandbox&lt;/strong&gt; – the same sandbox wakes up for every run&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;something that installs a lot once and then runs quickly&lt;/td&gt;
&lt;td&gt;a &lt;strong&gt;named sandbox&lt;/strong&gt; – the installed packages stay&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Both can be started by a schedule, a webhook, or both at once.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 4 – From your AI assistant (MCP)
&lt;/h2&gt;

&lt;p&gt;If you use WBX Sandbox as a connector in Claude, ChatGPT or another MCP client (&lt;code&gt;https://sandbox.wbx.cz/mcp&lt;/code&gt;), you don't need curl at all. The MCP tools are &lt;code&gt;create_trigger&lt;/code&gt;, &lt;code&gt;list_triggers&lt;/code&gt;, &lt;code&gt;pause_trigger&lt;/code&gt; and &lt;code&gt;run_trigger&lt;/code&gt;. You can simply write:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Every weekday at 7:00 Prague time, download yesterday's euro exchange rates from the ECB, summarise them and save a chart.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The assistant creates the trigger with a schedule, a time zone and a price limit. You'll find it in the portal under &lt;strong&gt;Schedules&lt;/strong&gt;, with its next runs. A finished job in the portal also has a &lt;strong&gt;Run on a schedule&lt;/strong&gt; button.&lt;/p&gt;

&lt;h2&gt;
  
  
  Limits and guard rails
&lt;/h2&gt;

&lt;p&gt;Automations run while nobody is watching, so the guard rails are on by default:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Price limit per run&lt;/strong&gt; (&lt;code&gt;max_cost&lt;/code&gt;, required for jobs) and an optional &lt;strong&gt;daily limit&lt;/strong&gt; (&lt;code&gt;max_cost_per_day&lt;/code&gt;, counts finished and running runs). Your account budget applies as well.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;No pile-ups:&lt;/strong&gt; &lt;code&gt;concurrency&lt;/code&gt; is &lt;code&gt;skip&lt;/code&gt; by default – if the previous run is still active, the next one is skipped. Use &lt;code&gt;allow&lt;/code&gt; if overlapping runs are fine.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Auto-pause:&lt;/strong&gt; after 5 failed runs in a row the trigger pauses and the account owner gets an email. It also pauses if the account is suspended.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Untrusted input:&lt;/strong&gt; webhook data may contain prompt injection. Treat it as data to analyse, not as instructions, and keep secrets out of URLs and bodies.&lt;/li&gt;
&lt;li&gt;The usual job rules still apply: network policy, no outgoing SMTP email, no mining.&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Plan&lt;/th&gt;
&lt;th&gt;Triggers&lt;/th&gt;
&lt;th&gt;Shortest schedule&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Free&lt;/td&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;once an hour&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Solo&lt;/td&gt;
&lt;td&gt;10&lt;/td&gt;
&lt;td&gt;every 5 minutes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Pro&lt;/td&gt;
&lt;td&gt;50&lt;/td&gt;
&lt;td&gt;every 5 minutes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Team and higher&lt;/td&gt;
&lt;td&gt;200&lt;/td&gt;
&lt;td&gt;every 5 minutes&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  What to try first
&lt;/h2&gt;

&lt;p&gt;Start small: a trigger with only a webhook, and press "Run now" a few times. Look at the runs in the portal, check the log and the files, and only then add a schedule. If your job reads webhook data, send it a test body with curl before you connect GitHub.&lt;/p&gt;

&lt;h2&gt;
  
  
  Cost and availability
&lt;/h2&gt;

&lt;p&gt;There is no fee for triggers – you pay only for the runs, like any other job. The feature is available on paid plans or after topping up at least $15; otherwise creating a trigger returns &lt;code&gt;403 feature_disabled&lt;/code&gt; (&lt;code&gt;FeatureDisabledError&lt;/code&gt; in the SDKs).&lt;/p&gt;

&lt;p&gt;Full documentation: &lt;a href="https://sandbox.wbx.cz/docs/jobs/schedules" rel="noopener noreferrer"&gt;sandbox.wbx.cz/docs/jobs/schedules&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Disclosure: I work on WBX Sandbox. Questions: &lt;a href="mailto:info@wbx.cz"&gt;info@wbx.cz&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>python</category>
      <category>devops</category>
      <category>automation</category>
    </item>
    <item>
      <title>Everything your AI can do with a computer of its own: a WBX Sandbox feature tour</title>
      <dc:creator>PetrJ</dc:creator>
      <pubDate>Sat, 21 Nov 2026 18:10:55 +0000</pubDate>
      <link>https://dev.to/wbxsandbox/everything-your-ai-can-do-with-a-computer-of-its-own-a-wbx-sandbox-feature-tour-3m70</link>
      <guid>https://dev.to/wbxsandbox/everything-your-ai-can-do-with-a-computer-of-its-own-a-wbx-sandbox-feature-tour-3m70</guid>
      <description>&lt;p&gt;&lt;em&gt;Isolated Linux microVMs in the EU, for AI assistants without code and for agents you build yourself.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;AI assistants are good at writing code. Running it is a different story. The assistant can't install packages on your computer, it shouldn't touch your files, and a chat window is a poor place for a two-hour job.&lt;/p&gt;

&lt;p&gt;WBX Sandbox gives the AI its own isolated computer in the EU. It installs what it needs, runs the code, and hands back the result: a file, a chart, a link, a test report. Nothing runs on your machine.&lt;/p&gt;

&lt;p&gt;This post is a tour of what the platform does, so you can picture what to build with it: what you get if you just connect your assistant, and what's there when you write your own agents.&lt;/p&gt;

&lt;h2&gt;
  
  
  Two ways in
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Without code: connect your AI assistant once.&lt;/strong&gt;&lt;br&gt;
WBX Sandbox is an MCP server at &lt;code&gt;https://sandbox.wbx.cz/mcp&lt;/code&gt;. It works in Claude (web, desktop and mobile), ChatGPT (developer mode), Claude Code, Cursor, VS Code with GitHub Copilot, Codex CLI and Gemini CLI.&lt;/p&gt;

&lt;p&gt;Connecting takes about two minutes: paste the address, sign in, turn the connector on, ask a question. After that you just talk to your assistant. When it needs a computer, it creates one.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;With code: build your own agents.&lt;/strong&gt;&lt;br&gt;
There's a REST API, a Python SDK and a TypeScript SDK:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pip install wbxsandbox     &lt;span class="c"&gt;# Python&lt;/span&gt;
npm install wbxsandbox     &lt;span class="c"&gt;# Node.js 20+, Deno, Bun&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;There are also integrations for LangChain Deep Agents and the OpenAI Agents SDK, so a sandbox can be the place where your agent framework runs its tools.&lt;/p&gt;

&lt;p&gt;Both paths use the same sandboxes. Anything below works from a chat prompt or from code.&lt;/p&gt;

&lt;h2&gt;
  
  
  Sandboxes and templates
&lt;/h2&gt;

&lt;p&gt;Each sandbox is its own Firecracker microVM with its own kernel, root access and its own disk. It starts in milliseconds to seconds, depending on the template.&lt;/p&gt;

&lt;p&gt;There are 10 templates:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Template&lt;/th&gt;
&lt;th&gt;What's inside&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;base&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Debian + Python 3.12&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;mini&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;1 vCPU, 256 MB, for small tasks&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;code-interpreter&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;numpy, pandas, matplotlib, scipy, scikit-learn&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;browser&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Playwright + Chromium&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;desktop&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;XFCE desktop (see the beta section below)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;fullstack&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Node 22 + Python&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;node&lt;/code&gt;, &lt;code&gt;go&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Language toolchains&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;rust&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Rust, 4 vCPU&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;ubuntu&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Ubuntu 24.04&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;On top of templates you pick a compute class: &lt;code&gt;economy&lt;/code&gt;, &lt;code&gt;balanced&lt;/code&gt;, &lt;code&gt;performance&lt;/code&gt; or &lt;code&gt;memory&lt;/code&gt;. A verified package cache for pip, npm and Go makes repeated installs faster.&lt;/p&gt;

&lt;p&gt;We tested this on 21 November 2026: 50 sandboxes at the same time, 10 templates × 5. For each template that meant one source sandbox and 4 clones of it. All 50 worked.&lt;/p&gt;

&lt;h2&gt;
  
  
  Sleep, names and coming back later
&lt;/h2&gt;

&lt;p&gt;A sandbox doesn't have to die when the chat ends.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Sleep.&lt;/strong&gt; An idle sandbox falls asleep. The disk is kept and you don't pay for compute while it sleeps. The next request wakes it in a few seconds, with the same ID.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Names.&lt;/strong&gt; Give a sandbox a name and it comes back in the next chat, files and all. "Create a sandbox called &lt;code&gt;invoices&lt;/code&gt;" is enough.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Retention.&lt;/strong&gt; How long a sleeping sandbox is kept depends on your plan, and you can set it per sandbox with &lt;code&gt;keep_days&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;One thing to know: &lt;code&gt;/tmp&lt;/code&gt; lives in memory and is empty after a wake-up. Keep your work in &lt;code&gt;/home/user&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Snapshots and clones
&lt;/h2&gt;

&lt;p&gt;This is where it gets useful for agents.&lt;/p&gt;

&lt;p&gt;A &lt;strong&gt;snapshot&lt;/strong&gt; is a saved copy of a sandbox's disk. New sandboxes start from it with the same files and installed packages, so you set up an environment once and reuse it.&lt;/p&gt;

&lt;p&gt;A &lt;strong&gt;clone&lt;/strong&gt; is 1 to 10 copies of a &lt;em&gt;running&lt;/em&gt; sandbox, made with one call. Each copy gets its own ID, its own network and its own identity: a new machine-id and new SSH keys. Copies inherit the lifetime, compute class, sleep settings and network policy, and a copy's network is never wider than its source's.&lt;/p&gt;

&lt;p&gt;The typical pattern: prepare the environment once, then run several agents or several test variants on top of it at the same time.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="n"&gt;wbxsandbox&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nc"&gt;Sandbox&lt;/span&gt;

&lt;span class="c1"&gt;# Set up one environment&lt;/span&gt;
&lt;span class="n"&gt;sb&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;Sandbox&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;create&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;template&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"base"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"demo-env"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;sb&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;run&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"pip install -q requests rich"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;sb&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;run&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"mkdir -p /home/user/app &amp;amp;&amp;amp; "&lt;/span&gt;
       &lt;span class="s2"&gt;"echo 'print(\"hello from\", __import__(\"socket\").gethostname())' "&lt;/span&gt;
       &lt;span class="s2"&gt;"&amp;gt; /home/user/app/main.py"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="c1"&gt;# Save it as a snapshot&lt;/span&gt;
&lt;span class="n"&gt;snap&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;sb&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;snapshot&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"demo-env-v1"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="c1"&gt;# Three running copies, one call&lt;/span&gt;
&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;clone&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;sb&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;clone&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;count&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;clone&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nb"&gt;id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;clone&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;run&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"python3 /home/user/app/main.py"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;stdout&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;strip&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="c1"&gt;# Later: a fresh sandbox from the snapshot, packages already installed&lt;/span&gt;
&lt;span class="n"&gt;fresh&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;snap&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;create_sandbox&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;fresh&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;run&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"python3 -c 'import rich; print(\"rich is installed\")'"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;stdout&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Network and public addresses
&lt;/h2&gt;

&lt;p&gt;Each sandbox gets the network you choose:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Full internet&lt;/strong&gt;, for downloads, scraping and package installs.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Allowlist&lt;/strong&gt;: only the domains or ranges you list, for example PyPI and one API.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Blocklist&lt;/strong&gt;: everything except what you exclude.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;No network&lt;/strong&gt;, for sensitive data or code you don't trust.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You can also choose IPv4, dual stack, or IPv6 only, in which case the sandbox gets its own public IPv6 address. Private ranges and SMTP are always blocked, whatever you choose.&lt;/p&gt;

&lt;p&gt;Anything listening on a port can get a &lt;strong&gt;public HTTPS address&lt;/strong&gt;, protected by a token. That's how an AI shows you its work: it builds a small game, a dashboard or a form, starts it, and sends you a link you can open on your phone.&lt;/p&gt;

&lt;h2&gt;
  
  
  Background jobs, batches and a price limit
&lt;/h2&gt;

&lt;p&gt;Commands are fine for quick things. Longer work belongs in a &lt;strong&gt;job&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;A job keeps running in the background even after the chat disconnects. The AI doesn't need to ask "done yet?" every few seconds: waiting happens on the server, or you get a signed webhook when it finishes. Jobs support retries and an idempotency key, so a repeated call doesn't start the work twice.&lt;/p&gt;

&lt;p&gt;Output files come back as artifacts, each with a SHA-256. Logs are shortened for the AI: test results, errors with context and the end of the log. The raw log is still available when you need it.&lt;/p&gt;

&lt;p&gt;A &lt;strong&gt;batch&lt;/strong&gt; is 1 to 1,000 jobs at once, with dependencies between them, a concurrency limit and a CSV report at the end. A failure stays inside its job, and the others carry on.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Budget Guard&lt;/strong&gt; puts a price limit on a job or a batch. Before anything runs, the platform calculates the worst-case cost. If that could exceed the limit, the work doesn't start at all. It doesn't stop halfway through. On top of that, you can set a monthly and a daily budget for the whole account.&lt;/p&gt;

&lt;p&gt;Every job leaves a &lt;strong&gt;receipt&lt;/strong&gt;: the command, template, runtime, exit code, CPU and memory used, and hashes of the output files. On request the receipt is signed with Ed25519 and can be checked against a public key. When an agent tells you "the tests passed", you can see what actually ran.&lt;/p&gt;

&lt;p&gt;For short computations that don't need a network, there are &lt;strong&gt;WebAssembly (WASI) jobs&lt;/strong&gt; that start in milliseconds.&lt;/p&gt;

&lt;h2&gt;
  
  
  Desktop and Computer Use (beta)
&lt;/h2&gt;

&lt;p&gt;The &lt;code&gt;desktop&lt;/code&gt; template gives the sandbox a graphical XFCE desktop. An agent controls it the way a person would: it takes screenshots, moves the mouse and types on the keyboard.&lt;/p&gt;

&lt;p&gt;In the portal there's a live console where you can watch, take over the controls and hand them back to the agent. This part is in &lt;strong&gt;beta&lt;/strong&gt;, so expect changes.&lt;/p&gt;

&lt;h2&gt;
  
  
  The portal
&lt;/h2&gt;

&lt;p&gt;Not everything has to go through the AI. The web portal shows:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;running sandboxes, with a terminal in the browser&lt;/li&gt;
&lt;li&gt;metrics for the last hour: CPU, memory, network and disk&lt;/li&gt;
&lt;li&gt;snapshots and jobs&lt;/li&gt;
&lt;li&gt;usage and costs&lt;/li&gt;
&lt;li&gt;API keys and your team&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It's useful for checking what an agent left behind, or for finishing something by hand.&lt;/p&gt;

&lt;h2&gt;
  
  
  Security and where it runs
&lt;/h2&gt;

&lt;p&gt;Each sandbox is an isolated virtual machine and never runs on your own computer. The AI can install anything, break anything and start over without touching your files.&lt;/p&gt;

&lt;p&gt;The servers are in the EU. WBX Sandbox is run by an internet service provider, on refurbished enterprise servers given a second life. That makes the setup more economical and kinder to the environment than buying new hardware.&lt;/p&gt;

&lt;p&gt;On pricing: there's a free plan with no credit card, then prepaid credit or a monthly plan. Billing is per second for the vCPU and memory a sandbox is given.&lt;/p&gt;

&lt;h2&gt;
  
  
  Getting started
&lt;/h2&gt;

&lt;p&gt;The documentation is in English and Czech, with 11 step-by-step tutorials.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Without code:&lt;/strong&gt; your first result in Claude or ChatGPT, working with files, and a workspace that persists.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;With code:&lt;/strong&gt; your own agent, snapshots and clones, a long job with a price limit, a batch of 100 jobs, running untrusted code safely, a web app with a public address, tests in CI, and an agent on a desktop.&lt;/p&gt;

&lt;p&gt;If you've connected the MCP server, try a prompt like this one, with no code:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Create a sandbox called &lt;code&gt;sales-report&lt;/code&gt;. Download the CSV from this link, build a chart of monthly totals with matplotlib, and save it as a PNG. Then start a small web page that shows the chart and send me the link. Don't paste the data into the chat.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The AI creates the machine, installs what it needs, does the work and gives you a link. Next week, the same name brings the same sandbox back.&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;Try it for free:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Website: &lt;a href="https://sandbox.wbx.cz" rel="noopener noreferrer"&gt;https://sandbox.wbx.cz&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Connect your AI: &lt;a href="https://sandbox.wbx.cz/docs/connect" rel="noopener noreferrer"&gt;https://sandbox.wbx.cz/docs/connect&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Tutorials: &lt;a href="https://sandbox.wbx.cz/docs/tutorials" rel="noopener noreferrer"&gt;https://sandbox.wbx.cz/docs/tutorials&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Developer quickstart: &lt;a href="https://sandbox.wbx.cz/docs/quickstart" rel="noopener noreferrer"&gt;https://sandbox.wbx.cz/docs/quickstart&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Python SDK: &lt;a href="https://github.com/WBX-Sandbox/wbxsandbox-python" rel="noopener noreferrer"&gt;https://github.com/WBX-Sandbox/wbxsandbox-python&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;What would you run first on a computer your AI controls? Tell me in the comments. I'm especially curious which feature is missing for your agents.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>mcp</category>
      <category>python</category>
      <category>devops</category>
    </item>
    <item>
      <title>Analyze 3.9 million rows with Claude without putting them in the chat</title>
      <dc:creator>PetrJ</dc:creator>
      <pubDate>Fri, 20 Nov 2026 12:32:21 +0000</pubDate>
      <link>https://dev.to/petrj/analyze-39-million-rows-with-claude-without-putting-them-in-the-chat-k2p</link>
      <guid>https://dev.to/petrj/analyze-39-million-rows-with-claude-without-putting-them-in-the-chat-k2p</guid>
      <description>&lt;p&gt;If you upload a big CSV to an AI chat, you hit the context limit fast. And even when it fits, you pay for every row in tokens.&lt;/p&gt;

&lt;p&gt;There's a simpler way: let the AI work on the data in a sandbox and only bring the answer back to the chat. Here's how we did it with a month of New York taxi trips, step by step, with the real numbers.&lt;/p&gt;

&lt;h2&gt;
  
  
  What you need
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Claude (any plan, the Free plan allows one custom connector) or ChatGPT with developer mode&lt;/li&gt;
&lt;li&gt;A free WBX Sandbox account: &lt;a href="https://sandbox.wbx.cz" rel="noopener noreferrer"&gt;https://sandbox.wbx.cz&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Step 1: Add the connector (2 minutes)
&lt;/h2&gt;

&lt;p&gt;In Claude, open &lt;strong&gt;Customize → Connectors → Add custom connector&lt;/strong&gt; and paste:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;https://sandbox.wbx.cz/mcp
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Claude opens a sign-in page, you approve access, done. Other clients (ChatGPT, Cursor, VS Code, Claude Code) are covered here: &lt;a href="https://sandbox.wbx.cz/docs/connect" rel="noopener noreferrer"&gt;https://sandbox.wbx.cz/docs/connect&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 2: Give it a link, not a file
&lt;/h2&gt;

&lt;p&gt;The key is that the data never passes through the chat. Give the AI a URL and one rule:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Use WBX Sandbox to analyze all NYC taxi trips from September 2026: &lt;a href="https://d37ci6vzurychx.cloudfront.net/trip-data/yellow_tripdata_2026-09.parquet" rel="noopener noreferrer"&gt;https://d37ci6vzurychx.cloudfront.net/trip-data/yellow_tripdata_2026-09.parquet&lt;/a&gt;&lt;br&gt;
Keep the data in the sandbox, don't load it into this chat. When are taxis busiest, and which pickup zones tip the most? Show me a chart.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  Step 3: Watch what it does
&lt;/h2&gt;

&lt;p&gt;In our run, Claude:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;created a sandbox (a small Linux VM),&lt;/li&gt;
&lt;li&gt;downloaded the 67 MB Parquet file &lt;strong&gt;inside the sandbox&lt;/strong&gt; (7 seconds),&lt;/li&gt;
&lt;li&gt;installed DuckDB and ran two short Python scripts against the file,&lt;/li&gt;
&lt;li&gt;read back only the printed summaries.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;About a minute later it answered with two charts:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Taxis are busiest at &lt;strong&gt;6 pm&lt;/strong&gt; (268,207 pickups that month) and quietest at &lt;strong&gt;4 am&lt;/strong&gt; (32,315).&lt;/li&gt;
&lt;li&gt;By tip percentage, the &lt;strong&gt;Upper East Side&lt;/strong&gt; leads (24.8% of the fare). By dollars, the &lt;strong&gt;airports&lt;/strong&gt; win: JFK averages a $12.97 tip.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It also flagged the caveats itself: tips are only recorded for card payments, so cash tips are missing.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 4: Count the tokens
&lt;/h2&gt;

&lt;p&gt;This is the part we wanted to measure. We exported the same file to CSV and counted tokens with &lt;code&gt;tiktoken&lt;/code&gt; (cl100k):&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;Size&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Rows&lt;/td&gt;
&lt;td&gt;3,876,044&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Data as CSV&lt;/td&gt;
&lt;td&gt;413.6 MB ≈ &lt;strong&gt;310,805,382 tokens&lt;/strong&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;What the chat actually received (tool outputs)&lt;/td&gt;
&lt;td&gt;≈ &lt;strong&gt;2,300 tokens&lt;/strong&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;No chat model can hold 310 million tokens. The sandbox doesn't need to: the code goes to the data, and only the results come back.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why it works
&lt;/h2&gt;

&lt;p&gt;The AI writes small programs instead of reading rows. Each program prints a few lines (counts, averages, top 10), and that's all that enters the context. A few habits make this reliable:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Say it explicitly:&lt;/strong&gt; "Keep the data in the sandbox" or "print only summaries". Models follow it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Use a format built for this.&lt;/strong&gt; Parquet + DuckDB scanned 3.9M rows in under a second here.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Name the sandbox&lt;/strong&gt; if you want to continue tomorrow: "use a sandbox called &lt;code&gt;nyc-taxi&lt;/code&gt;". It falls asleep when idle and keeps the files, so the next chat can pick up where you left off.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;No internet needed for private data:&lt;/strong&gt; upload the file and ask for a sandbox without network access.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The same thing in Python
&lt;/h2&gt;

&lt;p&gt;If you're building your own agent, the loop is short: give the model one tool, &lt;code&gt;run_python(code)&lt;/code&gt;, run the code in a sandbox, and return only the clipped output. We put a complete version (one file, about 160 lines, any OpenAI-compatible model) in our examples repo:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/WBX-Sandbox/examples/tree/main/use-cases/ai-data-analyst" rel="noopener noreferrer"&gt;https://github.com/WBX-Sandbox/examples/tree/main/use-cases/ai-data-analyst&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;At the end it prints how many bytes stayed in the sandbox and how many characters went to the model.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;

&lt;p&gt;Pick a dataset you've always wanted to ask questions about, give your AI the link, and add "keep the data in the sandbox". If you try it with something interesting, I'd like to see the numbers in the comments.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;There's also a 60-second video of this run on our YouTube channel: the real recording, with the waiting shortened.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>mcp</category>
      <category>tutorial</category>
      <category>datascience</category>
    </item>
    <item>
      <title>Your AI has its own computer now. Here's how to actually use it</title>
      <dc:creator>PetrJ</dc:creator>
      <pubDate>Tue, 17 Nov 2026 05:18:11 +0000</pubDate>
      <link>https://dev.to/petrj/your-ai-has-its-own-computer-now-heres-how-to-actually-use-it-1m8i</link>
      <guid>https://dev.to/petrj/your-ai-has-its-own-computer-now-heres-how-to-actually-use-it-1m8i</guid>
      <description>&lt;p&gt;Most people connect a sandbox to their AI, ask it to run one script, and stop there. That's a bit like buying a laptop to use the calculator.&lt;/p&gt;

&lt;p&gt;We've been using WBX Sandbox with Claude every day for a few weeks, for real work and for silly things like birthday invitations. These are the habits that made the biggest difference.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Ask for a program, not for the output
&lt;/h2&gt;

&lt;p&gt;This is the big one. If you ask an AI to write 20 invitations, it types 20 invitations into the chat. Every one of them costs tokens, and number 17 tends to drift.&lt;/p&gt;

&lt;p&gt;Ask it to write &lt;em&gt;one program&lt;/em&gt; that makes the 20 invitations instead. The sandbox runs it, the output is consistent, and the chat only sees a short summary. We made 150 race certificates from a spreadsheet this way. The program was about 100 lines.&lt;/p&gt;

&lt;p&gt;Prompt that works:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Use the sandbox. Write a script that generates the files, run it, and give me a ZIP. Don't paste the content into the chat.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  2. Give the sandbox a name
&lt;/h2&gt;

&lt;p&gt;An unnamed sandbox is good for one conversation. A named one comes back:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Create a sandbox called &lt;code&gt;invoices&lt;/code&gt; and keep working there.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;When it's idle it falls asleep and keeps its disk. Next week, in a new chat, the same name wakes the same machine with your files, installed packages and half-finished scripts. It's the closest thing to "my project folder" an AI chat has.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Long work goes to a job, not a command
&lt;/h2&gt;

&lt;p&gt;A command that takes 20 minutes is fragile. Chats time out and connections drop. For anything longer than a few minutes, tell the AI to start a background job:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Run this as a job and wait for it.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The job keeps running even if the chat disconnects. The AI waits for it on the server side instead of asking "done yet?" every few seconds, which saves a surprising number of turns.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Fan out
&lt;/h2&gt;

&lt;p&gt;Have 300 files to convert, 40 test configurations, or 12 language versions? Ask for a batch. Each item runs as its own job with a concurrency limit, a failure stays local to its job, and at the end you get one summary instead of 300 messages.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Process every CSV in the folder as a separate job, at most 10 at a time, then give me a table of what failed.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  5. Put a price cap on it
&lt;/h2&gt;

&lt;p&gt;An agent in a loop can keep spending. Give each job or batch a maximum cost, and the platform refuses anything that could go over it &lt;em&gt;before&lt;/em&gt; it starts, not halfway through. The AI can also check the remaining budget itself. One line in the prompt:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Keep the whole batch under [your limit].&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  6. Pick the network you actually need
&lt;/h2&gt;

&lt;p&gt;Not every task needs the internet.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;No network&lt;/strong&gt; for sensitive data or code you don't trust.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;An allowlist&lt;/strong&gt; when it only needs, say, PyPI and one API.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Full internet&lt;/strong&gt; for scraping, downloads and package installs.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;IPv6&lt;/strong&gt;, if you want the sandbox to have its own public address.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It's one sentence to the AI: "create the sandbox without internet access".&lt;/p&gt;

&lt;h2&gt;
  
  
  7. Show it to a human
&lt;/h2&gt;

&lt;p&gt;Anything that listens on a port can get an HTTPS link. The AI builds a small web page, a dashboard or an RSVP form, starts it, and sends you a link you can open on your phone. The link is protected by a token, so only people you share it with get in.&lt;/p&gt;

&lt;p&gt;That's how our birthday demo ended: the AI made the invitations, a shopping list, and a page where parents could reply.&lt;/p&gt;

&lt;h2&gt;
  
  
  8. Use the right template and size
&lt;/h2&gt;

&lt;p&gt;The default image is Debian with Python. There's also a template with a headless browser for screenshots, PDFs and scraping. Heavier work, like running a speech model, needs more memory, so ask for a bigger template or compute class. We generated the voice-over for our videos with an open-source TTS model in a sandbox with 2 GB of RAM.&lt;/p&gt;

&lt;h2&gt;
  
  
  9. Get the files out properly
&lt;/h2&gt;

&lt;p&gt;Results don't have to come back as text in the chat. Jobs save result files, each with a SHA-256, and the AI can download them, zip them, or hand you a link. Logs are shortened to what matters: test results and errors with context, and the end of the log. The raw log is still there if it's really needed.&lt;/p&gt;

&lt;h2&gt;
  
  
  10. Ask what actually ran
&lt;/h2&gt;

&lt;p&gt;Every job leaves a receipt: the command, the template, runtime, exit code, CPU and memory used, and hashes of the output files. It isn't a cryptographic proof, just a plain record. But when an AI says "the tests passed", you can check what it actually ran.&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;The short version:&lt;/strong&gt; let the AI write programs instead of answers, give its machine a name, push long work into jobs, cap the cost, and ask for links and files instead of walls of text.&lt;/p&gt;

&lt;p&gt;WBX Sandbox connects through MCP (&lt;code&gt;https://sandbox.wbx.cz/mcp&lt;/code&gt;), and there's also a REST API, a Python SDK and a LangChain integration. If you've found other good habits, I'd like to hear them in the comments.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>mcp</category>
      <category>productivity</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>We Built an MCP Execution Platform for AI Agents. Here Are 10 Things We Learned.</title>
      <dc:creator>PetrJ</dc:creator>
      <pubDate>Sun, 15 Nov 2026 15:09:48 +0000</pubDate>
      <link>https://dev.to/petrj/we-built-an-mcp-execution-platform-for-ai-agents-here-are-10-things-we-learned-2m77</link>
      <guid>https://dev.to/petrj/we-built-an-mcp-execution-platform-for-ai-agents-here-are-10-things-we-learned-2m77</guid>
      <description>&lt;p&gt;&lt;em&gt;Giving an AI agent a shell is easy. Giving it a computer it can actually work with is a different problem.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;When we started building &lt;a href="https://sandbox.wbx.cz" rel="noopener noreferrer"&gt;WBX Sandbox&lt;/a&gt;, the idea was simple: give AI agents a real Linux environment where they can execute code safely. A shell, a filesystem, network access when needed, and a way to get results back.&lt;/p&gt;

&lt;p&gt;We quickly discovered that running code was the easy part. The difficult questions came later:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;What happens when a task runs for 40 minutes?&lt;/li&gt;
&lt;li&gt;What if the AI disconnects halfway through?&lt;/li&gt;
&lt;li&gt;What happens when a test suite produces 100,000 lines of logs?&lt;/li&gt;
&lt;li&gt;How does an agent continue working on the same project tomorrow?&lt;/li&gt;
&lt;li&gt;How do you know what actually ran?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Most of what we built since then came from getting those wrong first. Today, WBX runs isolated Linux microVMs using Firecracker on our own infrastructure in the EU. Agents can access them through MCP, REST, a Python SDK, or a LangChain integration.&lt;/p&gt;

&lt;p&gt;Here are ten things we learned along the way, including a few mistakes.&lt;/p&gt;




&lt;h2&gt;
  
  
  1. A remote shell is not an execution platform
&lt;/h2&gt;

&lt;p&gt;Our first requirement was straightforward: an AI agent should be able to run real code. Not simulated code execution, not a restricted expression evaluator, but an actual Linux environment.&lt;/p&gt;

&lt;p&gt;Every WBX sandbox runs in an isolated Firecracker microVM with its own kernel, filesystem, and network configuration. The agent can install packages, run tests, automate a browser, or launch a server and expose it on a public HTTPS URL.&lt;/p&gt;

&lt;p&gt;Early on, every task started from an empty machine, and agents spent a lot of time just installing things. So we added ready-to-use templates for Python, Node.js, Go, Rust, browser automation, and other common workloads. We also use warm pools, snapshots, and verified dependency caches to reduce setup overhead.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Lesson:&lt;/strong&gt; Isolation matters, but developer experience starts with how quickly useful work can begin.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Long-running tasks should not depend on an open connection
&lt;/h2&gt;

&lt;p&gt;Imagine asking an agent to run a large test suite that takes 25 minutes. If the work is tied to one MCP tool request, a timeout or disconnected client becomes a serious problem.&lt;/p&gt;

&lt;p&gt;We first tied everything to the tool request and kept hitting timeouts. The fix was to separate interactive execution from background jobs. For quick commands, the agent uses tools such as &lt;code&gt;run_command&lt;/code&gt;. For longer work, it uses &lt;code&gt;run_job&lt;/code&gt;.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;AI Agent
   |
   | run_job(...)
   v
WBX Sandbox
   |
   | Returns job_id immediately
   v
Agent continues working

Meanwhile:
Job runs independently
   |
   v
Logs + artifacts + execution receipt
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The job keeps running after the client disconnects, and the agent can return later and retrieve the results.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Lesson:&lt;/strong&gt; The lifetime of a computation should not depend on the lifetime of a chat connection.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Don't make an AI agent poll every few seconds
&lt;/h2&gt;

&lt;p&gt;One of the less obvious problems we encountered was polling. An agent starts a background job and then repeatedly asks:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Is it finished?
Is it finished?
Is it finished?
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Every call consumes tool overhead, context, and time. Instead, we implemented &lt;code&gt;wait_jobs&lt;/code&gt;: the server waits for a job or batch to finish, or until a specified timeout, and the agent receives a result when something meaningful happens.&lt;/p&gt;

&lt;p&gt;We also added &lt;code&gt;get_job_summary&lt;/code&gt;, which returns a compact overview instead of forcing the model to read every detail, and &lt;code&gt;list_jobs&lt;/code&gt;, so an agent can find earlier jobs and batches without having to remember their IDs.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Lesson:&lt;/strong&gt; Move waiting and state management into the platform. Don't make the language model do repetitive coordination work.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Raw logs are terrible for AI context windows
&lt;/h2&gt;

&lt;p&gt;Developers are used to scrolling through thousands of log lines. AI agents don't have that luxury. A large build or failing test suite can generate megabytes of output, and if you send everything back to the model, you're spending context on information that may not matter.&lt;/p&gt;

&lt;p&gt;So we built log summaries that recognize common test frameworks, extract error messages with their surrounding context, and preserve the end of the log. The original logs remain available when deeper inspection is necessary.&lt;/p&gt;

&lt;p&gt;A similar principle applies to datasets. In one experiment, we processed a CSV file containing 100,000 orders. Measured with common tokenizers:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Full CSV: approximately 790,000 tokens.&lt;/li&gt;
&lt;li&gt;JSON summary: 55 tokens.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It's one experiment, not a general benchmark, but it shows why keeping data processing outside the context window matters.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Lesson:&lt;/strong&gt; Return the information the agent needs, not every byte the computer produced.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Not every task needs a virtual machine
&lt;/h2&gt;

&lt;p&gt;A microVM is the right tool when an agent needs a full Linux system. But many tasks are small, self-contained computations: parse a file, transform data, run a function.&lt;/p&gt;

&lt;p&gt;For those we added a WebAssembly (WASI) runtime. Modules run without starting a VM, as unprivileged processes with no network, and see only &lt;code&gt;/input&lt;/code&gt;, &lt;code&gt;/output&lt;/code&gt;, and &lt;code&gt;/tmp&lt;/code&gt;. They start almost instantly and have strict memory and time limits.&lt;/p&gt;

&lt;p&gt;The agent uses the same job interface for both, so it doesn't have to learn a second system.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Lesson:&lt;/strong&gt; Match the isolation to the task. A lighter sandbox for small work keeps the heavy one available for real environments.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. Parallelism needs orchestration, not just more machines
&lt;/h2&gt;

&lt;p&gt;AI workflows often involve independent tasks: testing different configurations, processing multiple datasets, running build matrices, evaluating several implementations.&lt;/p&gt;

&lt;p&gt;We added &lt;code&gt;run_batch&lt;/code&gt; to handle up to 1,000 jobs with configurable concurrency. Jobs can depend on one another and pass result files to downstream tasks.&lt;/p&gt;

&lt;p&gt;As a sanity check we started 65 sandboxes across nine templates at the same time and let each run a five-minute task. All of them finished. It was a test of concurrency and lifecycle handling with mostly idle processes, not a performance benchmark.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Lesson:&lt;/strong&gt; Good orchestration lets agents work in parallel without making the model manually coordinate every machine.&lt;/p&gt;

&lt;h2&gt;
  
  
  7. Never silently downgrade what the user requested
&lt;/h2&gt;

&lt;p&gt;Suppose an agent requests an IPv6-only environment, or a higher-performance compute class. If the platform cannot provide it, quietly substituting something else is dangerous. The task might still run, but its results may no longer mean what the developer expects.&lt;/p&gt;

&lt;p&gt;We decided that requested capabilities must be explicit. If the right environment is unavailable, the request waits or fails clearly.&lt;/p&gt;

&lt;p&gt;WBX supports IPv4, dual-stack, and IPv6-only networking, and IPv6 sandboxes get their own public address for outgoing traffic. Incoming connections from the internet are closed for now; web apps get an HTTPS URL instead. In a live connectivity test, we verified public IPv6 allocation, IPv6 routing, successful ICMP ping and HTTPS requests. We also confirmed that ordinary IPv4 outbound connections were blocked in the IPv6-only mode.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Lesson:&lt;/strong&gt; A clear failure is better than a successful execution in the wrong environment.&lt;/p&gt;

&lt;h2&gt;
  
  
  8. Agents need environments that survive conversations
&lt;/h2&gt;

&lt;p&gt;A fresh sandbox is useful for a one-off task. It is much less useful when an agent is building a project over several days. Imagine spending hours installing dependencies, creating files, and configuring a development environment, and then the chat ends. Starting from zero next time is frustrating.&lt;/p&gt;

&lt;p&gt;We added sandbox sleeping to preserve the disk while the VM is not running, and named sandboxes allow a later conversation to locate the same environment. We also built archive storage, so sleeping disks are moved to dedicated storage nodes and restored later on any compute node.&lt;/p&gt;

&lt;p&gt;This introduced difficult engineering questions around crash recovery, metadata consistency, replication, and disk failure. Preserving files isn't just about successfully writing them once. It's about being able to recover them when something goes wrong.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Lesson:&lt;/strong&gt; Persistence changes the reliability expectations of an execution platform. Treat user data as something you must protect, not disposable temporary output.&lt;/p&gt;

&lt;h2&gt;
  
  
  9. Execution results should be verifiable
&lt;/h2&gt;

&lt;p&gt;An AI assistant might say: &lt;em&gt;"I ran the tests. Everything passed."&lt;/em&gt; But how can the user verify that?&lt;/p&gt;

&lt;p&gt;We added execution receipts. A completed job records information such as its runtime, exit code, resource usage, network policy, and output file hashes. It's an audit record, not a cryptographic attestation, but it provides a concrete record of execution independent of the assistant's summary.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Lesson:&lt;/strong&gt; Agents should be able to show evidence of completed work, not just describe what they believe happened.&lt;/p&gt;

&lt;h2&gt;
  
  
  10. MCP tools are APIs whose primary user may be a model
&lt;/h2&gt;

&lt;p&gt;This took us the longest to understand. When you're building a normal developer API, you write documentation for a person. When you're building an MCP server, the model itself often decides which tool to call. That makes tool descriptions part of the actual user experience.&lt;/p&gt;

&lt;p&gt;We learned to explain:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;When to use &lt;code&gt;run_command&lt;/code&gt; versus &lt;code&gt;run_job&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;When to request a summary instead of raw logs.&lt;/li&gt;
&lt;li&gt;When a call is destructive.&lt;/li&gt;
&lt;li&gt;What happens if the operation is unavailable.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;We also added MCP tool annotations such as &lt;code&gt;readOnlyHint&lt;/code&gt;, &lt;code&gt;destructiveHint&lt;/code&gt;, and &lt;code&gt;openWorldHint&lt;/code&gt;. Better descriptions help models choose the right operation without repeatedly exploring the API.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Lesson:&lt;/strong&gt; When AI models use your API, good tool descriptions become operational infrastructure.&lt;/p&gt;




&lt;h2&gt;
  
  
  What we'd do differently
&lt;/h2&gt;

&lt;p&gt;If we were starting again, we'd prioritize these things much earlier:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Asynchronous execution.&lt;/strong&gt; Don't design long-running work around a blocking HTTP request.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Compact results.&lt;/strong&gt; Return summaries by default while keeping the original logs available.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Crash recovery.&lt;/strong&gt; Design persistence and background job recovery as first-class problems.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Tool descriptions.&lt;/strong&gt; Test MCP descriptions as carefully as the underlying API.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;We also learned that the difficult bugs are rarely in the happy path. They're in the moments when a node disappears, a response gets lost, a disk runs out of space, or a process crashes between two writes. Those are the moments that determine whether an execution platform can be trusted.&lt;/p&gt;

&lt;h2&gt;
  
  
  Final thoughts
&lt;/h2&gt;

&lt;p&gt;AI agents are becoming capable software operators, and the more capable they become, the more they need dependable infrastructure around them. Not just a shell, but isolation, background execution, persistent files, useful logs, explicit capabilities, and evidence of completed work.&lt;/p&gt;

&lt;p&gt;That's what we're trying to get right with &lt;strong&gt;WBX Sandbox&lt;/strong&gt;, and we're still learning.&lt;/p&gt;

&lt;p&gt;If you're building infrastructure for AI agents, I'd really like to hear how you handle long-running tasks and persistent execution environments.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Project:&lt;/strong&gt; &lt;a href="https://sandbox.wbx.cz" rel="noopener noreferrer"&gt;https://sandbox.wbx.cz&lt;/a&gt;&lt;br&gt;
&lt;strong&gt;MCP endpoint:&lt;/strong&gt; &lt;a href="https://sandbox.wbx.cz/mcp" rel="noopener noreferrer"&gt;https://sandbox.wbx.cz/mcp&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Disclosure: I'm building WBX Sandbox. This post shares engineering lessons from developing the platform, including features and failure scenarios we've been working through.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>mcp</category>
      <category>devops</category>
      <category>python</category>
    </item>
    <item>
      <title>Anyone need a Linux sandbox with its own public IPv6?</title>
      <dc:creator>PetrJ</dc:creator>
      <pubDate>Fri, 13 Nov 2026 20:33:38 +0000</pubDate>
      <link>https://dev.to/petrj/anyone-need-a-linux-sandbox-with-its-own-public-ipv6-13a2</link>
      <guid>https://dev.to/petrj/anyone-need-a-linux-sandbox-with-its-own-public-ipv6-13a2</guid>
      <description>&lt;p&gt;I run a small ISP and have been building isolated Linux sandboxes (Firecracker microVMs) mainly for AI agents. Each one can get its own public IPv6 address, or run IPv6-only, which turned out handy for testing apps and services over IPv6 when your own network doesn't have it. If anyone needs something like that, feel free to try it at &lt;a href="https://sandbox.wbx.cz" rel="noopener noreferrer"&gt;sandbox.wbx.cz&lt;/a&gt;, and I'm happy to hear what's missing or broken.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>mcp</category>
      <category>ipv6</category>
      <category>linux</category>
    </item>
  </channel>
</rss>
