Skip to main content

AI-powered Linux assistant โ€” fix any Linux problem in plain English

Project description

TuxGenie ๐Ÿงž

Your wish is my command. AI-powered Linux assistant โ€” fix any problem in plain English.

PyPI version Python License: MIT CI


 โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•—   โ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•—  โ–ˆโ–ˆโ•— โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—โ–ˆโ–ˆโ–ˆโ•—   โ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•—โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—
    โ–ˆโ–ˆโ•”โ•โ•โ•โ–ˆโ–ˆโ•‘   โ–ˆโ–ˆโ•‘โ•šโ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•”โ•โ–ˆโ–ˆโ•”โ•โ•โ•โ•โ• โ–ˆโ–ˆโ•”โ•โ•โ•โ•โ•โ–ˆโ–ˆโ–ˆโ–ˆโ•—  โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•”โ•โ•โ•โ•โ•
    โ–ˆโ–ˆโ•‘   โ–ˆโ–ˆโ•‘   โ–ˆโ–ˆโ•‘ โ•šโ–ˆโ–ˆโ–ˆโ•”โ• โ–ˆโ–ˆโ•‘  โ–ˆโ–ˆโ–ˆโ•—โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—  โ–ˆโ–ˆโ•”โ–ˆโ–ˆโ•— โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—
    โ–ˆโ–ˆโ•‘   โ–ˆโ–ˆโ•‘   โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ•”โ–ˆโ–ˆโ•— โ–ˆโ–ˆโ•‘   โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•”โ•โ•โ•  โ–ˆโ–ˆโ•‘โ•šโ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•”โ•โ•โ•
    โ–ˆโ–ˆโ•‘   โ•šโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•”โ•โ–ˆโ–ˆโ•”โ• โ–ˆโ–ˆโ•—โ•šโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•”โ•โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•‘ โ•šโ–ˆโ–ˆโ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—
    โ•šโ•โ•    โ•šโ•โ•โ•โ•โ•โ• โ•šโ•โ•  โ•šโ•โ• โ•šโ•โ•โ•โ•โ•โ• โ•šโ•โ•โ•โ•โ•โ•โ•โ•šโ•โ•  โ•šโ•โ•โ•โ•โ•šโ•โ•โ•šโ•โ•โ•โ•โ•โ•โ•

  TuxGenie v5.79 โ€” Powered by Claude ยท Free forever ยท Open Source

What is TuxGenie?

TuxGenie is your AI co-pilot for Linux. Describe any problem in plain English and TuxGenie will diagnose it, explain what's wrong, and fix it โ€” step by step, with your approval at every stage.

No more Googling error messages. No more copying random commands from Stack Overflow. Just tell TuxGenie what's wrong.

$ tuxgenie
TuxGenie > my nginx won't start after I edited the config

  โœฆ Step 1 [SAFE]  Check nginx config for syntax errors
    nginx -t
  Run this step? [y/n/skip/abort]: y

  nginx: [emerg] unexpected "}" in /etc/nginx/nginx.conf:42
  nginx: configuration file /etc/nginx/nginx.conf test failed

  โœฆ Step 2 [SAFE]  Show the problem line in context
    sed -n '38,46p' /etc/nginx/nginx.conf
  Run this step? [y/n/skip/abort]: y

  โœฆ Step 3 [MODERATE]  Fix the missing semicolon on line 41
    ...

Install

Debian / Ubuntu / Linux Mint

# Download the latest .deb from GitHub Releases, then:
sudo dpkg -i tuxgenie_5.79.0_all.deb

Download latest .deb โ†’

Any Linux distro (pip)

pip install tuxgenie

From source

git clone https://github.com/ramchandragada/tuxgenie.git
cd tuxgenie
pip install .

First run

# Set your Anthropic API key (add to ~/.bashrc to make permanent)
export ANTHROPIC_API_KEY="sk-ant-..."

# Launch
tuxgenie

Get a free API key at console.anthropic.com.


Features

You never have to pick a number โ€” just type what you need in plain English. But every capability also has a menu entry:

๐Ÿš€ Start here

# Feature What it does
1 Fix a Problem Describe any issue in plain English โ€” TuxGenie diagnoses and fixes it
2 Health Check Full dashboard: CPU, memory, disk, temps, failed services

๐Ÿ”ง Fix something

# Feature What it does
3 Internet / WiFi DNS, routing, firewall, connectivity โ€” finds the real problem
4 Sound / Audio No audio, mic not working, HDMI sound
5 Display Wrong resolution, monitor not detected
6 Bluetooth Pairing fails, device keeps disconnecting
7 Printer Setup Install a printer or fix printing problems
8 Webcam Fix Camera not detected or black screen in Zoom / Teams / Meet
9 Missing Drivers Detect & install missing WiFi / GPU / printer drivers
10 Permissions Diagnose & fix "permission denied" errors

๐Ÿ“ฆ Install & update

# Feature What it does
11 Install Software Find & install software by description
12 Check for Updates Safe upgrade analysis โ€” flags packages likely to break things
13 Upgrade OS Version Move to the latest Ubuntu / Fedora / Debian release
14 Find Linux App Find Linux equivalents of Windows / macOS apps

