CLI platform to experiment with codegen. Precursor to: https://lovable.dev
gpt-engineer is an innovative code generation platform that leverages artificial intelligence to transform natural language specifications into executable code. Designed primarily for developers and software engineers, this project addresses the challenge of rapid software development by allowing users to describe their requirements in plain language, while the AI autonomously generates and executes the corresponding code. Built using Python, gpt-engineer integrates various AI models, including OpenAI and Anthropic, and supports local and alternative models, making it a versatile tool in the AI and software development domain.
python -m pip install gpt-engineer
git clone https://github.com/gpt-engineer-org/gpt-engineer.git
cd gpt-engineer
poetry install
poetry shell
export OPENAI_API_KEY=[your api key]
.env
file from the .env.template
and adding your API key.prompt
file with instructions.gpte <project_dir>
prompt
file in the code folder.gpte <project_dir> -i
For more detailed instructions, refer to the documentation.
preprompts
folder, enabling memory retention across projects.gpt-engineer stands out as a powerful tool for developers looking to harness AI for efficient code generation and software development.