Skip to main content
Loading…
AS Albert Schaper
  • 01Home
    • Profile & Career
    • Expertise
    • Overview
    • Results
    • Technical Depth
  • 04Projects
  • 05Contact
  • 06Insights
  • 07Tools
AS

Albert Schaper

01Home
Profile & CareerExpertise
OverviewResultsTechnical Depth
04Projects05Contact06Insights07Tools

AI · Finance · Entrepreneur

Home/AI Agents Atlas/Chapter 7: Operations
AI Agents Atlas · Chapter 7/7

Operations: isolation, skills, acceptance

Sandbox off, gateway public, skills unchecked — those are ops failures, not model failures. The checklist before go-live.

By Albert Schaper AI Expert & Entrepreneur
10 November 2026 AI AgentsOperations
Auf Deutsch lesen LinkedIn X
Contents
  • Gateway and network
  • Sandbox and backends
  • Approve skills and memory
  • Acceptance before go-live
  • Sources

An agent that answers in the demo and then hits the wrong machine, the wrong port or the wrong file is an operations failure. This chapter is the acceptance test before that: keep the gateway off the public internet, take the shell off the host, approve skill writes, and walk a payment timeout once. The euro figures below are the fictional worked examples from the insights, not vendor prices. The linked project docs were read in November 2026.

Gateway and network

OpenClaw is one long-running process for channels, the Control UI and the HTTP API, on one port. On a normal host the default is gateway.bind loopback, port 18789, auth on. Only clients on that machine can open the socket. Onboarding generates a token even for loopback. Remote access you actually need sits on top of that. Tailscale Serve keeps the gateway on loopback and handles access inside the tailnet. An SSH tunnel looks like this and still requires the token — the client sends token or password through the tunnel:

ssh -N -L 18789:127.0.0.1:18789 user@gateway-host

The port falls through --port, then OPENCLAW_GATEWAY_PORT, then gateway.port, otherwise 18789. Three traps are spelled out in the gateway configuration and in Network exposure:

  • Containers. If gateway.bind is unset inside a detected container, the effective default is auto, which listens on 0.0.0.0. Tailscale Serve or Funnel forces loopback again. If the container should stay local, set bind: "loopback" yourself. A published -p bypasses the host’s normal input firewall; the docs then expect DOCKER-USER rules, and an outside scan should show only the ports you meant to open.
  • Auth. Any bind other than loopback refuses to start until a valid auth path exists (refusing to bind gateway ... without auth). In practice that is a token, a password, or gateway.auth.mode: "trusted-proxy" behind a reverse proxy that checks identity. mode: "none" is for a loopback you trust, and onboarding does not offer it. Startup rejects empty tokens and example placeholders. openclaw security audit flags empty values as critical and warns below 24 characters. A usable secret is openssl rand -hex 32.
  • Public internet. The docs say not to expose the gateway unauthenticated on 0.0.0.0. tailscale.mode: "serve" stays on the tailnet. funnel is public and requires auth — a deliberate exception, not the default. The Control UI and canvas widgets share the port; the widgets are HTML and JavaScript the agent writes. That port does not go on the open internet.

Who may message the bot belongs in the channel allowlist (allowFrom and the matching setting for that channel), not in an open inbox. Check before a channel goes live: openclaw gateway status (runtime running, auth path matches) and openclaw channels status --probe. One gateway per machine is enough for almost every install; a second one needs its own port, config and state directory. The operator commands are in the gateway runbook. How gateway and worker differ is chapter 4.

Sandbox and backends

Hermes runs shell commands on the machine where it is installed. The platform FAQ answers “does every command run in a sandbox?” with no. terminal.backend: local is the default, and the tools docs describe it for development and trusted tasks. Docker, SSH, Modal, Daytona and Vercel Sandbox are optional, per session or per agent. Cloud agents run in their own containers; a self-hosted worker does that only after you set the backend.

Local fits while the machine is disposable, holds no wallet keys and no production config, and you would type the same commands yourself. As soon as a channel, a third-party skill or a payment tool joins, change the backend before the first write.

