Demo of launching a Docker Cloud Sandbox running code-server and the Claude Code extension in the browser

Running VS Code and Claude Code in a Docker Cloud Sandbox

I have been testing out Docker’s cloud sandboxes (sbx --cloud) recently and wanted a quick way to spin up a disposable, browser-based IDE with Claude Code ready to go. I put together krisfoster/sbx-cloud-code-server-demo, a small wrapper around sbx and the code-server mixin kit from docker/sbx-kits-contrib. Run one script, wait for the health check to pass, and open the printed URL to get VS Code and the Claude Code extension running inside a remote microVM. How the Launch Script Works Local sandboxes mount your current directory from the host machine. Cloud sandboxes do not have a host filesystem to mount, and configuring ports, network egress, and workspace directories by hand takes several commands. The launch.sh script ties those steps together: ./launch.sh # medium sandbox (4 vCPU / 8 GiB), 4h TTL ./launch.sh -n my-demo -t 2h -s large # custom name, TTL, and size ./launch.sh -r https://github.com/owner/repo.git # clone a repo into the workspace ./launch.sh -y # skip permission prompts in the Claude VS Code panel ./teardown.sh # destroy the sandbox when finished Under the hood, launch.sh walks through a few steps: ...

October 17, 2026 · 5 min · 944 words · me@krismade.me
ccusage-sbx local dashboard showing token spend, daily cost chart, model breakdown, and synced Docker Sandbox machines

Tracking LLM Token Usage Across Docker Sandboxes

I run coding agents inside disposable Docker Sandboxes (sbx) to keep my system safely isolated from agents that I run. Getting a view of token usage across all agents I run, in all sandboxes, is not easy. Every agent writes its own session logs inside the sandbox. When you spin up half a dozen sandboxes across different projects and destroy them after work finishes, token counts and spend metrics will therefore disappear along with the sandboxes. To solve this, I put together krisfoster/ccusage-sbx, an experimental Docker Sandbox kit and host hub that syncs token consumption from ephemeral sandboxes into a centralised dashboard on your local machine. It provides a dashboard that gives a consolidated view of token consumption across every sandbox. You can stack the daily spend chart by sandbox name, agent type, or model, filter by custom date windows, and inspect per-machine and per-model costs without leaving your browser. It’s very much a PoC, so expect sharp edges. ...

October 17, 2026 · 7 min · 1317 words · me@krismade.me
ccusage HTML dashboard showing spend metrics, token counts, daily spend bar chart, and per-agent usage breakdowns

Hacking on ccusage with Devin: Cloud Sync and HTML Dashboards

This week I went to the Devin Mixin / Hackathon event hosted at the Cloudflare offices in London. We were gifted a chunk of credits to use with Devin during the hackathon, and I decided to fork and add some features I wanted to krisfoster/ccusage. ccusage is an open-source CLI for tracking token consumption and cost across coding assistants and I find it super useful. I wanted to add two features that I felt were missing. First, aggregating token logs across separate development machines (into Google Cloud Storage - GCS), and secondly generating a nice HTML dashboard to show my aggregate profligate spend. Oh, and I want the dashboard to show me how much I could have saved by switching LLM provider. ...

September 18, 2026 · 3 min · 465 words · me@krismade.me