Skip to main content

Terminal error detection and auto-fix assistant. Detects errors in your shell, queries AI for a fix, applies it if you confirm.

Project description

goCLI

Terminal error detection and auto-fix assistant. Runs silently alongside your shell, detects errors in command output, queries AI for a fix, and applies it if you confirm.

Works on Windows, macOS, and Linux.


Install

Python

pip install gocli-terminal

Go — macOS / Linux

curl -fsSL https://raw.githubusercontent.com/nopedal/gocli-install/main/install.sh | sh

Go — Windows (PowerShell)

irm https://raw.githubusercontent.com/nopedal/gocli-install/main/install.ps1 | iex

No Go installation required for the Go version. The scripts download a pre-built binary for your platform.


Configure

Set your Gemini API key:

# macOS / Linux
export GOCLI_API_KEY="your-api-key"

# Windows (cmd)
set GOCLI_API_KEY=your-api-key

# Windows (PowerShell)
$env:GOCLI_API_KEY = "your-api-key"

A default key is bundled for testing. Replace it with your own for production use. Get one free at https://aistudio.google.com/apikey


Use

gocli

Use it like a normal terminal. When a command fails and an error pattern is recognised, goCLI queries the AI and shows:

  goCLI  detected an error
         fix  pip install requests
         run? [Y/n]

Press Enter or Y to apply the fix. N to skip. Type exit to leave.


Auto-start

To launch goCLI automatically on every new terminal session:

macOS / Linux — add to .bashrc or .zshrc:

if command -v gocli &> /dev/null && [ -z "$GOCLI_ACTIVE" ]; then
    export GOCLI_ACTIVE=1
    exec gocli
fi

Windows — add to your PowerShell profile ($PROFILE):

if ((Get-Command gocli -ErrorAction SilentlyContinue) -and -not $env:GOCLI_ACTIVE) {
    $env:GOCLI_ACTIVE = "1"
    gocli
    exit
}

Error detection

Recognises out of the box:

  • Python missing module / import / traceback errors
  • Node.js missing package errors
  • Permission denied errors
  • Command not found (including Windows "not recognized" errors)
  • Port already in use
  • Docker errors
  • Git errors
  • Rust compiler errors

License

MIT

Project details


Download files

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

Source Distribution

gocli_terminal-0.2.2.tar.gz (11.2 kB view details)

Uploaded Source

Built Distribution

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

gocli_terminal-0.2.2-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file gocli_terminal-0.2.2.tar.gz.

File metadata

  • Download URL: gocli_terminal-0.2.2.tar.gz
  • Upload date:
  • Size: 11.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for gocli_terminal-0.2.2.tar.gz
Algorithm Hash digest
SHA256 ab8f79c5e4b4b98babf8ac0e01d0eb6ce36345215c196b50b949ef787ab07d83
MD5 c6c5bc6b35842398cdee3e3597050019
BLAKE2b-256 4ce698656b90914d394e7e64a8a7f1246dd15f61a6a659418de30760fb22e551

See more details on using hashes here.

File details

Details for the file gocli_terminal-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: gocli_terminal-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for gocli_terminal-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 cb212a14f98edbaf2426f31348be6b72165d3ea2dd032a2cc13e92795b6d74d1
MD5 880bcab57fbc86b509e6bd4be4ba5849
BLAKE2b-256 da26e761b5f9cebcbd2d86f524968a4a18b14ab822f4cdf0a5799e997b50146d

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