OpenClaw Setup on Ubuntu UTM VM with LLM API and Ollama Access

OpenClaw Sandboxed Setup with Multi-LLM Access
A developer has documented a working configuration for running OpenClaw in a standalone, sandboxed environment. The setup involves running OpenClaw inside an Ubuntu virtual machine using UTM on an M3 Mac, while maintaining connectivity to LLM services both locally and via external APIs.
Key Configuration Details
The solution provides OpenClaw with access only to materials available inside the Ubuntu VM, creating a controlled environment. Meanwhile, Ollama runs natively on macOS and remains accessible to OpenClaw within the Ubuntu VM on the same machine.
OpenClaw in this configuration can utilize multiple LLM APIs including:
- Gemini
- Claude
- DeepSeek
Available Resources
All sample configuration files are available at: https://github.com/parimalbajpai/openclaw/tree/main
OpenClaw-specific tips and solutions are documented in notes.txt, which includes:
- Workarounds for Ubuntu/ARM not having Chrome
- Google Workspace access via gog and gogcli
Additional Ollama configuration tips are available in separate notes.txt.
This type of sandboxed setup is particularly useful for developers who want to test AI coding agents in isolated environments while maintaining access to both local and cloud-based LLM services, allowing for controlled experimentation with different model configurations.
📖 Read the full source: r/openclaw
👀 See Also

Developer Builds Native tmux Port for Windows Using Claude Code Without Knowing C
A developer created tmux-win, a native Windows multiplexer using Claude Code to handle Win32 API and conpty implementation despite not knowing C. The tool features vertical/horizontal splits, detachable sessions, and native performance without VM overhead.

MLJAR Studio: Local AI Data Analyst That Generates Reproducible Notebooks
MLJAR Studio is a desktop app that turns natural language questions into Python notebooks executed locally, with AutoML for tabular data and support for local LLMs via Ollama.

Ops Dashboard OpenClaw: Local-First Dashboard for Solo Devs with Multiple Repos
A solo developer built ops-dashboard, a local-first app that indexes Obsidian vaults, repos, and logs into a single queryable dashboard. BYOK, MIT-licensed, no cloud required.

Replacing complex retrieval pipelines with simple git shell commands for LLM agents
A developer replaced their entire AI agent retrieval pipeline (sentence-transformers, rank-bm25, two-pass LLM pipeline) with a single tool that lets the agent execute read-only shell commands against a git repository, reducing Docker image size by ~3GB and eliminating timeout issues.