https://github.com/vaaski/howtf
Quickly look up console commands using the OpenAI GPT API
https://github.com/vaaski/howtf
Last synced: 4 months ago
JSON representation
Quickly look up console commands using the OpenAI GPT API
- Host: GitHub
- URL: https://github.com/vaaski/howtf
- Owner: vaaski
- Created: 2023-04-29T09:01:30.000Z (about 3 years ago)
- Default Branch: go
- Last Pushed: 2025-03-11T19:52:07.000Z (over 1 year ago)
- Last Synced: 2025-10-11T01:06:18.673Z (9 months ago)
- Language: Go
- Homepage:
- Size: 302 KB
- Stars: 1
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
howtf
Quickly look up console commands using the OpenAI GPT API
---
### Synopsis
This is a pretty simple CLI tool to help you find that command you can never
remember using the OpenAI chat completion API. This usually ends up being
faster than googling it.
Also comes with the neat advantage of being personalized to whatever you need.
Notice how in the example above, I specifically asked to modify "example.webm" and
it automatically chose "example.mp4" as the output file.
### Features
- 🔒 Securely stores your OpenAI API key in your OS keychain with [go-keyring](https://github.com/zalando/go-keyring)
- 🙈 Lets you inspect the generated command before executing or copying it
- 💪 Lets you describe your command as arguments or interactively to avoid escaping special characters
- ⁉️ Can explain what any command does
- 💅 Comes with a beautiful Terminal User Interface
- 🆖 Cross-platform compatible
### Installation
Install using `go install` (requires [Go](https://go.dev/doc/install)):
```bash
go install github.com/vaaski/howtf@go
```
Run the interactive configuration wizard to set your OpenAI API key:
```bash
howtf -config
```
### Usage
```bash
howtf [command]
```
### Examples
Interactive mode:

Config page: