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 . -iCustom 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 -iPre-prompts
Customize AI behavior with --use-custom-preprompts for consistent coding patterns across projects.
Installation
Stable: pip install gpt-engineer
Development: Clone repo → poetry install → poetry 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 appsFAQ
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.