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 v3.9 โ€” 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_3.9.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

# Feature What it does
1 Fix my problem Describe any issue in plain English โ€” TuxGenie diagnoses and fixes it
2 System Health Full health dashboard: CPU, memory, disk, temps, failed services
3 Network Diagnostics DNS, routing, firewall, connectivity โ€” finds the real problem
4 Security Audit Checks open ports, failed logins, weak permissions, exposed configs
5 Disk Management Finds space hogs, cleans safely, analyses usage
6 Service Control Manage and debug systemd services with AI explanations
7 Log Analyser Parses journals and log files, explains errors in plain English
8 Update Advisor Safe upgrade analysis โ€” flags packages likely to break things
9 Script Generator Describe what you want, get a tested bash script
10 Cron Scheduler Create and debug cron jobs with natural language
11 Permission Fixer Diagnoses and fixes broken file permissions
12 Boot Repair Diagnoses boot failures, GRUB issues, kernel panics
13 Docker Manager Container health, network issues, log analysis
14 SSH Diagnostics Key auth, config issues, connectivity debugging
15 Process Manager Find CPU/memory hogs, diagnose runaway processes
16 Config Backup Safe backup of system configs before changes
u Self-Update Type u to check for and install the latest TuxGenie

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 6 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.49.2.tar.gz (79.7 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.49.2-py3-none-any.whl (78.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for tuxgenie-5.49.2.tar.gz
Algorithm Hash digest
SHA256 62c9bde8c0f89bf0237fec5c746d7e9d44e747eb6abb36604ad911cd69c57a1a
MD5 b7656ee4897cc1ace67a3ded42b0391a
BLAKE2b-256 c5d9814143ce51b54bc20c7774edc2757e4a9c55c7c47a2f8cef0db1a8da24b5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tuxgenie-5.49.2-py3-none-any.whl
  • Upload date:
  • Size: 78.0 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.49.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a056b2080787e6c8b5ac79701b9f7c7eb1d1adff8980b5e1ec5d5b724d7928b0
MD5 1975d726f9ff9ca218c66250e4a0154e
BLAKE2b-256 2deef517d5f5279505fda0fd9debc3041feeba12e9c11577ad8498ad2304ebb2

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