GoneTone

Cc Askpass — Development skill for Claude Code

Development community

A Claude Code mod that lets Claude run commands that need sudo, instead of copying them into your own terminal.

How to install Cc Askpass

This entry records only its repository, not the path inside it, so there is no exact command to give. Open GoneTone/cc-askpass and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Cc Askpass does

A Claude Code mod that lets Claude run commands that need sudo, instead of copying them into your own terminal. | 一個 Claude Code Mod,讓 Claude 直接執行需要 sudo 的指令,不用再把指令複製到自己的終端機執行。

Alternatives in Development

  • Root Cause Tracing — Use when errors occur deep in execution and you need to trace back to find the original trigger 102.5k ★
  • Resume Work From A Handoff Document — You are tasked with resuming work from a handoff document through an interactive process 10k ★
  • Call Me — Minimal plugin that lets Claude Code call you on the phone 2.5k ★

README

cc-askpass

English | [繁體中文](README.zh-TW.md) | [简体中文](README.zh-CN.md)

**A Claude Code mod that lets Claude run commands that need sudo, instead of copying them into your own terminal.**

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), cc-askpass opens a password pane inside Claude Code where you can type it. The password goes straight to the program that asked. It never reaches the model, the transcript or any log.

https://github.com/user-attachments/assets/bbb11cc1-cbfb-4b46-ba88-23fbf1ab6254

Without it, Claude's Bash tool has no terminal, so sudo fails at once:

sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper
sudo: a password is required

So you end up running the command in your own terminal. Pasting the password into the chat or adding `NOPASSWD` to sudoers also gets around it, but both are riskier.

  • Nothing to configure. Install it, and sudo, ssh and git ask for passwords in the pane.
  • The password stays out of the model. It never appears in the model's context, in logs, on a command line or in a file.
  • You see what you approve. The pane shows the command that will run as root, the program that asked, and the command Claude ran.

Install

Needs Claude Code 2.1.286 or later, on Linux, WSL, macOS or Windows. Run these in Claude Code:

/plugin marketplace add GoneTone/cc-askpass
/plugin install cc-askpass@cc-askpass

`/plugin install` asks where to install it and shows its options; the defaults are fine. Then restart Claude Code or run `/reload-plugins`.

Usage

When a command Claude runs asks for a password, the pane opens. Its `$` line shows the command that asked; for sudo, that is the command that will run as root (for example `$ sudo apt update`). `Asked by:` names the program that asked. If the prompt came from something else Cl