An open API service indexing awesome lists of open source software.

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

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: