ChatGPTerminator
GPTerminator provides a convenient way to interact with OpenAI's chat completion and image generation API's using your command line interface.
Install / Use
/learn @AineeJames/ChatGPTerminatorREADME
Features :sparkles:
- :mag: Chat completion
- :floppy_disk: Save and load chat sessions
- :bar_chart: File analysis
- :art: Image generation with Dalle
- :clipboard: Easy code and text copying using
- :repeat: Regeneration of responses
Getting Started & Installation :rocket:
To use this terminal interface, follow these steps:
1) Install GPTerminator
git clone https://github.com/AineeJames/ChatGPTerminator
cd ChatGPTerminator
pip install .
or
pip install gpterminator
2) Set the OPENAI_API_KEY env variable (you may want this in your shell's .rc file):
export OPENAI_API_KEY=<YOUR_API_KEY>
3) Start GPTerminator by running one of the following commands:
gpterm
# or
gpterm <input> # ex: gpterm write a hello world function in Python
4) Type !help for a list of commands to use
Running with podman/docker (optional) :package:
Build the image and provide the APIKEY
podman build \
--build-arg APIKEY=$(echo $OPENAI_API_KEY) \
-t gpterm .
Run gpterm in the container
podman run -it --rm --name gpterm gpterm
Set an alias for easy access
echo "alias gpterm='podman run -it --rm --name gpterm gpterm'" >> ~/.bashrc
Commands :exclamation:
- Power up you chat experience with commands!
- By typing
!helpyou can view all the possible commands along with a short description. - Please check out the wiki for more detailed help with commands!
Configuration :gear:
The config.ini configuration resides in different locations depending on your OS. In order to find the path, run gpterm and then enter !pconf.
GPTerminator is configurable and can support multiple configurations. Add the following to your config.ini:
[CONFIG_TEMPLATE]
ModelName =
SystemMessage =
Temperature =
PresencePenalty =
FrequencyPenalty =
CommandInitiator =
SavePath =
CodeTheme =
| Setting | Description | Default |
| -------------------- | -------------------------------------------------------------- | ---------------------------------------------- |
| ModelName | this is the model used when chatting | gpt-3.5-turbo |
| Temperature | between 0 and 2 | 1 |
| PresencePenalty | between -2 and 2 | 0 |
| FrequencyPenalty | between -2 and 2 | 0 |
| SystemMessage | this is the starting system message sent to the API | You are a helpful assistant named GPTerminator |
| CommandInitiator | this can be set to change the default ! structure | ! |
| SavePath | this changes the location of the save path when loading/saving | (default save path) |
| CodeTheme | this changes the Pygments theme of code blocks | monokai |
Note More details on some settings can be found here
Note Valid color schemes can be found here
Note If you change the
CommandInitiator, you will now type<new-command>to execute commands...
After saving the config file, run gpterm, then enter !setconf and select which config you wish to use. You can also run the !pconf command to view the current config details.
Contributing :raised_hands:
Current Contributors:
<a href="https://github.com/AineeJames/ChatGPTerminator/graphs/contributors"> <img src="https://contrib.rocks/image?repo=AineeJames/ChatGPTerminator" /> </a>We welcome contributions to this project. If you find a bug, have a feature request, or want to contribute code, please open an issue or submit a pull request.
Disclaimer :warning:
Warning This program uses the OpenAI API to chat and generate images using DALL·E. It is a good idea to put a usage cap on your billing, just in case something goes wrong!
Related Skills
qqbot-channel
346.8kQQ 频道管理技能。查询频道列表、子频道、成员、发帖、公告、日程等操作。使用 qqbot_channel_api 工具代理 QQ 开放平台 HTTP 接口,自动处理 Token 鉴权。当用户需要查看频道、管理子频道、查询成员、发布帖子/公告/日程时使用。
claude-opus-4-5-migration
107.6kMigrate prompts and code from Claude Sonnet 4.0, Sonnet 4.5, or Opus 4.1 to Opus 4.5
docs-writer
100.1k`docs-writer` skill instructions As an expert technical writer and editor for the Gemini CLI project, you produce accurate, clear, and consistent documentation. When asked to write, edit, or revie
model-usage
346.8kUse CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
