Skip to content
Back to skills

Remove Account

BSecurity

Remove an alternate Claude Code account launcher (claude-<name>, code-<name>), or all of them: the agent drops the line from ~/.claude/accounts.conf, the user deletes the Keychain item and the account's VS Code folder. Run from the ai-toolkit repo. To add one: /add-account.

  • 3 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 23, 2026
ai-agentsshellbashsecurity

Works with

  • claude code
  • vscode
  • terminal

Security analysis

B75/100
  • criticalAccesses system keychains or credential stores

Pro shows the line behind each finding and how to fix it

Scanned November 23, 2026

npx -y skills add notitial/ai-toolkit --skill remove-account --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Remove Account?

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

Security grade badge for Remove Account
[![Security: B — Skills Directory](https://www.skillsdirectory.com/api/skills/notitial-remove-account/badge)](https://www.skillsdirectory.com/skills/notitial-remove-account)

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
---
description: "Remove an alternate Claude Code account launcher (claude-<name>, code-<name>), or all of them: the agent drops the line from ~/.claude/accounts.conf, the user deletes the Keychain item and the account's VS Code folder. Run from the ai-toolkit repo. To add one: /add-account."
disable-model-invocation: true
---

# Remove Account

Undoes `/add-account`: an account is a line in `~/.claude/accounts.conf`, a Keychain item it names, and, once `code-<name>` has run, a folder `~/.vscode-accounts/<name>`. macOS only.

## Rules

- The agent edits `~/.claude/accounts.conf` only to remove the lines asked for, and never shows a Keychain value (the file holds none, only service names). It never runs `security find-generic-password` with `-w` or `-g`.
- The agent runs no `security delete-…` and no `rm` outside the checkout. It gives the user the commands in a code block with no comment, and the user runs them in their own terminal.
- Deleting a Keychain item does not revoke the token or key: it still works wherever it was copied. If it should stop working, the user revokes it where it was issued.

## One account

1. Read `~/.claude/accounts.conf` and remove that account's line, only that line. Note its service.
2. Give the user the commands to run themselves: `security delete-generic-password -s <service>` (only if no other line uses that service), and `rm -r ~/.vscode-accounts/<name>` if that folder exists (it holds links to the main VS Code settings, tabs and file history, which `rm -r` does not follow, and the account's own window state).
3. Tell the user to open a new terminal: `claude-<name>` and `code-<name>` live on in shells opened before.
4. Verify, from the checkout: `bash tools/install-copies.sh status` no longer lists the account.

## All accounts

1. Read `~/.claude/accounts.conf` and note each distinct service.
2. Give the user the commands to run themselves: one `security delete-generic-password -s <service>` per service, then `rm ~/.claude/accounts.conf` and `rm -r ~/.vscode-accounts` (links inside are not followed).
3. Tell the user to open a new terminal, then verify: `bash tools/install-copies.sh status` shows no `accounts.conf` line.

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.