https://github.com/antonmedv/howto
A terminal helper for querying LLM
https://github.com/antonmedv/howto
Last synced: about 2 months ago
JSON representation
A terminal helper for querying LLM
- Host: GitHub
- URL: https://github.com/antonmedv/howto
- Owner: antonmedv
- License: mit
- Created: 2025-02-11T23:39:33.000Z (2 months ago)
- Default Branch: master
- Last Pushed: 2025-02-12T00:21:04.000Z (2 months ago)
- Last Synced: 2025-02-12T01:25:47.730Z (2 months ago)
- Language: Go
- Homepage:
- Size: 380 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Security: security.go
Awesome Lists containing this project
- my-awesome-github-stars - antonmedv/howto - A terminal helper for querying LLM (Go)
README
# howto
![]()
**Howto** is a terminal helper which queries OpenAI API and inserts the result into the current terminal input.
Simply press ctrl+g to call **howto**. **Howto** replaces your command with a correct command from LLM.
## Install
```
go install github.com/antonmedv/howto@latest
```Or download [prebuild binaries](https://github.com/antonmedv/howto/releases).
### Setup
Add a key binding to **.zshrc** or a similar config:
Zsh
```bash
bindkey -s "\C-g" "\C-ahowto \C-j"
```## Usage
Write a command in terminal and press ctrl+g to send current command to OpenAI API.
LLM response will be inserted into the current input. You can **modify** the returned command,
before executing it.Recall previous command from history and to adjust the prompt.
## Related
- [walk](https://github.com/antonmedv/walk) – terminal file manager
- [fx](https://github.com/antonmedv/fx) – terminal JSON viewer## License
[MIT](LICENSE)