Skip to content

princejoogie/chatgpt-cli

Repository files navigation

chatgpt-cli

ChatGpt in your terminal

pwsh_dVWwkFR8TQ

Usage

Generate an API key -> https://platform.openai.com/account/api-keys

# .bashrc or .zshrc
export OPENAI_API_KEY=your-api-key
# this environment variable is used as authentication in openai's api endpoints
$ npm install -g @princejoogie/chatgpt-cli
$ gpt # this is the bin when installing the package globally

Todo

  • Response streaming
  • Conversation history
  • Model change (default gpt-3.5-turbo)

Develop

$ pnpm install
$ pnpm dev   # terminal 1
$ pnpm start # terminal 2

Made with ☕ by Prince Carlo Juguilon