GPT Engineer is a pioneering AI code generation experimentation platform developed by Anton Osika. Dubbed "The OG code generation experimentation platform," it is one of the pioneers of modern AI-assisted programming tools.
Project Address: https://github.com/AntonOsika/gpt-engineer
GPT Engineer allows you to:
python -m pip install gpt-engineer
git clone https://github.com/gpt-engineer-org/gpt-engineer.git
cd gpt-engineer
poetry install
poetry shell
Choose one of the following methods:
Environment Variable Method:
export OPENAI_API_KEY=[your api key]
Configuration File Method:
.env.template
file and rename it to .env
OPENAI_API_KEY
in the .env
fileSupports local models, Azure, and other models. See the project documentation for details.
Create an empty folder on your computer.
Create a file named prompt
(without extension) inside the folder.
Fill in the project instructions in the file.
Run the command:
gpte <project_dir>
Example:
gpte projects/my-new-project
Find the folder containing the code you want to improve.
Create a prompt
file inside the folder and fill in the improvement instructions.
Run the command:
gpte <project_dir> -i
Example:
gpte projects/my-old-project -i
For models that support vision, you can add images as context:
gpte projects/example-vision gpt-4-vision-preview --prompt_file prompt/text --image_directory prompt/images -i
You can specify the "identity" of the AI agent by overriding the preprompts
folder:
--use-custom-preprompts
Editing preprompts is a way to let the agent remember content between projects.
GPT Engineer installs a bench
binary that provides a simple benchmarking interface:
Provides Docker running method, see the Docker documentation in the project for details.
This is a commercial project dedicated to automatically generating web applications:
This project is a pioneer of modern AI programming tools, laying the foundation for subsequent development. Currently recommended evolved versions include:
By running gpt-engineer, you agree to the project's Terms of Use.
GPT Engineer is a groundbreaking AI code generation tool that perfectly combines natural language with code generation, providing developers with a brand new programming experience. Whether you are a beginner or an experienced developer, you can use this tool to improve development efficiency and explore the infinite possibilities of AI-assisted programming.