Skip to content

forkwork/gpt4cli

 
 

Repository files navigation

🌟 What is GPT4CLI?

GPT4CLI is a powerful and developer-friendly AI coding agent for your terminal. It helps you:

✅ Automate repetitive coding tasks ⚡
✅ Generate, modify, and review code 🧠
✅ Debug and optimize existing projects 🔍
✅ Understand unfamiliar technologies faster 🚀


📥 Install

curl -sL https://raw.githubusercontent.com/khulnasoft/gpt4cli/main/app/cli/install.sh | bash

Windows Support: Use WSL for proper functionality.

🔗 More Installation Options


🚀 Get Started

1️⃣ Set up API Key (OpenAI or compatible provider):

export OPENAI_API_KEY=your-api-key

2️⃣ Navigate to your project directory:

cd your-project-dir

3️⃣ Start GPT4CLI:

gpt4cli new

4️⃣ Load files & context:

gpt4cli load src/components -r  # Load a directory

5️⃣ Send a prompt:

gpt4cli tell "Generate a Python script to scrape news headlines."

📖 Full Quickstart Guide


🛠️ Features

AI-powered Coding - Automate software development tasks
Sandbox Mode - Review changes before applying them
Multi-Language Support - Use OpenAI, Anthropic, Google Gemini, Mixtral, and more
Context-Aware - Load files, URLs, or images directly into context
Cross-Platform - Supports Mac, Linux, FreeBSD, and Windows (via WSL)


📚 Why GPT4CLI?

🔄 No More Copy-Pasting - Direct AI-powered coding in your terminal
💡 Intelligent Context Management - Ensure LLMs have the latest project state
📂 Version Control & Rewind - Iterate and retry until satisfied
🌱 Branching Support - Explore multiple approaches in parallel
🎛️ Customizable Models & Settings - Experiment with different models & configurations


🗺️ Roadmap

Multi-modal support - Add images & screenshots to context
Support for OpenAI, Claude, Gemini, Mixtral, and more
🔜 VSCode & JetBrains Extensions
🔜 Community Plugins & Modules
🔜 GitHub & Web Dashboard Integration

🚀 Have suggestions? Join our Discussions


💬 Community & Support

📢 Join us on Discord: Khulnasoft Discord
💬 Discuss & Collaborate: GitHub Discussions
🐛 Report Issues: GitHub Issues


👥 Contributors

Star, Fork & Contribute! GPT4CLI is open-source and welcomes contributions.

🔗 Setup Development Environment

💖 Big thanks to all our contributors!


Packages

No packages published

Languages

  • Go 93.3%
  • Shell 1.1%
  • TypeScript 0.6%
  • PLpgSQL 0.4%
  • C 0.4%
  • Elixir 0.3%
  • Other 3.9%