AI-powered terminal - press Shift twice for assistance
Project description
Goosh
A terminal emulator with integrated AI assistance. Press Shift twice quickly to get AI help with your current command or task.
Features
- Full terminal emulation with ANSI color support
- AI assistance via Shift+Shift
- Context-aware command suggestions
- Works with bash, zsh, fish, and other shells
Installation
uv pip install -e .
# Or use uvx
uvx terminal-ai
Configuration
Set at least one API key:
export OPENROUTER_API_KEY=sk-...
# or
export ANTHROPIC_API_KEY=sk-...
# or
export OPENAI_API_KEY=sk-...
Optional configuration:
export LLM_MODEL=anthropic/claude-sonnet-4 # default
export AUTO_ENTER=false # auto-press Enter after AI types
Usage
-
Launch the terminal:
terminal-ai
-
Use it like a normal terminal
-
When you need help:
- Press Shift twice quickly
- Type what you want (e.g., "fix this command" or "list python files")
- AI will type the command for you
- Review and press Enter
Examples
Fix a typo:
$ gti status
bash: gti: command not found
[Shift+Shift] → "fix it" → git status
Complete a command:
$ git commit -m "
[Shift+Shift] → "add auth system" → git commit -m "Add user authentication system"
Generate a new command:
$
[Shift+Shift] → "find python files" → find . -name "*.py"
How It Works
- terminal.py: PTY management and terminal emulation
- gui.py: Tkinter UI with color rendering
- ai.py: LLM integration for command suggestions
The AI sees your current screen and command buffer, understands what you're trying to do, and types the appropriate command.
Requirements
- Python 3.11+
- macOS or Linux (PTY-based)
- LLM API key (OpenRouter, Anthropic, or OpenAI)
License
MIT
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file goosh-0.1.0.tar.gz.
File metadata
- Download URL: goosh-0.1.0.tar.gz
- Upload date:
- Size: 13.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e791ff83525c975c12e56277b94c016b8466f609f52a700ba34f3feb2bca39f4
|
|
| MD5 |
2f978e142d767b43a36e3793f508d69a
|
|
| BLAKE2b-256 |
2443b6c1d0016ec97bd2d2af4313585aa8392129dd18e262d6f997faa20e7548
|
File details
Details for the file goosh-0.1.0-py3-none-any.whl.
File metadata
- Download URL: goosh-0.1.0-py3-none-any.whl
- Upload date:
- Size: 13.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1a314f0ab274cce92e608b6d356f49f6d86a66f816c7c29aa29b369fdc4aa424
|
|
| MD5 |
bd1bee8828ce5da41746cd1f276cb5ee
|
|
| BLAKE2b-256 |
a5dfdbc0b901ab2d48cc50b56e8b3ae32e01f28586ef3b68a8e84ee4e969ba98
|