GitHub - falsa-dev/chatrun: Use any CLI with natural language

1 min read Original article ↗

chatrun

Use any CLI with natural language.

cover image showing a keyboard and a chat bubble

chatrun is a CLI tool that allows you to interact with any CLI using natural language. It uses OpenAI's GPT to convert your natural language query into a CLI command. It uses CLI man pages or help text to generate the command, so it is not limited to its implicit knowledge. This makes it useful for novel or less popular CLIs.

Pre-requisites

Export OPENAI_API_KEY in your environment.

export OPENAI_API_KEY=sk-...

Installation

Usage examples

List all packages installed with brew.

chatrun --run "brew" --chat "list all packages"

Find all commits from yesterday.

chatrun --run "git" --chat "find all commits from yesterday"