I want everything local – Building my offline AI workspace
TL;DR Highlight
Ollama, Apple container and MCP give a fully local AI workspace with sandboxed code execution
Who Should Read
Developers who don't want sensitive data going to cloud APIs and want local LLMs with a sandboxed code execution environment
Core Mechanics
- Started from one requirement: everything local
- They aimed to replace chat LLM, code execution and internet access locally.
- The motivation was tasks like photo and video editing without handing data to OpenAI, Google or Anthropic.
- Stack is Ollama, Apple container and Playwright
- Ollama runs the LLM, assistant-ui is the frontend, Apple's container is the sandbox, and coderunner orchestrates.
- Playwright runs in the same container for browser automation.
- Everything ran on Apple Silicon.
- Code execution is exposed as an MCP server
- A Jupyter server runs in the VM and is exposed as an MCP (Model Context Protocol) tool at http://coderunner.local:8222/mcp.
- Unlike a custom API, Claude Desktop and Gemini CLI can use it with just a config entry.
- Apple container gives one VM per container
- The authors found it fits running AI-generated code better than Docker.
- They map ~/.coderunner/assets on the host to /app/uploads in the container, so only files are shared and code never touches the host.
- They gave up on a Mac app
- a0.dev was iOS-focused and painful on macOS, and the LLMs hallucinated steps and missed platform quirks.
- Wrapping NextJS in Electron had no clean path, so they stayed with the local web assistant-ui.
- Tool-calling support info is inconsistent
- Ollama's site lists deepseek-r1:8b under tool calling, but calling it returns a does not support tools error.
- Official model pages and Ollama's implementation timing don't match.
- Known limitations
- It only works on Apple Silicon for now.
- It needs a better UI for tools and output streaming, and the headless browser gets flagged as a bot by many sites.
- Apple container builds often fail with Trap errors or hang.
Community Reactions
- Hardware is the bottleneck, some said
- Commenters said fast RAM for 80b+ models isn't common in consumer hardware.
- Another said decent local LLM hardware starts around $2000.
- One reported Exo home clusters give single-digit tokens per second on large models, which isn't practical.
- Local is just a hobby, a counterargument
- Commenters said local models are much weaker and hardware depreciates fast, so the investment isn't justified.
- Another argued avoiding the cloud is a lot of effort for little gain.
- Privacy gaps and install friction
- One commenter found the Ollama macOS app connects to a Google domain right at launch.
- Another wanted docker compose up -d style install and avoided install.sh scripts.
- Someone reported the assistant-ui link in the article is a 404.
- Alternatives and complements suggested
- Several commenters recommended Open WebUI as a chat interface.
- One said M1 32GB laptops run decent models with the Ollama app.
- LEANN was suggested for personal-data RAG, claiming about 97% less storage.
How to Apply
- Check a model's tools support in Ollama first
- Before choosing an agent model, send one request with tools to Ollama and see whether it returns a does not support tools error.
- Filter candidates by actual call results, not site category labels.
- Split code execution into one MCP server
- If you run LLM-generated code on the host, move it into an isolated VM or container and expose it via an MCP endpoint.
- Add the URL under mcpServers in Claude Desktop or Gemini CLI config and try it.
- Mount just one shared volume with the host
- Map a single folder for files made in the sandbox.
- Like the article, map ~/.coderunner/assets to /app/uploads and expose nothing else.
- Keep model choice open to local and cloud
- If small local models fall short, keep cloud models in the UI dropdown too.
- Start by routing only sensitive tasks to local models.
Try It
// Add this JSON to your Claude Desktop or Gemini CLI MCP config (with coderunner running locally)
{
"mcpServers": {
"coderunner": {
"httpUrl": "http://coderunner.local:8222/mcp"
}
}
}Terminology
Related Papers
Frostbite: A new CPU architecture discovered, designed and verified by AI
AI agents designed a CPU from scratch, claiming 4.59x perf/W over a traditional core
Restricting AI agents in mobile operating systems platforms from capturing data
Signal now blocks OS-level AI agents from reading its screen on iOS 27 and Android
Actions Speak Louder than Words: Stateful Privacy Sniffing of LLM Agents via Behavioral Covert Channels in Web Interactions
Agents' link choices alone let attackers rebuild user queries at F1 0.89; SOR cuts it to 0.39.
Tracking and Limiting Unsupported Claim Propagation in Multi-Agent LLM Systems: A Provenance-Aware Framework
Passing claims with source, evidence and history kept equivalence at 5 agent stages at 96% versus 31%.
LLM assisted reverse engineering
Pointing an agent at binaries with skills and MD notes made years-long hacks feasible
Metrics-in-the-Loop: Complexity Feedback Reshapes Agent-Written Code
Injecting per-turn complexity reports into coding agents cut code erosion without changing correctness
Why is Gemini 4 Carbon taking so long?
Carbon took nearly an hour on bug fixes that Astra and Opus finished in minutes, mostly from extra unrequested work.
Weight-Space Programming builds neural networks like a 1990s researcher
LLM hand-wrote MNIST weights to 91.3%, using 1990s-style techniques
Related Resources
- https://instavm.io/blog/building-my-offline-ai-workspace
- https://github.com/assistant-ui/assistant-ui
- https://github.com/instavm/coderunner
- https://github.com/apple/container
- https://github.com/instavm/coderunner-ui
- https://github.com/yichuan-w/LEANN
- https://arxiv.org/abs/2405.08051
- https://github.com/exo-explore/exo
- https://docs.openwebui.com