Skip to main content

terminal-help-app

Provides command-line tool help to write terminal commands for you using natural language powered by ChatGPT.

You must provide an OpenAI API token via the environment variables TERMINAL_HELP_OPENAI_API_KEY or OPENAI_API_KEY. You can create an OpenAI key here: https://platform.openai.com/api-keys

Example

Here's an example interaction:

[~] help
[question] list files modified the past day (not recursive)
[chatgpt] use "find" with the right flags.
[code] find . -maxdepth 1 -type f -mtime -1
./.DS_Store
./.localrc
./.zsh_history
./.zcompdump
./Brewfile
./.viminfo

Installation using uv

You can install terminal-help-app using uv by adding an alias in your shell configuration (~/.bashrc, ~/.zshrc, etc.):

alias help="uvx --from=terminal-help-app help"
# You can alias `help` to whatever you would like

Install uv

If you don't have uv installed, here's a quick setup:

curl -LsSf https://astral.sh/uv/install.sh | sh

You can read more about installing uv here:
https://docs.astral.sh/uv/getting-started/installation/

Alternative install with pipx

Alternatively you can install using pipx by doing:

pipx install terminal-help-app

This will add command-line utility help.

You can learn more about install pipx here:
https://pipx.pypa.io/stable/installation/

Environment Variables

TERMINAL_HELP_OPENAI_API_KEY or OPENAI_API_KEY

Set your OpenAI key in your shell configuration (~/.bashrc, ~/.zshrc, etc.):

export OPENAI_API_KEY="your-key-here"

# Optionally specifically the OpenAI Key for this tool only
export TERMINAL_HELP_OPENAI_API_KEY="your-key-here"

You can create an OpenAI key here: https://platform.openai.com/api-keys

TERMINAL_HELP_MODEL

Specify the model you would like to use; the default is gpt-4o-mini.

TERMINAL_HELP_CONFIG_PATH

You can override the config directory using the environment variable:

export TERMINAL_HELP_CONFIG_PATH="/path/to/your/config"
# Default is ~/.config/terminal_help

History & Prompt Cache Paths

Configuration and history files are stored by default in:

  • Config Directory: ~/.config/terminal_help
  • Prompt Cache: ~/.config/terminal_help/db.sqlite3
  • Question History: ~/.config/terminal_help/question_history
  • Shell History: ~/.config/terminal_help/code_history

License

MIT

Metadata

Release files for terminal-help-app 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for terminal-help-app 0.1.0
File Size Uploaded
terminal_help_app-0.1.0.tar.gz 53.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for terminal-help-app 0.1.0
File Interpreter ABI Platform
terminal_help_app-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 63.2 kB

Release files / terminal_help_app-0.1.0.tar.gz

Download URL terminal_help_app-0.1.0.tar.gz
Size 53.6 kB
Tags Source
SHA-256 checksum
How to use checksums
9ea6837b2e870bf9045d5a04f60da3d61baf0403e0741c82934a20749b98e53a
BLAKE2b-256 checksum
How to use checksums
6dbddb2974bb97965e74fc9e7614d99a33b20ce2c404cdc5dca6d2b49b670a59
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.6.4

Release files / terminal_help_app-0.1.0-py3-none-any.whl

Download URL terminal_help_app-0.1.0-py3-none-any.whl
Size 9.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
323ef330e15288cc3c51917d2b93cbf584128b1715399c0e2f81d9ea19851d2e
BLAKE2b-256 checksum
How to use checksums
1f6907b6388b0e02ca97497aa965386b80bf0d2ee6640d46c505f1111f92c14c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.6.4

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page