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

Uploaded Python 3

File details

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

File metadata

  • Download URL: gocli_terminal-0.2.0.tar.gz
  • Upload date:
  • Size: 11.1 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.0.tar.gz
Algorithm Hash digest
SHA256 6eac9f0c77097000b0c5db368194c10767c9e838584fe60ceb4b4274e584a7ab
MD5 e4819f6c801577421902d609815af458
BLAKE2b-256 5cc7caa308ad5c7d31f7760818ef364632afcff7638772dff0f52bfa39d7331b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gocli_terminal-0.2.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6626e996fc8ba3928a714151ee580848b880033e6569b915abdde6ee07d161f4
MD5 c1b8cc29ea68e4649d5c6cb816a78580
BLAKE2b-256 e082bf262aec1069c0d2cdd06e7b641d1e9a117817522e0293d11d8613d8b5d6

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