
OpenCode Browse ports to Rust for $60
OpenCode creator Dax Raad used AI coding agents to rewrite OpenCode Browse—including custom Playwright and Patchright browser automation internals—entirely into Rust for just $60 in API costs. The rewrite drops the binary size from over 50 MB to 4.3 MB and slashes per-session connector memory from 190 MB to under 6 MB.
Rewriting complex tooling in Rust used to be a months-long luxury; AI coding agents just turned it into a $60 afternoon chore. This migration demonstrates that agentic code generation has graduated from simple utility scripts to heavy-duty, production-grade systems engineering.
- –Binary footprint plummets from 53–64 MB down to 4.3 MB (1.9 MB gzipped), dramatically cutting download size and launch friction.
- –Idle relay memory drops from 353 MB to 6 MB, eliminating chronic RAM leaks during long-running background tasks.
- –Per-session connector memory shrinks from ~190 MB to 5.6 MB, removing the memory bottleneck when running concurrent browser agent sessions.
- –In-house reimplementation of essential Patchright anti-bot automation primitives in Rust avoids heavy Node runtime dependencies without sacrificing CDP stealth.
DISCOVERED
1h ago
2026-11-14
PUBLISHED
1h ago
2026-11-14
RELEVANCE
AUTHOR
thdxr
