Cette page est affichée en anglais. Une traduction française est en cours.
ScriptsMar 28, 2026·2 min de lecture

GPT Engineer — Generate Entire Codebases from Prompts

CLI tool that generates entire codebases from natural language prompts. Iterative refinement with human feedback. Supports Python, JS, and more.

Introduction

GPT Engineer lets you describe software in plain English and watch AI write the entire codebase. Point it at a folder with a prompt file, and it generates a complete, runnable project. You can also use it to improve existing code by running gpte . -i. With 55,000+ GitHub stars, it's one of the original AI code generation experiments.

Note: The team now focuses on gptengineer.app (managed service). For CLI AI coding, the authors recommend Aider as a well-maintained alternative.

Works with: Claude Code, GitHub Copilot, OpenAI Codex

Usage

Create new code

mkdir my-project && cd my-project
echo "Build a REST API with Flask that manages a todo list" > prompt
gpte .

Improve existing code

cd existing-project
echo "Add input validation and error handling to all endpoints" > prompt
gpte . -i

Custom model support

Supports OpenAI, Azure OpenAI, Anthropic models, and open-source alternatives like WizardCoder.

Vision capability

gpte projects/my-app gpt-4-vision-preview \
  --prompt_file prompt/text \
  --image_directory prompt/images -i

Pre-prompts

Customize AI behavior with --use-custom-preprompts for consistent coding patterns across projects.

Installation

Stable: pip install gpt-engineer Development: Clone repo → poetry installpoetry shell Docker: Available for containerized usage Codespaces: One-click browser-based setup

Python: 3.10 - 3.12 required

Benchmarking

Built-in bench tool for testing custom agents against APPS and MBPP datasets:

bench my-agent --dataset apps

FAQ

Q: What is GPT Engineer? A: CLI tool that generates entire codebases from natural language prompts. Iterative refinement with human feedback. Supports Python, JS, and more.

Q: How do I install GPT Engineer? A: Check the Quick Use section above for step-by-step installation instructions. Most assets can be set up in under 2 minutes.

🙏

Source et remerciements

Created by Anton Osika. Licensed under MIT. gpt-engineer — ⭐ 55,200+

Thanks to Anton Osika and the community for pioneering prompt-to-codebase generation.

Discussion

Connectez-vous pour rejoindre la discussion.
Aucun commentaire pour l'instant. Soyez le premier à partager votre avis.

Actifs similaires