Sudo me
Skill AE-0/sudo-me
Use this skill to execute commands with root privileges securely without needing to interactively enter a password for every command. It uses a transient background daemon for authentication.From its SKILL.md
npx -y skills add AE-0/sudo-meAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
2.2 KB, 497 tokens by cl100k_base, as published. Nobody here has run it
Skill: sudo-me
Agent-Native Transient Sudo (sudo-me)
This skill provides instructions on how to use sudo-me to execute commands with root privileges without needing to interactively enter a password for every command.
Overview
sudo-me is a tool designed for AI agents to securely run commands as root. It works by initializing a background daemon that authenticates via a secure token over a Unix socket.
Usage
1. Initialization
Before running any commands as root, you must initialize the sudo-me session. This will prompt for the sudo password once (via a GUI dialog or TTY fallback) and save the session securely.
Run the following command to initialize the session:
sudo-me init
(Note: You can also run eval $(sudo-me init) if you want to export the variables directly into your current shell, but it is no longer required as the session is saved to ~/.sudo-me.)
2. Running Commands
Once initialized, you can run commands as root using sudo-me run.
sudo-me run <command> [args...]
Examples:
sudo-me run whoami
sudo-me run apt-get update
sudo-me run systemctl restart nginx
3. Important Notes
- The session is saved to
~/.sudo-me. If you restart your machine or the daemon is killed, you will need to re-initialize by runningsudo-me initagain. - Do not share the
SUDO_ME_TOKENorSUDO_ME_SOCKvariables with untrusted processes.
Troubleshooting
- Error: Session not found. Please run
sudo-me initfirst: You haven't initialized the session. Runsudo-me initfirst. - Password prompt fails or hangs:
Ensure you have a GUI dialog tool installed (like
zenityorkdialog) if running in a graphical environment, or that you are running the initialization in an interactive TTY. - Daemon error or connection refused:
The background daemon might have crashed or the socket file was deleted. Re-initialize the session by running
sudo-me initagain. - Command not found:
Ensure
sudo-meis in yourPATH(e.g.,~/.local/bin).
What ships with it: 16 files
86.3 KB alongside SKILL.md
docs/
- guide/installation.md6.8 KB
- legal/terms-of-service.md3.5 KB
src/
tests/
- test_ipc.rs1.5 KB
- test_security.rs4.0 KB
- Cargo.toml642 B
- .gitignore23 B
- LICENSE34.3 KB
- README.md4.4 KB