An open API service indexing awesome lists of open source software.

https://github.com/mbrell/c0admin

A terminal-based AI assistant for Linux sysadmins.
https://github.com/mbrell/c0admin

admin bash c0admin devops docker gemini googlegemini linux linux-administration python shell sysadmin

Last synced: 5 months ago
JSON representation

A terminal-based AI assistant for Linux sysadmins.

Awesome Lists containing this project

README

          

Soon.. πŸ‘€



Of course after INSTALL.sh....

# c0admin

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

![c0admin Banner](c0admin-banner.png)

> [!IMPORTANT]
> INSTALL.sh will work soon...

> [!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?](https://github.com/mbrell/c0admin/blob/main/how-to-get-gemini-api-key.md)

## Installation

1. Clone the repository:
```bash
git clone https://github.com/mbrell/c0admin.git
cd c0admin
```

2. Create a virtual environment (recommended):
```bash
python -m venv venv
source venv/bin/activate
```

3. Install dependencies:
```bash
pip install -r requirements.txt
```

## Usage

Start the application:
```bash
python3 main.py
```

or

Start the minimal version of the application:
```bash
python3 main-minimal.py
```

## Commands

- `--help`

- `/del` β€” Delete the GEMINI API KEY.
- `/exit` β€” Exit the app safely.
- `/help` β€” Redirects to repository.
- `/history` β€” Displays the command history (history.txt).
- `/setinst ` β€” Set a custom system instruction from a given URL.
- `/resetinst` β€” Reset system instruction to the default one.

## Custom System Instructions

From the [system-instructions](https://github.com/mbrell/c0admin/tree/main/system-instructions) folder in the 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

---

Built with ❀️ using Python