chatrun
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

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

npm install -g chatrun

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"

Readme

Keywords

Package Sidebar

Install

npm i chatrun

Weekly Downloads

3

Version

1.0.1

License

MIT

Unpacked Size

13.4 kB

Total Files

6

Last publish

Collaborators

  • sarimabbas