๐ค Assemble, configure, and deploy autonomous AI Agents in your browser. ๐ค
๐ Short link ย ย โขย ย ๐ค Contribute ย ย โขย ย ๐ฆ Twitter ย ย โขย ย ๐ข Discord
Join us in fueling the development of Agent-GPT, an open-source project pushing the boundaries of AI autonomy! We're facing challenges in covering the operational costs ๐ธ, including in-house API and other infrastructure expenses, which is projected to grow to around $150 USD per day ๐ณ๐ค Your sponsorship would drive progress by helping us scale up resources, enhance features and functionality, and continue to iterate on this exciting project! ๐
By sponsoring this free, open-source project, you not only have the opportunity to have your avatar/logo featured below, but also get the exclusive chance to chat with the founders!๐ฃ๏ธ
๐ Click here to support the project
Agent-GPT allows you to configure and deploy Autonomous AI agents. Name your own custom AI and have it embark on any goal imaginable. It will attempt to reach the goal by thinking of tasks to do, executing them, and learning from the results ๐.
This platform is currently in beta, we are currently working on:
- Long term memory via a vector DB ๐ง
- Web browsing capabilities via langchain ๐
- Interaction with websites and people ๐จโ๐ฉโ๐ฆ
- Writing capabilities via a document API ๐
- Saving agent runs ๐พ
- Users and authentication ๐
- Stripe integration for a lower limit paid version (So we can stop worrying about infra costs) ๐ต
More Coming soon...
- โ Bootstrapping: create-t3-app.
- โ Framework: Nextjs 13 + Typescript.
- โ Auth: Next-Auth.js
- โ ORM: Prisma.
- โ Database: Supabase.
- โ Styling: TailwindCSS + HeadlessUI.
- โ Typescript Schema Validation: Zod.
- โ End-to-end typesafe API: tRPC.
The easiest way to run Agent-GPT locally is by using docker. A convenient setup script is provided to help you get started.
./setup.sh --docker
If you wish to develop Agent-GPT locally, the easiest way is to use the provided setup script.
./setup.sh --local
๐ง You will need Nodejs +18 (LTS recommended) installed.
- Fork this project:
- Clone the repository:
git clone [email protected]:YOU_USER/Agent-GPT.git
- Install dependencies:
cd Agent-GPT
npm install
- Create a .env file with the following content:
๐ง The environment variables must match the following schema.
# Deployment Environment:
NODE_ENV=development
# Next Auth config:
# Generate a secret with `openssl rand -base64 32`
NEXTAUTH_SECRET=changeme
NEXTAUTH_URL=http://localhost:3000
DATABASE_URL=file:./db.sqlite
# Your open api key
OPENAI_API_KEY=changeme
- Modify prisma schema to use sqlite:
./prisma/useSqlite.sh
Note: This only needs to be done if you wish to use sqlite.
- Ready ๐ฅณ, now run:
# Create database migrations
npx prisma db push
npm run dev
Set up Agent-GPT in the cloud immediately by using GitHub Codespaces.
- From the GitHub repo, click the green "Code" button and select "Codespaces".
- Create a new Codespace or select a previous one you've already created.
- Codespaces opens in a separate tab in your browser.
- In terminal, run
bash ./setup.sh --local
- When prompted in terminal, add your OpenAI API key.
- Click "Open in browser" when the build process completes.
- To shut Agent-GPT down, enter Ctrl+C in Terminal.
- To restart Agent-GPT, run
npm run dev
in Terminal.
Run the project ๐ฅณ
npm run dev