If you’re building AI agents that generate Python code, you’ve probably hit this problem: where does the code actually run?

The usual options:

  • E2B — works great, but costs money per execution
  • Modal — same deal, server-side, pay per use
  • Roll your own — spin up containers, manage infrastructure, cry

What if your agent could just run Python in the browser? No server. No bills. No infra.

That’s why I built sandpy.

What is sandpy?

A browser-native Python sandbox built on Pyodide (Python compiled to WebAssembly). But unlike raw Pyodide, sandpy is designed specifically for AI agent integration:

  • Timeouts — prevent infinite loops from crashing the tab
  • Streaming output — see results as they print
  • Snapshots — s…

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help