Skip to content
Back to skills

Keyswap

ASecurity

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.

  • 21 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 7, 2026
ai-agentsbashnodeapi

Works with

  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 7, 2026

npx -y skills add modbender/skill-library-mcp --skill keyswap --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Keyswap?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Keyswap
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/modbender-keyswap/badge)](https://www.skillsdirectory.com/skills/modbender-keyswap)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.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.

Files in this skill

  • SKILL.md761 B
  • scripts/keyswap.sh1.9 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.