
Team Handoff
Hand local work to a shared OpenClaw Gateway: start a worktree session there as...
Install
npx skills add openclaw/agent-skills --skill team-handoff -g -a claude-code -y- Repository
- openclaw/agent-skills1.1k
- Category
- Engineering
- Updated
- 3d ago
- License
- MIT
- Context cost
- Lightabout 1,208 tokens
- Runs scripts
- Yes, review before use
What it does
Hand local work to a shared OpenClaw Gateway: start a worktree session there as yourself in one request, seeded with a handoff, and get the session URL back.
Team Handoff
Use when the user says "open a session on the team server for this", "hand this off to <team agent>", or "summarize this for a new agent and start it on <gateway>", and the target is a shared OpenClaw Gateway behind an identity-aware proxy (Cloudflare Access).
One Gateway request, as the operator's own identity. No browser automation, no SSH, no polling.
Script: scripts/team-handoff.sh
Setup (once per machine)
-
Operator config, outside any repo:
${XDG_CONFIG_HOME:-~/.config}/openclaw/team-handoff.envOPENCLAW_HANDOFF_URL=https://gateway.example # the shared Gateway's public origin OPENCLAW_HANDOFF_AGENT=main # default agent id on that Gateway OPENCLAW_HANDOFF_PROJECT=example-project # default projects.list id # optional: # OPENCLAW_HANDOFF_CLI=/path/to/openclaw # installed OpenClaw CLI (default: openclaw on PATH) # OPENCLAW_HANDOFF_PROFILE_DIR=~/.openclaw/profiles/team # OPENCLAW_HANDOFF_SSH_HOST=gateway-host # operator fallback only; see below -
Isolated CLI profile so the local Gateway config is never touched. The script writes it on first
probewhen missing:OPENCLAW_STATE_DIRandOPENCLAW_CONFIG_PATHpoint at the profile dir, whoseopenclaw.jsonholds onlygateway.mode: "remote",gateway.remote.url, and anexecsecret provider that runscloudflared access token -app=<url>for theCf-Access-Tokenheader (gateway.remote.edgeAuth, see the OpenClaw docs page "Remote access", section "Gateway behind an identity-aware proxy"). The providercommandmust be the realcloudflaredbinary, not a symlink. -
The human logs in once per Access session lifetime (agents cannot):
cloudflared access login https://gateway.example
