In the past few weeks, experimenting with a custom ai agent running entirely in the browser with sandboxed tools exec.
The core is built in Rust, a native CLI is built on top for local experimentation but the most interesting part is the web version: the core is built to WASM and get augmented with many tools in the JS land:
- OPFS access (read, list, edit files)
- Sandbox Python exec (Pyodide in WASM)
- Sandbox DuckDB exec (DuckDB-WASM)
- Draw charts
- Show images
- etc
OpenAI Completions compatible API providers are supported.
But if you want a full local and sandboxed execution of the whole agent, the web version bundles also wllama to serve local GGUF models (with WebGPU optional support).
Very cool work. I've been seeking solutions for running an agent in the browser for building artifacts on my project, which is a web artifact tool library called Exhibit. I'm starring this for later.
Oh nice! I’ll take a look at it, I was thinking of implementing such mecanism in Cooper (I don’t know where it’s going, exploring the possibilities and practical usefulness)
The core is built in Rust, a native CLI is built on top for local experimentation but the most interesting part is the web version: the core is built to WASM and get augmented with many tools in the JS land: - OPFS access (read, list, edit files) - Sandbox Python exec (Pyodide in WASM) - Sandbox DuckDB exec (DuckDB-WASM) - Draw charts - Show images - etc OpenAI Completions compatible API providers are supported.
But if you want a full local and sandboxed execution of the whole agent, the web version bundles also wllama to serve local GGUF models (with WebGPU optional support).
Github repo: https://github.com/rclement/cooper