Skip to content

💻 Small CLI tool for hitting the OpenAI API

Notifications You must be signed in to change notification settings

kim-knudsen/pugkin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

💻 pugkin

Small CLI tool for hitting the OpenAI API. Written in TypeScript using Bun as runtime.

Installation

bun install
bun link

Usage

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

TODOS

  • Support maxTokens
  • Improve logging
  • Memory/session support
  • Display tokens used/price
  • Support input and output files

About

💻 Small CLI tool for hitting the OpenAI API

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published