@princejoogie/chatgpt-cli
TypeScript icon, indicating that this package has built-in type declarations

0.3.4 • Public • Published

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

  • [x] 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

/@princejoogie/chatgpt-cli/

    Package Sidebar

    Install

    npm i @princejoogie/chatgpt-cli

    Weekly Downloads

    3

    Version

    0.3.4

    License

    MIT

    Unpacked Size

    6.41 kB

    Total Files

    5

    Last publish

    Collaborators

    • princejoogie