- Notifications
You must be signed in to change notification settings - Fork7.3k
CLI platform to experiment with codegen. Precursor to:https://lovable.dev
License
AntonOsika/gpt-engineer
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
The OG code genereation experimentation platform!
If you are looking for the evolution that is an opinionated, managed service – check out gptengineer.app.
If you are looking for a well maintained hackable CLI for – check out aider.
gpt-engineer lets you:
- Specify software in natural language
- Sit back and watch as an AI writes and executes the code
- Ask the AI to implement improvements
Forstable release:
python -m pip install gpt-engineer
Fordevelopment:
git clone https://github.com/gpt-engineer-org/gpt-engineer.gitcd gpt-engineerpoetry installpoetry shellto activate the virtual environment
We actively support Python 3.10 - 3.12. The last version to support Python 3.8 - 3.9 was0.2.6.
Chooseone of:
- Export env variable (you can add this to .bashrc so that you don't have to do it each time you start the terminal)
export OPENAI_API_KEY=[your api key]
- .env file:
- Create a copy of
.env.templatenamed.env - Add your OPENAI_API_KEY in .env
- Create a copy of
- Custom model:
- Seedocs, supports local model, azure, etc.
Check theWindows README for Windows usage.
Other ways to run:
- Use Docker (instructions)
- Do everything in your browser:
- Create an empty folder for your project anywhere on your computer
- Create a file called
prompt(no extension) inside your new folder and fill it with instructions - Run
gpte <project_dir>with a relative path to your folder- For example:
gpte projects/my-new-projectfrom the gpt-engineer directory root with your new folder inprojects/
- For example:
- Locate a folder with code which you want to improve anywhere on your computer
- Create a file called
prompt(no extension) inside your new folder and fill it with instructions for how you want to improve the code - Run
gpte <project_dir> -iwith a relative path to your folder- For example:
gpte projects/my-old-project -ifrom the gpt-engineer directory root with your folder inprojects/
- For example:
- gpt-engineer installs the binary 'bench', which gives you a simple interface for benchmarking your own agent implementations against popular public datasets.
- The easiest way to get started with benchmarking is by checking out thetemplate repo, which contains detailed instructions and an agent template.
- Currently supported benchmark:
The community has started work with different benchmarking initiatives, as described inthis Loom video.
Some of our community members have worked on different research briefs that could be taken further. Seethis document if you are interested.
By running gpt-engineer, you agree to ourterms.
gptengineer.app is a commercial project for the automatic generation of web apps.It features a UI for non-technical users connected to a git-controlled codebase.The gptengineer.app team is actively supporting the open source community.
You can specify the "identity" of the AI agent by overriding thepreprompts folder with your own version of thepreprompts. You can do so via the--use-custom-preprompts argument.
Editing thepreprompts is how you make the agent remember things between projects.
By default, gpt-engineer expects text input via aprompt file. It can also accept image inputs for vision-capable models. This can be useful for adding UX or architecture diagrams as additional context for GPT Engineer. You can do this by specifying an image directory with the—-image_directory flag and setting a vision-capable model in the second CLI argument.
E.g.gpte projects/example-vision gpt-4-vision-preview --prompt_file prompt/text --image_directory prompt/images -i
By default, gpt-engineer supports OpenAI Models via the OpenAI API or Azure OpenAI API, as well as Anthropic models.
With a little extra setup, you can also run with open source models like WizardCoder. See thedocumentation for example instructions.
The gpt-engineer community mission is tomaintain tools that coding agent builders can use and facilitate collaboration in the open source community.
If you are interested in contributing to this, we are interested in having you.
If you want to see our broader ambitions, check out theroadmap, and joindiscordto learn how you cancontribute to it.
gpt-engineer isgoverned by a board of long-term contributors. If you contribute routinely and have an interest in shaping the future of gpt-engineer, you will be considered for the board.
reduced.mov
About
CLI platform to experiment with codegen. Precursor to:https://lovable.dev
Topics
Resources
License
Code of conduct
Contributing
Uh oh!
There was an error while loading.Please reload this page.