@5x/command-ai
v1.0.3
Published
AI in command line, powered by OpenAI
Downloads
7
Maintainers
Readme
command-ai
command-ai is a command-line interface application that uses OpenAI's language models to generate text based on user input.
This document is generated by ChatGPT :P .
Installation
Install from npm
To install command-ai from npm, run the following command:
npm install -g @5x/command-ai
Download Binary
Alternatively, you can download pre-built binaries for Linux, macOS, and Windows from the GitHub releases page.
Usage
command-ai can be used in the following ways:
To add an access token to the configuration file, run:
command-ai --add-token <token>
To send a prompt and return the generated text, run:
command-ai --prompt "Hello, how are you?"
To get today fate of the developer (?), run:
command-ai --fate
Result:
To remove an access token from the configuration file, run:
openai --remove-token
Configuration
Access tokens are stored in a configuration file located at ~/.command-ai-config.json
.
Dependencies
command-ai has the following dependencies:
commander
openai
License
This project is licensed under the MIT License. See the LICENSE file for details.