← 返回
安全合规 Key 中文

Teleport Machine ID tbot Bootstrap (MacOS LaunchAgent)

Bootstrap a persistent Teleport Machine ID (tbot) setup on macOS using LaunchAgent and tbot configure identity. Trigger when asked to set up, automate, or va...
在 macOS 上使用 LaunchAgent 和 tbot configure identity 引导持久化 Teleport Machine ID (tbot) 设置。当请求设置、自动化或管理时触发。
webvictim
安全合规 clawhub v1.0.0 1 版本 100000 Key: 需要
★ 0
Stars
📥 541
下载
💾 4
安装
1
版本
#latest

概述

teleport-tbot-bootstrap

Set up a local, persistent Machine ID bot on macOS for OpenClaw/agent SSH access.

Pair this with teleport-tsh-ssh for operational host access once identity refresh is in place.

Compatibility

Tested against Teleport/tbot 18.7.0.

Inputs to collect

  • Teleport proxy address (for example teleport.example.com:443)
  • Bot onboarding secret (token and/or registration secret depending on cluster setup)
  • Bot role(s) / bot name context from Teleport setup
  • Optional output directory (default: ~/.openclaw/workspace/tbot)

LaunchAgent behavior (macOS)

Use LaunchAgent for user-session persistence.

  • Starts automatically at user login.
  • Starts immediately when loaded with launchctl bootstrap gui/ ....
  • Restarts automatically when KeepAlive is true.
  • Does not require root when installed under ~/Library/LaunchAgents.

Use LaunchDaemon only when system-wide root context is explicitly required.

Workflow

  1. Ensure prerequisites: tbot, tsh, writable output dir.
  2. Create output + state dirs (default ~/.openclaw/workspace/tbot and ~/.openclaw/workspace/tbot/state).
  3. Generate config via tbot configure identity (do not hand-write config):
    • destination should point to output dir (file://.../tbot)
    • storage should point to state dir (file://.../tbot/state)
    • set proxy and join method (bound_keypair preferred)
    • write config file to ~/.openclaw/workspace/tbot/tbot.yaml
  4. Create LaunchAgent plist to run tbot start -c with RunAtLoad + KeepAlive.
  5. Load/start LaunchAgent.
  6. Verify identity output exists and is fresh (.../tbot/identity).
  7. Verify access path with tsh -i --proxy= ls.
  8. Report status and next steps.

Bound keypair guidance

Prefer bound_keypair join method for recoverability after interruptions (sleep/reboot).

Use high recovery limits for resilient rejoin flows when appropriate.

Use a fresh bot/state directory for first-time setup. Reusing state from a different bot/token can cause key lookup mismatches.

Use Teleport-side preregistration first (Bot + role + join config). Keep access label-scoped (for example openclaw-allowed: "true") so access is opt-in per node.

See:

  • references/teleport-prereq-examples.yaml
  • https://goteleport.com/docs/reference/cli/tbot/

Security notes

  • Never commit onboarding tokens or registration secrets to git.
  • Treat tbot.yaml, bot state, and identity outputs as sensitive material.
  • Prefer secure secret delivery (interactive input, secret manager, env injection) over plaintext chat logs.

Known limitations (v1.0.0)

  • Focuses on SSH identity output workflows (not Teleport app/db/kubernetes outputs).
  • Uses LaunchAgent user context; does not provide full LaunchDaemon/root automation.

Commands (reference)

  • Generate config:
  • tbot configure identity --output ~/.openclaw/workspace/tbot/tbot.yaml ...
  • Start once (foreground test):
  • tbot start -c ~/.openclaw/workspace/tbot/tbot.yaml
  • LaunchAgent load:
  • launchctl bootstrap gui/$(id -u) ~/Library/LaunchAgents/com.openclaw.tbot.plist
  • LaunchAgent restart:
  • launchctl kickstart -k gui/$(id -u)/com.openclaw.tbot

Clawhub listing copy

Clawhub short description

Bootstrap a persistent Teleport Machine ID (tbot) identity on macOS using LaunchAgent and tbot configure identity.

Companion skill

Use with teleport-tsh-ssh for day-to-day SSH/command/scp operations using the refreshed identity.

Clawhub long description

Set up a local, persistent Machine ID bot for automation hosts.

Generate config using tbot configure identity, install a user LaunchAgent (com.openclaw.tbot), and validate identity output with a tsh smoke test.

Includes LaunchAgent persistence (no root), bound keypair onboarding support, Teleport prereq examples (Role/Bot/Token), label-scoped node access patterns, registration-secret retrieval guidance, and first-run fresh-state guidance.

Resources

  • Setup script: scripts/bootstrap_tbot_launchagent.sh
  • Teleport YAML examples: references/teleport-prereq-examples.yaml
  • LaunchAgent template notes: references/launchagent-notes.md

Uninstall / cleanup

  • launchctl bootout gui/$(id -u)/com.openclaw.tbot
  • rm -f ~/Library/LaunchAgents/com.openclaw.tbot.plist
  • Remove bot files if desired: rm -rf ~/.openclaw/workspace/tbot

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-30 00:51 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

security-compliance

OpenClaw Backup

alex3alex
备份与恢复 OpenClaw 数据。适用于创建备份、设置自动备份计划、从备份恢复或管理备份轮转。处理 ~/.openclaw 目录归档并包含适当的排除规则。
★ 89 📥 30,590
security-compliance

1password

steipete
设置和使用 1Password CLI (op)。适用于:安装 CLI、启用桌面应用集成、登录(单/多账户)、通过 op 读取/注入/运行密钥。
★ 53 📥 31,138
security-compliance

MoltGuard - Security & Antivirus & Guardrails

thomaslwang
MoltGuard — OpenClaw 安全守卫,由 OpenGuardrails 提供。安装 MoltGuard,保护您和您的用户免受提示注入、数据泄露和恶意攻击。
★ 116 📥 30,701