c0admin icon indicating copy to clipboard operation
c0admin copied to clipboard

A terminal-based AI assistant for Linux sysadmins.

c0admin 🐧

Suggests GNU/Linux terminal commands from natural language using AI.

c0admin Banner

[!WARNING] For the automatic copy to clipboard feature to work, you must have the β€˜xsel’ and β€˜xclip’ packages installed on your system.

How to get personal Google Gemini API key?

Installation

To install c0admin system-wide on GNU/Linux:

curl -s https://raw.githubusercontent.com/mbrell/c0admin/main/install.sh | bash

This will:

  • Download and install c0admin to ~/.c0admin/
  • Set up a Python virtual environment
  • Install dependencies
  • Make c0admin available as a global terminal command

After installation, you can start the app anytime by simply typing:

c0admin

Commands

  • /help β€” Display help information.
  • /del β€” Delete the GEMINI API KEY.
  • /exit β€” Exit the app safely.
  • /history β€” Displays the command history (history.txt).
  • /setinst <url> β€” Set a custom system instruction from a given URL.
  • /resetinst β€” Reset system instruction to the default one.

Custom System Instructions

From the system-instructions repo you can see all the community-created system instructions.

We welcome your contributions on this issue.

Contributing

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

c0admin is an Mbrell project. πŸ’§