Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jonwatkins/gpt-term
Run ChatGpt in your terminal
https://github.com/jonwatkins/gpt-term
chatgpt cli nodejs openai
Last synced: about 2 months ago
JSON representation
Run ChatGpt in your terminal
- Host: GitHub
- URL: https://github.com/jonwatkins/gpt-term
- Owner: JonWatkins
- License: mit
- Created: 2023-08-04T21:43:13.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-08-09T00:48:48.000Z (over 1 year ago)
- Last Synced: 2024-11-01T14:40:48.767Z (2 months ago)
- Topics: chatgpt, cli, nodejs, openai
- Language: TypeScript
- Homepage: https://jonwatkins.github.io/gpt-term/
- Size: 1.65 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/JonWatkins/gpt-term/main.yml) ![npm](https://img.shields.io/npm/v/gpt-term) ![GitHub](https://img.shields.io/github/license/JonWatkins/gpt-term) [![codecov](https://codecov.io/gh/JonWatkins/gpt-term/branch/main/graph/badge.svg?token=CZ8QB5X8S5)](https://codecov.io/gh/JonWatkins/gpt-term)
# GPT-Term
CLI application for interacting with ChatGPT. Checkout the [documentation](https://jonwatkins.github.io/gpt-term/) for more information.
### Usage
You will need to have your own [OpenAI](https://platform.openai.com) apikey.
The first time you use the chat function it will prompt you for your key if one was not found. The key
will be encrypted and stored in a text file on your machine.```bash
npm i -g gpt-term
gpt-term chat --engine gpt-3.5-turbo --temperature 0.5 --max-tokens 2048
```### Removing your API Key
```bash
gpt-term removekey
```## Using with npx
```bash
npx gpt-term chat --engine gpt-3.5-turbo --temperature 0.5 --max-tokens 2048
````npx` downloads `gpt-term` to it's cache, to remove it run
```bash
rm -r ~/.npm/_npx/*/node_modules/gpt-term
```