๐Ÿ›ก๏ธ Protect & recover

# Feature What it does
15 Security Check Harden firewall, SSH, open ports; find weak permissions
16 Backup Settings Snapshot all system configs to a .tar.gz before changes
17 Undo Changes Roll back changes TuxGenie made in a previous session

โšก Speed & maintenance

# Feature What it does
18 Performance Boost Full audit + apply all safe speed fixes
19 Disk Cleanup Find space hogs & clean up safely
20 Speed Up Boot Find why boot is slow & fix it
21 Battery & Power Improve battery life, fix overheating
22 Manage Services Optimise startup & debug systemd services

๐Ÿ“Š Inspect

# Feature What it does
23 Hardware Info Full hardware report & health check
24 Running Programs Tame CPU / memory hogs & zombie processes
25 Explain Logs Decode cryptic errors & system logs in plain English

โš™๏ธ For developers

# Feature What it does
26 Generate Script Describe a task โ†’ get a tested bash script
27 Schedule Task Create & debug cron jobs in plain English
28 Docker Help Container health, network issues, log analysis
29 SSH Setup Set up & harden SSH securely
30 Git Helper Understand diffs, fix conflicts, undo commits

๐ŸŽ One-tap catalogs

# Feature What it does
77 Install Apps One-tap catalog of 64 popular Linux apps โ€” Brave, Signal, Obsidian, Blender, Zoho Mail โ€ฆ
88 Cloud Sync Guided rclone wrapper โ€” Google Drive, Dropbox, OneDrive, S3, WebDAV from a single menu
99 AI Tools One-tap installer for Ollama, Claude Code, ChatGPT, Whisper and a local-AI starter pack

Letter shortcuts

Key Feature What it does
s Settings Configure API key and model
i Shell Integration Install the tg!! shortcut in your terminal
m Error Monitor Background daemon that notifies you on system errors
u Self-Update Check for and install the latest TuxGenie
h History Show recent tasks
f Feature Request Suggest a new feature

Safety first

TuxGenie never runs a command without your explicit approval.

Every step shows:

  • Risk level โ€” SAFE, MODERATE, or DANGEROUS (colour-coded)
  • [SUDO NEEDED] badge when root is required
  • A red warning banner for destructive commands
  • Prompt: [y / n / skip / abort] โ€” you are always in control

Commands matching dangerous patterns (rm -rf /, dd if=, mkfs, fdisk, wipefs, shred, chmod 777 /, fork bombs) are flagged regardless of what the AI says about them.


Requirements

The anthropic Python package is installed automatically on first run if missing.


How it works

You describe the problem
        โ”‚
        โ–ผ
  System context collected silently (OS, kernel, services, logsโ€ฆ)
        โ”‚
        โ–ผ
  Claude API โ†’ structured fix plan with risk levels
        โ”‚
        โ–ผ
  Each step shown with risk badge โ€” you approve or skip
        โ”‚
        โ–ผ
  Command output fed back to Claude
        โ”‚
        โ–ผ
  Claude iterates (up to 25 rounds) until resolved

One-shot mode

# Skip the menu โ€” go straight to fixing
tuxgenie "docker containers can't reach the internet"
tuxgenie "my SSH connection keeps dropping"
tuxgenie "cron job not running"

Dedicated to Linus Torvalds

TuxGenie is dedicated to Linus Torvalds โ€” creator of the Linux kernel, the greatest gift ever given to computing. His work powers servers, supercomputers, smartphones, satellites, and the entire modern internet.


License

MIT โ€” free to use, modify, and share forever.

Built with love by Aspera Technologies Pte Ltd.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tuxgenie-5.81.0.tar.gz (129.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tuxgenie-5.81.0-py3-none-any.whl (116.1 kB view details)

Uploaded Python 3

File details

Details for the file tuxgenie-5.81.0.tar.gz.

File metadata

  • Download URL: tuxgenie-5.81.0.tar.gz
  • Upload date:
  • Size: 129.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for tuxgenie-5.81.0.tar.gz
Algorithm Hash digest
SHA256 b0b9a5bb492c520bb2d3f7ab900db7d4913eb1f6a403fe79b8ebf5a984e44a85
MD5 d6cac025d00d95aba93e79dd22c77c85
BLAKE2b-256 ceec7b2520cced2baf0b86408740c60317889a2e8c61e6f2051be4a88eff6009

See more details on using hashes here.

File details

Details for the file tuxgenie-5.81.0-py3-none-any.whl.

File metadata

  • Download URL: tuxgenie-5.81.0-py3-none-any.whl
  • Upload date:
  • Size: 116.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for tuxgenie-5.81.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8faf0f10205a17b71ef897d1d43c135253b07ced9e13b8a4bd79bab16c4898bd
MD5 ed30ff3e94e4006585fc39e88033cfd7
BLAKE2b-256 ea731e3cc693da86c36aefd00384c22f1fbdeafddc3941daf4011d9f564088d1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page