Skip to content

ayak002/demoIAscript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

12 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🧠 OpenAI CLI Chat

A simple TypeScript-based Node.js script that lets you chat with OpenAI's API directly from your terminal β€” no client, no server, just pure local testing.


πŸš€ Features

  • Interactive CLI interface
  • Sends messages to OpenAI's Chat API (gpt-3.5-turbo or custom model)
  • Graceful exit with exit, quit, or q
  • Easy to extend and hack

πŸ›  Requirements

  • Node.js (v16+)

  • ts-node and typescript

  • OpenAI API key

  • Create a .env file in the root:

OPENAI_API_KEY=your-openai-key-here

πŸ“¦ Install

git clone git@github.com:ayak002/demoIAscript.git

cd openai-cli-test

npm install

RUN

ts-node Ask.ts

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors