Porting the Moebius 0.2B image inpainting model to run in the browser with Claude Code
AI-generated summary of reporting by Simon Willison’s Weblog. Read the original for the full story.
Why it matters
Client-side browser AI now handles 0.2B-parameter inpainting models, so developers can ship GPU-accelerated image editing without servers or PyTorch installs.
Simon Willison used the Claude Code coding assistant to port Moebius, a small 0.2-billion-parameter AI model that fills in removed areas of photos, so it runs inside a web browser instead of on an NVIDIA graphics card. The result is a live demo at simonw.github.io/moebius-web where anyone can mark parts of an image for removal and have the model imagine the missing region. It works in Chrome, Firefox and Safari, though it downloads about 1.3GB of model weights the first time.
Willison delegated the entire port of the Moebius inpainting model, PyTorch-to-ONNX conversion, a 1.24GB weight upload to Hugging Face, and a GitHub Pages web UI, to Claude Opus 4.8 without reading any code, treating it as a side project while working with Codex Desktop. The takeaway for engineering leaders: a single developer with an agent can deliver a working, publicly deployed model demo in one day. The 1.3GB client-side download remains a usability constraint for production use.
The Moebius 0.2B inpainting model, originally PyTorch/CUDA-only, was exported via torch.onnx.export at opset 18 and run with ONNX Runtime Web on the WebGPU backend in Chrome, Firefox and Safari. The 1.24GB ONNX weights are hosted at huggingface.co/simonw/Moebius-ONNX; the UI at simonw.github.io/moebius-web caches them client-side using the CacheStorage API (caches.open('transformers-cache')), a pattern borrowed from the Xenova whisper-web demo. No inference-latency figures are given.
Read the original
This summary exists to save you time, not to replace the source.
Key terms
Moebius Claude Code Claude Opus 4.8 ONNX Runtime Web WebGPU Hugging Face GitHub Pages
Was this summary useful?
One click, anonymous. It tells us which summaries to re-run.
Related reading
A self-hosted file manager fork with OIDC, LDAP, and real-time search
FileBrowser Quantum lets teams manage multiple storage sources with enterprise authentication and real-time search without complex setup, saving admin time and reducing security risk.
An open-source screen recorder that lets AI agents watch videos and see your screen
Enables AI agents to view and analyze screen content, cutting time spent crafting bug reports and improving debugging accuracy.
A Go implementation of MCP for connecting LLM apps to tools and data
Go developers can expose LLM tools without writing MCP plumbing, saving time on integration.
An open-source Canva alternative you can self-host, with video export
Self-hosted design tools let teams avoid subscription fees and keep data on their own servers, while adding video export unlocks new content formats for social media creators.
Samsung is testing a feature that changes the angle of photos you’ve already taken
Samsung’s new Recompose lets users change photo angles after shooting, potentially reducing the need for multiple shots and improving post-capture editing workflows for photographers and casual users alike.