返回 Skill 列表
extension
分类: 开发与工程无需 API Key

Key Swap

轮换OpenClaw Anthropic配置文件的Claude Max API令牌。当用户说“swap key”、“rotate key”、“new key”、“keyswap”或提供新的`sk-ant...`令牌时使用。

person作者: jawaddxbhubclawhub

Key Rotation

Rotate the Claude Max API token for both Anthropic profiles (anthropic:jawadjarvis and anthropic:manual) in OpenClaw.

Instructions

  1. If the user has not provided a token, ask for one. It must start with sk-ant-.
  2. Run the rotation script:
bash /opt/homebrew/lib/node_modules/openclaw/skills/keyswap/scripts/keyswap.sh <token>
  1. Report the result to the user. On success, confirm both profiles were updated and the gateway restarted. On failure, show the error output.