Gptcli
🔥 All-in-one ChatGPT CLI - Build custom AI tools like GitHub Actions. Features AI commit, natural language commands, translation, and gitmoji. Create powerful CLI tools in seconds, bridging natural language and structured data.
Install / Use
/learn @JohannLai/GptcliREADME
GPT CLI is a command-line interface tool that allows you to create your own ChatGPT CLI tools in seconds. It's as simple as creating a GitHub Actions workflow. With GPT CLI, you can customize your CLI tools to suit your needs and make your work more efficient.
<img src=".github/commit.gif" alt="commit-plugins" style="border-radius: 20px">Note: ALL the commit message is wrote by this plugin, awesome!
🚀 Features
- All in one ChatGPT CLI
- Create custom ChatGPT CLI tools in seconds
- Customize your CLI tools to suit your needs
- Easy to install and use
🔧 Installation
You can install GPT CLI using npm or brew:
npm
To run this CLI tool, you need to have **Node.js version 16+ **, recommended to use nvm to manage node version.
npm install -g @johannlai/gptcli
brew(WIP)
brew install johannlai/tap/gptcli
Setup alias convenience commands
These will add the commands to your shell, but only for the current session. To make them available in all future sessions, you should add the above command on a line by itself to the bottom of your .zshrc or .bashrc or equivalent.
eval "$(gptcli alias)"
NOW, you can use ?? to start AI Command
$ ?? "show all js files in the current folder"
> AI is thinking...
# then you will see the result
> ls -al | grep .js
# chat?
$ chat?
👽: Hi, I am ChatGpt, I can answer your questions. Ask me anything, or say "bye" to exit.
? 🫣 how git diff --cached add EXCLUDE
# translate : t? "hello world"
$ t? "hello world"
> 你好,世界
# for more plugins, please check the plugins section
🧰 Built-in Plugins
GPT CLI comes with a variety of built-in plugins to help you get started. Here's a table of the current built-in plugins:
| Plugin | Description | Usage |
| ----------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------ |
| chat | The chat plugin enables real-time interaction with the ChatGPT model directly in the terminal, allowing users to chat and get answers quickly and efficiently. | gptcli chat <br/>(alias chat?) |
| command | The command plugin allows users to describe their desired command in natural language, and then outputs the corresponding plugin to fulfill the user's request. For example, if the user inputs "show all js files in the current folder", the plugin will output the corresponding plugin to display all the .js files in the current folder. This plugin makes it easier for users to find and utilize the appropriate plugins for their needs. | gptcli command "write a command to list all js file" <br/>(alias ??) |
| translate | The translate plugin allows users to easily translate text within the terminal. By using this plugin, users can input any text they want to translate, choose their desired target language, and the plugin will output the translated text in the terminal. This plugin makes it more convenient for users to translate text without having to switch to a separate application or window. | gptcli translate "你好" --to en <br/>(alias t?) |
| commit | The commit plugin allows users to generate a Git commit message automatically by simply entering gptcli commit in the terminal. The plugin will use the content from the Git diff to create a suitable commit message, making it easier for users to commit changes without having to manually craft a commit message themselves. This plugin helps streamline the Git commit process and saves users time and effort. All the commit message is wrote by this plugin, awesome!! Inspired By aicommit | gptcli commit <br/>(alias commit?) |
| gitmoji | The gitmoji plugin allows users to generate Git commit messages in the gitmoji format by using the command "gptcli gitmoji" followed by a brief description of the commit, such as "fix a bug". This plugin utilizes emojis to provide visual representations of the type of commit being made(e.g: 🐛 fix a bug), making it easier for users to categorize and understand the purpose of each commit. 🎉🚀👍 | gptcli gitmoji "fix a bug" |
| cz | the cz plugin is the cz-cli plugin for ChatGPT. You can input the commit message, and cz plugin help you transform it into cz style(fix: fix a bug) | gptcli cz "fix a bug" |
| weather | The weather plugin allows users to check the weather in any city with Natural language, it will generate a curl command to curl wttr.in , and show the weather information in the terminal | gptcli weather "Hongkong weather" |
| notion | [WIP] | gptcli notion create xxx |
| whisper | [WIP]The whisper plugin will run whisper in loc
Related Skills
node-connect
344.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
96.8kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
344.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
344.1kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
