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

Off Grid: Utilizing Phone Hardware for Offline AI Applications
Off Grid is an open-source app that uses your phone's hardware for offline AI tasks like text generation and voice transcription.

Modulus: Cross-repository knowledge orchestration for AI coding agents
Modulus is a desktop app that runs multiple AI coding agents with shared project memory across repositories. It solves cross-repo context problems by letting agents understand dependencies between different codebases without manual explanation.

Open Source Skill for Parallel AI Coding Agents with Human Gate
A markdown skill definition for running parallel Claude Code agents in separate git worktrees, with integration branch validation, smoke tests, and a hard human gate before production merge.

Pixel Agents: 24 Specialized Claude Agents for Code, Site, and Resume Reviews
Pixel Agents is a collection of 24 task-specific AI agents built on Claude Sonnet 4.6 API, each with tuned personalities and structured JSON output. The system includes code review, site analysis, resume critique, and startup evaluation agents that provide direct feedback.