# ◐ GPT-Migrate ◑
**Easily migrate your codebase from one framework or language to another.**
If you've ever faced the pain of migrating a codebase to a new framework or language, this project is for you.
https://user-images.githubusercontent.com/25165841/250232917-bcc99ce8-99b7-4e3d-a653-f89e163ed825.mp4
Migration is a costly, tedious, and non-trivial problem. Do not trust the current version blindly and please use responsibly. Please also be aware that costs can add up quickly as GPT-Migrate is designed to write (and potentially re-write) the entirety of a codebase.
However, with the collective brilliance of the OSS community and the current state of LLMs, it is also a very tractable problem.
## ⚡️ Usage
1. Install Docker and ensure that it's running. It's also recommended that you use at least GPT-4, preferably GPT-4-32k.
## 📦 Installation using Poetry
1. Install Poetry by following the instructions on the [official Poetry website](https://python-poetry.org/docs/#installation).
2. Once Poetry is installed, navigate to the project directory and install the project dependencies using the following command:
```bash
poetry install
```
This will create a virtual environment and install all the necessary dependencies in that environment.
2. Set your [OpenRouter API key](https://openrouter.ai/docs#api-keys) (default) and/or your [OpenAI API key](https://platform.openai.com/account/api-keys) (to use the OpenAI API directly...in this case, set --model to `gpt-4-32k` or your desired model) and install the python requirements:
`export OPENROUTER_API_KEY=