惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

B
Blog
D
Docker
J
Java Code Geeks
腾讯CDC
Blog — PlanetScale
Blog — PlanetScale
G
Google Developers Blog
M
MIT News - Artificial intelligence
L
LangChain Blog
T
The Blog of Author Tim Ferriss
P
Proofpoint News Feed
MyScale Blog
MyScale Blog
博客园 - Franky
GbyAI
GbyAI
Hugging Face - Blog
Hugging Face - Blog
aimingoo的专栏
aimingoo的专栏
Last Week in AI
Last Week in AI
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园 - 聂微东
N
Netflix TechBlog - Medium
B
Blog RSS Feed
Y
Y Combinator Blog
阮一峰的网络日志
阮一峰的网络日志
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Google DeepMind News
Google DeepMind News

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
⭐ I gave Claude Code a real Ubuntu computer (and open-sou...
nghiahsgs · 2026-05-16 · via DEV Community

nghiahsgs

TL;DR — I built taw-computer, an open-source MCP server that gives any AI
agent (Claude Code, Cursor, etc.) a real Ubuntu computer to drive. 40 tools, two sandbox backends, browser automation via Playwright
with Set-of-Mark prompting. Hosted version at shipkit.cc if you want to try without self-hosting.

The problem

When you use Claude Code or Cursor today, the AI can:

  • Read and edit files in your project
  • Run commands in your terminal
  • That's it.

It cannot:

  • Open a browser and verify the UI it just shipped
  • Test against a real database it doesn't have installed locally
  • Deploy a preview link to send a client
  • Install random apt packages without contaminating your machine
  • Use a GUI app like a designer would use Figma

Half of "agentic coding" workflows hit this wall. The agent writes the code, you copy-paste it into a terminal, run it, screenshot
the bug, paste back. The agent is reading code through a straw.

What I built

A sandboxed Ubuntu desktop, exposed as MCP tools.

┌─ Your editor (Claude Code / Cursor) ─┐
│ │
│ "Open Chrome, search 'X', take│
│a screenshot of the first result"│
│ │
└──────────────┬────────────────────────┘
 │ MCP (HTTP + Bearer)
 ▼
┌─ taw-computer MCP server ─────────────┐
│40 tool handlers │
└──────────────┬────────────────────────┘
 │ Docker API / Firecracker
 ▼
┌─ Ubuntu 22.04 sandbox ────────────────┐
│bash · Node 20 · Python 3│
│Chromium + Playwright + CDP│
│xfce4 desktop + VNC live view│
│Postgres / MySQL / Redis clients │
└───────────────────────────────────────┘

Enter fullscreen mode Exit fullscreen mode

Setup is one line:

claude mcp add --transport http shipkit https://shipkit.cc/mcp \
--header "Authorization: Bearer YOUR_KEY"

Enter fullscreen mode Exit fullscreen mode

Now your agent can do this in one turn:

> open chrome on the shipkit workspace, search "claude opus 4.7",
take a screenshot of the top result, then send it to my email.

⏺ vm_create(label: "research")
⏺ browser_open()
⏺ browser_navigate("https://google.com")
⏺ browser_snapshot()← Set-of-Mark applied
⏺ browser_click_ref("[2]")← search box, ref 2
⏺ browser_type_ref("[2]", "claude opus 4.7")
⏺ browser_key("Enter")
⏺ browser_snapshot()
⏺ desktop_screenshot()
⏺ send_email(to: "me@x.com", attachments: [...])

Enter fullscreen mode Exit fullscreen mode

You watch it happen live by opening the VNC URL the agent returns.

The interesting bits

1. Set-of-Mark prompting beats coordinate-guessing

Most browser automation libraries try to teach the LLM to output pixel coordinates. That fails because (a) LLMs are bad at spatial
reasoning and (b) page layouts shift.

Set-of-Mark instead draws numbered badges on every clickable element before sending the screenshot to the model. The model just
says "click [2]" — no coordinates, no guessing.

// browser_snapshot returns:
// - PNG with [0] [1] [2] [3] overlays on buttons, inputs, links
// - JSON mapping ref → element description
//
// Then click_ref looks up ref → DOM element → CDP click event

Enter fullscreen mode Exit fullscreen mode

It works dramatically better than alternatives I've used.

2. Two backends, one interface

The repo abstracts sandbox via SandboxManager so two backends plug in:

SandboxManager (interface)
├── DockerSandbox(works on any Linux VPS)
└── FirecrackerSandbox (microVM, needs /dev/kvm)

Enter fullscreen mode Exit fullscreen mode

Default auto-detects KVM and falls back to Docker. For dev VPS without nested virt, Docker is fine. For multi-tenant production,
you'd want bare-metal + Firecracker for hardware isolation.

3. Per-container bridge networks (real isolation, not "share one big bridge")

A subtle thing that surprised even my security-conscious users: each VM gets its own Docker user-defined network (taw-net-<vmId>),
not the shared default bridge.

async create(opts) {
const name = `shipkit-${genId()}`;
const netName = `taw-net-${name}`;
await execPromise(`docker network create ${netName}`);
// → IP space, ARP table, broadcast domain all isolated per VM
}

Enter fullscreen mode Exit fullscreen mode

VM-to-VM scan inside the same host is blocked by Docker's network namespace, not just firewall rules. Plus egress filter for spam
ports and IMDS metadata IPs.

4. Live preview via subdomain

Agent runs npm run dev on port 5173. Calls share_port(5173). Gets back https://<random16hex>.shipkit.cc. You send the link to
your client. Done.

The proxy is a Node HTTP layer that does vmId → containerIP lookup per request, no nginx config edits.

What's NOT there yet (honest section)

  • No GPU passthrough — can't run CUDA inference inside the VM
  • Snapshots are full image commits — works but inefficient at scale
  • Firefox/Safari — only Chromium browser tools
  • No multi-region — single-VPS deploy for now
  • Compliance certs — none. Use for dev/PoC, don't put production secrets in there

The README is straightforward about Docker-vs-Firecracker trade-offs. If you need real hardware isolation for multi-tenant workloads,
Firecracker on bare-metal is the answer (work in progress).

Why open source the engine?

I tried [browserbase], [e2b], [modal] — all paid SaaS, mostly closed-source, vendor-locked. For something as fundamental as "give my
agent a computer" I wanted the engine open so:

  • People can self-host without paying me
  • Security can be audited externally
  • Forks and contributions are possible

The hosted version (shipkit.cc) adds the SaaS layer (multi-user auth, billing, dashboard, port sharing infra)
on top. The engine stays free.

Try it

# Self-host (Docker required)
git clone https://github.com/the-agents-work/taw-computer
cd taw-computer
npm install && npm run image:build
npm run dev # stdio mode for Claude Desktop

# Or use the hosted version
claude mcp add --transport http shipkit https://shipkit.cc/mcp \
--header "Authorization: Bearer $(open https://shipkit.cc and register)"

Enter fullscreen mode Exit fullscreen mode

Repo: https://github.com/the-agents-work/taw-computer — star + issue if useful, especially if you find Firecracker production
blockers, I'm actively working on that path.

Roast welcome.