Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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
```