Developer GPT CLI Toolkit
# 🧠 Developer GPT CLI Toolkit
A powerful, no-UI toolkit for developers who want to use the magic of ChatGPT directly in the terminal.
This package includes 5 command-line tools, all powered by the OpenAI API. No need for web interfaces, no distractions — just type, run, and get results.
---
## 📦 What’s Inside?
| Tool | Description |
|--------------|-------------|
| translate.js
| Translate any text into another language with natural-sounding output |
| commit.js
| Generate clean, professional Git commit messages |
| keywords.js
| Extract SEO-friendly keywords from any content |
| summary.js
| Summarize Markdown files into clear, concise overviews |
| review.js
| Review your JavaScript code and get suggestions for improvement |
---
## 💻 Who is this for?
- Developers
- Technical writers
- Content creators
- Power users who live in the terminal
- Anyone who wants to supercharge their workflow with ChatGPT
---
## ⚙️ Prerequisites
Before using this toolkit, make sure you have the following installed on your computer:
### ✅ 1. [Node.js](https://nodejs.org/)
> Minimum version: v16 or above
You can check your version with:
```bash
node -v
```
If you don’t have Node.js, install it from [https://nodejs.org/](https://nodejs.org/)
### ✅ 2. An OpenAI API Key
You’ll need your own [OpenAI API key](https://platform.openai.com/account/api-keys) to use the GPT models.
It takes 2 minutes to sign up.
- Go to https://platform.openai.com/
- Sign in (or create an account)
- Go to “API Keys” from the user menu
- Click “+ Create new secret key”
- Copy the key (starts with sk-...
)
---
## 🔧 Setup
### Step 1: Download and unzip the toolkit
Download the .zip
file you received after purchase and extract it anywhere on your computer.
For example:
- On Windows: right-click → "Extract All"
- On macOS: double-click the zip file
- On Linux: use unzip
in terminal
After extracting, open your terminal and navigate into the folder:
```bash
cd gpt-cli-toolkit
```
---
### Step 2: Install dependencies
Only one dependency is required (the official OpenAI client):
```bash
npm install
```
This installs what's in the package.json
, including:
```json
"dependencies": {
"openai": "^4.0.0"
}
```
---
### Step 3: Add your OpenAI API key
1. Copy the example config:
```bash
cp config.example.json config.json
```
2. Open config.json
in a text editor
3. Replace the placeholder value with your real API key:
```json
{
"openai_api_key": "sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
}
```
> ⚠️ Never share your API key publicly.
---
## 🚀 Usage
All tools are run via terminal using Node.js.
You open your terminal, navigate into the toolkit folder, and run one of the following commands:
### 🌍 1. Translate text to another language
```bash
node tools/translate.js "Merhaba dünya" --to en
```
> Output: Hello world
You can change --to en
to any supported language code (e.g. fr
, de
, tr
, es
, ja
).
---
### 🔧 2. Generate a clean Git commit message
```bash
node tools/commit.js "fixed login bug and cleaned up code"
```
> Output: fix: resolve login bug and clean up redundant logic
---
### 🔍 3. Extract SEO keywords from a sentence or paragraph
```bash
node tools/keywords.js "AI tools are changing how developers write, debug, and test code."
```
> Output: ai tools, developer productivity, code automation, test automation
---
### 📄 4. Summarize a Markdown (.md) file
```bash
node tools/summary.js ./README.md
```
> Output: A clear 2–3 sentence summary of the file's main content.
---
### 🧪 5. Review a JavaScript file and get suggestions
```bash
node tools/review.js ./sample.js
```
> Output: Suggestions about naming, readability, maintainability, and possible bugs.
---
### ℹ️ What happens behind the scenes?
Each tool:
- Loads your API key from config.json
- Sends a well-crafted prompt to the OpenAI API
- Receives a smart, natural response
- Displays the output right in your terminal
---
## 📌 Notes
- This project uses the GPT-3.5 Turbo model by default.
- You can upgrade to GPT-4 by changing the model name in the scripts.
- Your API usage is billed by OpenAI, not by this tool.
- Your data is never collected — everything runs locally except the GPT API call.
---
## 🙋 FAQ
### Q: Will this work on Windows, macOS, and Linux?
Yes. As long as Node.js is installed, it works everywhere.
### Q: Is this tool free to use?
Yes — but you pay for GPT usage directly via your OpenAI account.
### Q: Can I modify the tools?
Absolutely. All scripts are open and can be adapted as you wish.
---
## 📝 License
MIT — use it freely, modify it, sell it, improve it.
A set of 5 GPT-powered CLI tools: translate, commit, summarize, keyword extract, and code review.