• Stars
    star
    46,657
  • Rank 262 (Top 0.01 %)
  • Language
    Python
  • License
    MIT License
  • Created over 1 year ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Specify what you want it to build, the AI asks for clarification, and then builds it.

GPT-Engineer

Discord Follow GitHub Repo stars Twitter Follow

GPT-engineer lets you:

  • Specify a software in natural language
  • Sit back and watch as an AI writes and executes the code
  • Ask the AI to implement improvements

Getting Started

Install gpt-engineer

For stable release:

  • python -m pip install gpt-engineer

For development:

  • git clone https://github.com/gpt-engineer-org/gpt-engineer.git
  • cd gpt-engineer
  • poetry install
  • poetry shell to activate the virtual environment

We actively support Python 3.10 - 3.12. The last version to support python 3.8 - 3.9 was 0.2.6.

Setup API Key

Choose one 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.template named .env
    • Add your OPENAI_API_KEY in .env
  • Custom model:
    • See docs, supports local model, azure, etc.

Check the Windows README for windows usage.

Other ways to run:

Create new code (default usage)

  • 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-project from the gpt-engineer directory root with your new folder in projects/

Improve Existing Code

  • 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> -i with a relative path to your folder
    • For example: gpte projects/my-old-project -i from the gpt-engineer directory root with your folder in projects/

By running gpt-engineer you agree to our terms.

Relation to gptengineer.app

gptengineer.app is a commercial project for 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.

Features

Pre Prompts

You can specify the "identity" of the AI agent by overriding the preprompts folder, with your own version of the preprompts, using the --use-custom-preprompts argument.

Editing the preprompts is how you make the agent remember things between projects.

Vision

By default, GPT Engineer expects text input via a prompt file. It can also accept imagine 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 specifiying 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

Open source, local and alternative models

By defaul GPT Engineer supports OpenAI Models via the OpenAI API or Azure Open AI API, and Anthropic models.

With a little extra set up you can also run with open source models, like WizardCoder. See the documentation for example instructions.

Mission

The gpt-engineer community mission is to maintain 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 the roadmap, and join discord to get input on how you can contribute to it.

gpt-engineer is governed 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.

Example

reduced.mov

More Repositories

1

newsfeed-eradicator

Lets you use Facebook without being distracted by the newsfeed on Safari.
JavaScript
35
star
2

AI-Safety-Hackathon

AI Week hackathon on AI alignment
Python
34
star
3

dotfiles

Shell
26
star
4

awesome-open-ai-devtools

A list of open source AI devtools
25
star
5

agz

AlphaGo Zero Reimplementation. MCTS Self Play library.
Python
25
star
6

AntonOsika

Config files for my GitHub profile.
20
star
7

rl-workshop

Code for RL starting with the most simple components
Python
9
star
8

TheDatabase

Outline for a system making an encycolpedia-like Database by extracting information from (syntaxed) posts/notes, interpreting them as attributes for objects.
5
star
9

filippo-website-passions

πŸ€–πŸ’» Created by GPT Engineer
4
star
10

RL

Experiments towards AGI
Python
2
star
11

solkollektivet

HTML
2
star
12

split-screen-interface

JavaScript
2
star
13

proto_agi

JavaScript
2
star
14

yc-founder-ai-company

πŸ€–πŸ’» Created by GPT Engineer
HTML
2
star
15

afterlife-compare

πŸ€–πŸ’» Created by GPT Engineer
2
star
16

inspiration-timer

πŸ€–πŸ’» Created by GPT Engineer
JavaScript
2
star
17

markdown-editor-html-export

πŸ€–πŸ’» Created by GPT Engineer
2
star
18

chat-to-pdf-converter

JavaScript
2
star
19

datasciencemeetup

1
star
20

lifestyle-blog-influencers

πŸ€–πŸ’» Created by GPT Engineer
HTML
1
star
21

node-swagger-skeleton

JavaScript
1
star
22

openapis

1
star
23

notion-website

Shell
1
star
24

DL-kollo

Simulation to be able to use RL to optimise learning.
Python
1
star
25

betterreads

A better recommendation system based on good reads data.
Python
1
star
26

gym-rl

Python
1
star
27

PrimeMusic

Generating music based on Pythagoras just intonation and beautiful intervals.
JavaScript
1
star
28

Dynahack-ZickOs

Battleships dynahack
Python
1
star
29

saas-graphql-database-connector

πŸ€–πŸ’» Created by GPT Engineer
1
star
30

greenlytics-hack

Submission to Greenlytics hack
Jupyter Notebook
1
star
31

simple-excel-clone

JavaScript
1
star