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.1.tar.gz (11.0 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.1-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gocli_terminal-0.2.1.tar.gz
  • Upload date:
  • Size: 11.0 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.1.tar.gz
Algorithm Hash digest
SHA256 612c5be19f830dafd68b7c6c9ddc20e8befbcef1016ecafcbd99be70b5f84d8f
MD5 2dcf0548343ec13a576450a10d2c6fbf
BLAKE2b-256 226b656cac91375ccae7c06706fe8f92d2537854b1b0e0013d0ea43f02945596

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gocli_terminal-0.2.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6bbe3112c28fc50bc74072c353bee8a07acdc5980672af82cfc8001dfdb3ed4f
MD5 0657cdd167f9ca7df16180e5d392551c
BLAKE2b-256 96202b002342ea3e6528a6466881af7ae3b154288aee60f1f9269a560e54c493

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