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.3.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.3-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gocli_terminal-0.2.3.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.3.tar.gz
Algorithm Hash digest
SHA256 651d94782e8b44b923d5888f4cbc739c042f7c4af6df4f94b32354c2afe5f5eb
MD5 060e5b28571c813e6b0ebc17ecfe37e4
BLAKE2b-256 4f7bfb1b792475886a3f65bce75cad29d2498129eb7bff6fa0e94353d1acffa3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gocli_terminal-0.2.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 57db030ec43dfef115d12db00380082ed9646a102f25468b6927f0b443f1889e
MD5 ae8e0353a3f32359f7c63626ba3eff78
BLAKE2b-256 0853eb36d87d21cadf77e763b9f2d87401cea1933c6b14384f4aa66266f8af9f

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