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 🚀
curl -sL https://raw.githubusercontent.com/khulnasoft/gpt4cli/main/app/cli/install.sh | bash
Windows Support: Use WSL for proper functionality.
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."
✅ 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)
🔄 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
✅ 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
📢 Join us on Discord: Khulnasoft Discord
💬 Discuss & Collaborate: GitHub Discussions
🐛 Report Issues: GitHub Issues
⭐ Star, Fork & Contribute! GPT4CLI is open-source and welcomes contributions.
🔗 Setup Development Environment
💖 Big thanks to all our contributors!