ClaudeCodeMod

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.

In Claude Code
/plugin marketplace add GoneTone/cc-askpass
/plugin install cc-askpass@cc-askpass
Open the repo

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

The top of the Usage section of the cc-askpass README: when a command Claude runs asks for a password (sudo apt install, an install script that calls sudo, git push over HTTPS, an ssh key passphrase), a password pane opens inside Claude Code and the password goes straight to the program, never to the model, the transcript or any log.
Screenshot of the author's GitHub page.

What it hooks into

  • session.startWhen a session starts
  • prompt.composeWhile you write a prompt
  • tool.callAround a tool call, where it can hold oneBash
  • session.endWhen a session ends
  • command.runWhen you run its slash command/askpass
  • ui.closeWhen its pane closes
  • ui.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
Repo
GoneTone/cc-askpass
Version
0.2.0
License
MIT
Repo stars
16
Last change
2026-10-12
Language
TypeScript
Files
37

Other mods in Safety

secret-envtoy-craneHolds a commandOpens a pane for typing an API key into a .env file, shows [hidden] wherever the value appears in tool results, and denies Write and Edit on that key's line.mod-blast-radiusv-amorimHolds a commandHolds a risky Bash command on a card until you choose Run or Cancel, shows what it would change first, and reads your own rules from a JSON file.mod-collision-guardv-amorimHolds a commandPauses a file edit when another open session just edited that file, and asks you to proceed, move to a worktree, cancel, or type an instruction for Claude.secret-guardvumichienHolds a commandHides secret values from your env files and secret-shaped text in tool results, tells Claude to use $NAME instead, and refuses commands that print them.blast-radiusAnthropicHolds a commandHolds a shell command such as rm -rf, a force push, a hard reset, or a migration, shows what it would touch, then asks you to proceed or cancel.merge-gatehamzaferHolds a commandHolds gh pr merge until CI is green and a Codex review has run once, and draws that pull request's status above the prompt.rulebook-guardhamzaferHolds a commandAsks before git commit --amend, an unformatted push, or personal details in notes and commits.bash-guardSingh-APHolds a commandHolds every Bash call, even in bypass mode. Blocks rm -rf on a home or system directory, and asks before a force-push, a hard reset, or a pipe into sh.net-guardSingh-APHolds a commandHolds curl, wget, ssh, scp, git push, and WebFetch, even in bypass mode. Blocks paste sites and request catchers, and asks before data goes anywhere new.file-guardSingh-APHolds a commandHolds writes outside the project and writes into .git, and asks before lockfiles and CI files.slopsquat-guardSingh-APHolds a commandHolds a package install and checks the name against its registry, so a hallucinated or typosquatted package does not install.command-explainerSingh-APDraws a plain-English line and a risk level on the permission prompt, so you can see what the command does before you approve it.
All 73 in Safety