Install
openclaw skills install mac-multi-user-agentsConfigure a powerful macOS machine to host multiple dedicated OpenClaw agent users with Fast User Switching, a shared Homebrew toolchain, per-user OpenClaw h...
openclaw skills install mac-multi-user-agentsUse this skill when one Mac should support multiple dedicated OpenClaw agent users.
This skill is for the pattern you described on the MacBook Pro:
/opt/homebrew toolchain~/.openclaw, SSH, browser, and session state per userIt does not try to hide the fact that macOS user management still requires admin access.
sudo or admin approval for user creation/opt/homebrew~/.openclaw per agent~/.ssh per agent/opt/homebrew only for binaries and formulaeRun:
scripts/detect-host.sh
scripts/recommend-layout.sh
This reports:
Do not improvise account creation from memory.
Render the commands first:
scripts/render-user-create.sh --user agent3 --full-name "Agent 3"
scripts/render-user-create.sh --user agent4 --full-name "Agent 4" --admin no
This prints a repeatable sysadminctl-based flow and the baseline directories to create afterward.
If you want the skill to actually create the user, use:
export AGENT_PASSWORD='set-a-real-password'
scripts/create-user.sh --user agent3 --full-name "Agent 3" --password-env AGENT_PASSWORD
Or dry-run first:
scripts/create-user.sh --user agent3 --full-name "Agent 3" --password-env AGENT_PASSWORD --dry-run
This keeps the process auditable and avoids hand-built user creation every time.
Recommended shared toolchain:
/opt/homebrew/bin/brew/opt/homebrew/bin/node/opt/homebrew/bin/npm/opt/homebrew/bin/openclawRead references/shared-homebrew.md before changing ownership or permissions under /opt/homebrew.
For each agent user, create or verify:
~/.ssh~/.openclaw/opt/homebrew/binUse:
scripts/verify-user-shell.sh --user agent3
to check the resulting shell/tool state.
Read references/fast-user-switching.md.
The purpose is:
Use:
scripts/write-receipt.sh --action "create-user" --status ok --detail "Prepared agent3 on MacBook Pro"
scripts/write-receipt.sh --action "verify-user-shell" --status ok --detail "agent3 sees brew node openclaw"
/opt/homebrew shared, but keep ~/.openclaw private per userA single agent user should be removable without reinstalling the Mac.
Baseline rollback:
~/.openclawscripts/detect-host.sh: inspect the Mac and shared toolchain statescripts/recommend-layout.sh: suggest a sane agent-user count from hardwarescripts/render-user-create.sh: print repeatable user-creation commandsscripts/create-user.sh: actually create and bootstrap an agent user with sysadminctlscripts/verify-user-shell.sh: verify a target user sees the expected toolchainscripts/write-receipt.sh: append JSONL receipts for rollout workreferences/fast-user-switching.md: practical guidance for multi-user Mac agent hostsreferences/shared-homebrew.md: rules for one shared Homebrew toolchain across agent users