Small CLI tool for hitting the OpenAI API. Written in TypeScript using Bun as runtime.
bun install
bun link
Running the base command will start an interactive session with all output going to stdout. If this is the initial run, you'll be prompted to setup your configuration, i.e. specifying your OPENAI_API_KEY
etc.
pugkin
You may also provide a prompt text file and specify output directly.
pugkin chat -i prompt.txt -o response.txt
For any addtional commands and options, use the help switch.
pugkin -h
- Support
maxTokens
- Improve logging
- Memory/session support
- Display tokens used/price
- Support input and output files