Gpt Shell
Bring Chat-GPT to the console. Unleash the power of the OpenAI API directly in the terminal.
Install / Use
npx skills add ebenjs/gpt-shellInstalls into whichever agent you are using.
README
The app is a command line client for chat gpt. It allows users to ask gpt questions and receive responses directly in the console. Written in nodejs.
<!-- Table of contents section here. -->Table of Contents
Prerequisites
gpt-shell is a command line tool that can be installed on any operating system. However, it requires any recent version of Node.js to be installed.
<!-- Installation section here. -->Installation
Choose your preferred installation method below. Unix based systems (Linux, macOS) users can install gpt-shell via the command line with the following scripts:
Automatic install on debian based distros
curl -s https://raw.githubusercontent.com/ebenjs/gpt-shell/main/install-scripts/install-script-deb.sh | sudo bash
Manual install from sources
Common steps
git clone https://github.com/ebenjs/gpt-shell.git
cd gpt-shell
npm install
Linux and MacOS
cp .env.example .env
sudo chmod +x index.js
ln -s "$(pwd)/index.js" /usr/local/bin/gpts
Windows
On windows, first you need to copy the .env.example file to .env.
copy .env.example .env
Then you need to create a gpts.cmd file in C:\Windows\System32 with the following content:
@echo off
node "C:\path\to\gpt-shell\index.js" %*
<!-- Usage section here. -->
Usage
gpts ask -p "What is the meaning of life?"
Configuration
gpts config -k YOUR_API_KEY -m MODEL_NAME -u API_URL
-k or --key is your openai api key.
-m or --model is the model name to use. Default is gpt-3.5-turbo.
-u or --url is the url of the gpt server. Default is https://api.openai.com/v1/chat/completions.
The configuration command is needed only once. It will create a .gpt-shell-config.json file in current directory. You can edit this file manually if you want to change the configuration.
Contributing
Contributions are welcome. Please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
For more information, please refer to the contributing guidelines.
Related Skills
node-connect
385.6kDiagnose OpenClaw Android, iOS, or macOS node pairing, QR/setup code, route, auth, and connection failures.
blender-python-addon
40.5kBlender Python add-on rules for operators, panels, properties, registration, testing, and API-safe scripting
flutter-development-guidelines-cursorrules-prompt-file
40.5kCursor rules for Flutter development with MVVM architecture, Riverpod state management, Material widgets, and Dart style guidelines.
commit-push-pr
140.7kCommit, push, and open a PR
