Installable skillMIT

Key Rotation

An MCP server that provides on-demand skill loading for AI coding assistants.

BY modbenderUPDATED Oct 27, 2026
INTENDED FOR◈OpenClawInstall in a listed agent.

instructions.md

---
name: keyswap
description: Rotate Claude Max API token for OpenClaw Anthropic profiles. Use when the user says "swap key", "rotate key", "new key", "keyswap", or provides a new `sk-ant-` token to replace the current one.
---

# 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
bash /opt/homebrew/lib/node_modules/openclaw/skills/keyswap/scripts/keyswap.sh <token>
```

3. Report the result to the user. On success, confirm both profiles were updated and the gateway restarted. On failure, show the error output.
COMPATIBILITY & REFERENCES

Platform guidance

Imported from the listed AgentSkill.sh category. Complete supplied package files and notices are retained. Includes source scripts; review them before use. Required external tools and credentials are not installed. No bundled code was executed during import. Individual agent task behavior has not been tested.