BackendWhenWhat you check
docker Untrusted input, package installs, reproducibility. The agent should not see the host. One long-lived container for the whole process (docker exec, not a fresh container per command). Pin the image, for example python:3.11-slim. The backend sets a read-only root, drops Linux capabilities, blocks privilege escalation and limits PIDs to 256. container_persistent defaults to on: installed packages survive a restart. That is convenient, and it also keeps a bad pip install.
ssh The agent must not touch its own code, the install or the keys. The tools docs recommend this for that reason. Separate user, separate machine. Credentials in ~/.hermes/.env (TERMINAL_SSH_HOST, TERMINAL_SSH_USER, TERMINAL_SSH_KEY), not in chat. The SSH user is not the account that owns the gateway token or the wallet.
modal, daytona, vercel_sandbox You want a cloud sandbox and you are not running Docker yourself. Same questions: persistent filesystem, which secrets land in the sandbox, who holds the kill switch. Hosting choice, not a substitute for skill approval.

OpenClaw can pin the same idea to a person: gateway.roles with sandbox: "required" stops that person from starting a host session even when the agent’s sandbox mode is off. On Hermes that does not replace the terminal.backend line.

If a command hangs that finishes instantly in your own terminal, check shell startup first. Agent calls are non-interactive. A .bashrc that loads nvm, waits for a TTY or prints a banner slows every call or runs into the default 180-second timeout. The tools docs show the usual guard: return immediately when the shell is non-interactive, and keep heavy init below that. On zsh, keep .zshenv small because it runs for every shell.

QuestionOpenClawHermes
Who may reach the control port?Loopback + auth; check container bindDo not expose the gateway without VPN/auth
Where does the shell run?Sandbox often off; gateway stays on hostlocal default; set a backend
What may the agent write?Read skills before install (ClawHub)Write gate for skills/memory

Model choice and prompt tuning come after that. First the process must contain damage when isolation or approvals fail — not only answer quality.

Approve skills and memory

A skill is the procedure the next run will execute. Hermes lets the agent create, edit and delete skills (skill_manage), including from the review that runs after a turn. skills.write_approval defaults to false: writes land without you. Memory uses the same default under memory.write_approval. On local, a skill that contains shell steps is code on your host.

Turn the gate on before any of these is true: a channel other people can message; a small model that learns the wrong lesson from a correction; a skill that touches the terminal, files or payments; a shared skills directory. Every write (create, patch, delete, write_file, remove_file) is then staged under ~/.hermes/pending/skills/ and survives a restart. You list them with /skills pending, apply with /skills approve, and persist the requirement with /skills approval on. Chat shows a truncated diff; the full diff is in the pending file or the CLI.

skills:
  write_approval: true
memory:
  write_approval: true
terminal:
  backend: docker

You can leave the gate off on a single-user CLI whose skills live in git and whose diff you merge before it loads anywhere else. That is the documented default for that experiment, not for a gateway with an audience.

Two features are not an approval. skills.guard_agent_created is a content scanner, separate from the gate. The Skills Hub scans installs; the optional NVIDIA SkillEvaluator prints findings and then continues the install. Lines that look like keys are highlighted so you read them. An external skills directory is not a write boundary while the Hermes process can write there. Skills that are policy (allowlist, payment path, prohibitions) get hermes curator lock: skill_manage, patch and terminal then refuse to change them. Your own edits still work.

Acceptance before go-live

Shadow mode first. The agent proposes, a person executes. Write tools and payments stay off until the proposals match the sample you already fixed as the quality bound. The bound and the stop rule come from the ROI article; the cost line comes from what an agent costs. Both examples are fictional and use different hourly rates (€40 and €36), on purpose not aligned with each other.

MeasureFormulaFictional example
ROI(benefit − cost) / costabout 84.6% over 12 months, after €6,000 implementation
Benefitfreed time × usage rate × hourly cost60% of €4,000 = €2,400; minus €800 operations = €1,600 per month
Break-even usage rateoperating cost / (hourly cost × hours saved per task × tasks)800 / (40 × 0.1 × 1,000) = 20%
Cost per accepted resultall attributable cost / accepted results€1,364 / 900 ≈ €1.52; of which €1.20 is review and about €0.08 is tokens

