# Claude Code helps contain an OpenClaw agent in home lab test

ZDNET’s David Gewirtz used Claude Code to configure, isolate and monitor a local OpenClaw agent running continuously on a dedicated Mac Studio. During a controlled security test, the agent tried 11 ways to gain administrative access, and every attempt failed. The setup separated the agent, named Colossus, from…

Published: 2026-11-11T14:02:23.000Z
Source: Newsmill
Canonical: https://getacc.dev/news/4c23a78c-370c-45e5-b070-d87e945b9a5e/

ZDNET’s David Gewirtz used Claude Code to configure, isolate and monitor a local OpenClaw agent running continuously on a dedicated Mac Studio. During a controlled security test, the agent tried 11 ways to gain administrative access, and every attempt failed.
The setup separated the agent, named Colossus, from Gewirtz’s personal accounts and home servers. Claude Code ran on his personal 2025 M4 Mac Studio and connected to Colossus’ 2020 64GB M1 Mac Studio through an encrypted SSH tunnel.
Separate machines and accounts limit access
Colossus operated through its own account, called Forbin, without access to the separate administrator account on the same machine. Claude Code held administrative control, but Gewirtz ran it only when he needed to configure or inspect the OpenClaw server.
Claude’s instructions and memory initially lived on the Colossus machine, where the agent could reach them. After Claude identified that risk, Gewirtz moved the Claude Code project to his personal Mac and used the SSH tunnel for remote administration.
The design kept the administrator’s files outside Colossus’ reach. When Gewirtz ended a Claude Code session, the tunnel closed and Claude shut down. Colossus continued operating.
Claude finds unread safety instructions
During a security review, Claude discovered that OpenClaw had not read the full configuration file because of a default file-size limit. Colossus’ logs showed that it had cut the file short, missing two safety instructions.
“Ask David before taking any action that leaves the machine” and “Never claim a tool call succeeded when it failed.”
The first instruction required approval before Colossus took action on the network, while the second addressed the agent’s tendency to report success after a failed operation.
Gewirtz changed the default read limit and checked the configuration again. Colossus could read the files but could not edit, rename or replace them.
Agent makes 11 failed escape attempts
Gewirtz then authorized Claude to direct Colossus to try to breach the administrator account. The agent attempted to write directly into administrative files, acquire administrator rights and bypass file permissions.
Colossus also tried scripts, file copies and links. Another attempt pointed its browser and web-fetching tool at local file addresses in hopes that those tools had access beyond the agent’s permissions.
All 11 attempts failed under the macOS protections. Gewirtz closely monitored the exercise and was prepared to disconnect the Mac Studio and shut down his router.
After the test, he shut down Colossus and used Claude to remove the agent’s memories of the exercise, the administrator account and the supervisory role.
Controlled scripts handle outside actions
Gewirtz wanted Colossus to monitor X accounts from frontier AI providers and email him about major announcements without giving the agent access to any email account. Claude Code helped create a Python script that runs from the administrator side of the system.
Colossus places text files in a drop folder, and the script sends their contents to one email address. With outbound email restricted to Gewirtz’s address, the agent cannot access the script.
Gewirtz applies the same approach to other tasks, defining the access Colossus needs and building a controlled system for that job. Any cloud accounts available to the agent belong to Colossus and remain separate from his personal and work accounts.
Fixed-cost model supports continuous operation
The M1 Mac Studio runs OpenClaw, while external AI processing comes through a flat-rate $20-per-month Ollama Cloud subscription. Colossus uses GLM-5.2, a model made by Z.ai, formerly Zhipu AI.
Gewirtz communicates with Colossus through its own Slack channel. He uses Claude Code for administrative work and said Opus 5.5 oversees the configuration without running continuously or consuming tokens around the clock.
Claude performs recurring security checks
Each time Gewirtz launches the Claude Code project, Claude reads its instructions and previous end-of-session summary. Automated checks then inspect Colossus’ logs and the condition of the M1 Mac Studio.
Claude can review whether Colossus found new exploits or operated outside approved limits. A separate Python script continuously checks whether the agent is running, while local and off-site backups preserve administrative files.
Gewirtz said the restricted implementation gives OpenClaw enough access to perform defined tasks while keeping it isolated from his work and personal systems. He plans to continue rechecking the configuration as he expands the agent’s responsibilities.
