All shelves / Mods / Safety
cc-askpass
By GoneTone
cc-askpass is a Claude Code safety mod by GoneTone.
Opens a password pane when a command Claude runs asks for sudo, ssh, or git credentials, so the password goes to the program and never reaches the model.
Draws
Install
The marketplace name is cc-askpass.
/plugin marketplace add GoneTone/cc-askpass /plugin install cc-askpass@cc-askpass
It runs inside the Claude Code process. The side panel is only what the author's README names. Read the repo before you install, or run claude plugin validate on the plugin folder.
- Version
- 0.2.0
- License
- MIT
- Repo stars
- 16
- Last change
- 2026-10-12
What it can reach
- Draws in the session
- Sees tool calls
- Calls another program on this machine
Claude Code 2.1.286 or later, on Linux, WSL, macOS, or Windows. /plugin install asks where to install it; the defaults are fine. Then restart Claude Code or run /reload-plugins. In a terminal narrower than 144 columns the pane may not open on its own: a line above the prompt says sudo is waiting, and you click Open password prompt or type /askpass. Keys go to the prompt until you click the pane or press ctrl+x tab, so move the keyboard first. On Windows it builds a helper from C# source with the .NET Framework built into Windows 10 and 11. It does nothing in claude -p or the SDK, and with the Bash sandbox on, sudo fails at once. cc-askpass is not a sandbox and cannot stop hostile code running as you.
The marketplace, cc-askpass, holds only this plugin. Keeping a password out of the model is why this page files it under safety. secret-box opens a masked box when Claude needs a key, writes the key to .env, and gives Claude a placeholder. secret-guard hides API keys and private keys before the model or the transcript sees them, and blocks credential files and commands that print secrets. This one is for the password a command asks for: sudo apt install, an install script that calls sudo, git push over HTTPS, an ssh key passphrase. The pane shows the command that will run as root, the program that asked, and, when something else asked, the command Claude ran. Cancel or Esc sends no answer, so sudo stops, and ssh to a remote host uses the same pane and names the host. The password never appears in the model's context, in logs, on a command line, or in a file.
Demo

What it hooks into
session.startWhen a session startsprompt.composeWhile you write a prompttool.callAround a tool call, where it can hold oneBashsession.endWhen a session endscommand.runWhen you run its slash command/askpassui.closeWhen its pane closesui.renderDraws into the sessionAbovePromptPane
Read from the on() calls in its hook modules. Open its source under Files to check what each one does.
Slash commands 1
/askpassOpen the pending password prompt
Files
The author's README and source, 4 files. They load when you open them.
Facts
- Author
- GoneTone
- Category
- Safety
- Marketplace
- cc-askpass
- Version
- 0.2.0
- License
- MIT
- Repo stars
- 16
- Last change
- 2026-10-12
- Language
- TypeScript
- Files
- 37