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

Open-Source JARVIS Desktop Assistant Built with Claude Code in 2 Days
A developer built a macOS desktop AI assistant called JARVIS in 1-2 days using Claude Code as the primary development tool. The application features a holographic UI, 18 native tools for system control, voice interface, and integrations with Gmail, Google Calendar, Notion, GitHub, and Obsidian.

120 Prompt Patterns Tested: 8 That Actually Work for Claude Code
A 3-month empirical test of 120 prompt patterns for Claude Code yields 8 actionable commands and 5 validation prompts. Key patterns: L99 (cuts hedging), /ghost (removes AI voice), OODA (structured reasoning), ULTRATHINK (deep reasoning), HARDMODE (constraint debugging).

Simplifying OpenClaw Hosting: BestClaw Keeps SSH and User-Friendly Functionality
BestClaw emerges as a straightforward solution for OpenClaw hosting, balancing ease of use with crucial SSH access, as discussed on r/openclaw.

Claude Compact Guard Plugin Uses New PostCompact Hook to Preserve Context
A developer has released claude-compact-guard, a plugin that automatically saves critical context before Claude's /compact command destroys it, then reinjects everything after. It uses Anthropic's new PostCompact hook released 4 days ago.