Expand only when the full task gets cheaper, the quality bound holds and the freed capacity is actually used. Otherwise improve the pilot or stop it. The full arithmetic is in the ROI insight.

No reply on a payment leaves the status unknown. The reserved budget stays reserved. A new payment id can buy the same thing a second time. Look up the existing payment id or transaction hash first, and reuse the same idempotency key when the provider documents that. The path is in chapter 6 and in when AI agents pay.

The wallet rule lives outside the model. The fictional test cap from wallets for AI agents: at most €2 per dataset, €20 per day, one approved supplier. The €20 covers parallel orders, including reservations and fees. A session key limits only what the implementation checks; an unlimited approve walks around it. Detail in chapter 5.

Go live when these are checked:

  1. gateway.bind is loopback. In a container that line is explicit, otherwise auto becomes 0.0.0.0.
  2. Auth is token, password or trusted proxy. mode: "none" only on a loopback that you alone can reach.
  3. The secret was generated (openssl rand -hex 32), not the placeholder from the docs. openclaw security audit has no critical finding on an empty token.
  4. Remote access is Tailscale Serve or an SSH tunnel. The tunnel still sends the token. Funnel only if public on purpose, with auth in place.
  5. The channel allowlist names who may write. The Control UI and canvas port are not reachable from the open internet.
  6. openclaw gateway status and openclaw channels status --probe match what you expect.
  7. Hermes terminal.backend is docker or ssh once a channel, third-party skills or payments are in play. local only on a disposable machine with no keys.
  8. The Docker image is pinned and the container is not privileged. The SSH user owns neither the install nor the wallet.
  9. skills.write_approval and memory.write_approval are true. ~/.hermes/pending/skills/ is empty or reviewed. Policy skills are locked with hermes curator lock.
  10. Third-party skills have been read. The hub scan and the optional NVIDIA scan are signals; they do not stop the install by themselves.
  11. A non-interactive command gets through shell startup. A 180-second timeout is checked in .bashrc or .zshenv first.
  12. Spend cap, recipient and function are enforced in policy, not in the prompt. Fictional test cap: €2 per dataset, €20 per day, one supplier. An unlimited approve is rejected.
  13. The payment path “no reply” has been run once: status unknown, reservation held, no second payment id. Same idempotency key when the provider says so.
  14. The stop does not depend on the agent: stop the gateway, block new signatures, revoke session keys and allowances already granted. Expand only under the ROI rule above.

The same list, shorter, is on the cheat sheet.

Sources

  • OpenClaw: gateway runbook (loopback, auth, SSH tunnel, port 18789), Configuration — gateway (bind, auth.mode, Tailscale Serve and Funnel), Network exposure (do not expose unauthenticated on 0.0.0.0, container auto).
  • Hermes Agent: tools and terminal backends (default local, Docker, SSH), skills (skills.write_approval, pending, lock), platform FAQ (shell on the host, sandbox optional).
  • Fictional worked examples on this site: measuring ROI, what an agent costs, wallets, payments.
  • Chapters: runtimes, wallets, payments, cheat sheet.
Previous chapter Chapter 6 Payments: timeouts without double spend
More Insights
  • AI Agents

    Why AI agent projects fail

    Find the cause before you swap the model: data, understanding, tools, process.

  • Crypto

    Wallets for AI agents

    Policy before signature: limits, session keys, acceptance tests.

  • Finance

    How to measure AI agent ROI

    Usage rate, break-even and the formula behind the pilot report.

Albert Schaper
About the author

AI expert and entrepreneur with a finance background and a focus on execution. I support companies as a partner and partly with own capital, mainly on strategy, financing and sales, and advise teams on putting AI to work. LinkedIn

← Back to atlas
AS

AI · Finance · Entrepreneur

Navigation

HomeAboutExpertiseProjectsContactInsightsTools

Projects

Best-AI.orgBitAutorGeld 2.0Pharmaceutical company

Tools

ETH Unit ConverterAddress ValidatorQR Code GeneratorSeed Phrase ValidatorWallet Generator

© Albert Schaper. All rights reserved.

Privacy / Imprint