Giter Club home page Giter Club logo

anterion's Introduction

๐Ÿค– Anterion Agent

๐Ÿ“– What is Anterion?

Anterion is an open-source AI software engineer.

Anterion extends the capabilities of SWE-agent to plan and execute open-ended engineering tasks, with a frontend inspired by OpenDevin.

We've equiped Anterion with easy deployment and UI to allow you to fix bugs and prototype ideas at ease.

๐Ÿ Getting Started

๐ŸŽ‰ Get on board with Anterion by doing the following! ๐ŸŽ‰

Prerequisites

You will need to setup all three components of the system before being able to run it:

1. OpenDevin Setup

To setup OpenDevin, run the following command:

make build-open-devin

2. SWE-agent Setup

Next you will need to setup the SWE-agent.

To start, you will need to cd to the SWE-agent directory, and run the following command:

cd SWE-agent
conda env create -f environment.yml
conda activate swe-agent
cd ..

You will need to create a file called keys.cfg inside of the SWE-agent directory:

OPENAI_API_KEY: '<OPENAI_API_KEY_GOES_HERE>'
ANTHROPIC_API_KEY: '<ANTHROPIC_API_KEY_GOES_HERE>'
GITHUB_TOKEN: '<GITHUB_PERSONAL_ACCESS_TOKEN_GOES_HERE>'

(Optionally) If you want to be able to use Netlify deployments, add the following .env file inside of the SWE-agent directory:

NETLIFY_AUTH_TOKEN="<NETLIFY_AUTH_TOKEN_GOES_HERE>"
NETLIFY_SITE_ID="<NETLIFY_SITE_ID_GOES_HERE>"

Finally, run the following command to setup SWE-agent

make build-swe-agent

3. microservice Setup

Finally you need to setup the microservice, which ties together the OpenDevin frontend and the SWE-agent agent.

First you need to create a .env file in the microservice directory like the following:

OPENAI_API_KEY=<OPENAI_API_KEY_GOES_HERE>
ANTHROPIC_API_KEY=<ANTHROPIC_API_KEY_GOES_HERE>
SWE_AGENT_PATH=<SWE_AGENT_PATH_GOES_HERE>
PYTHON_PATH=<PATH_TO_SWE_AGENT_PYTHON_BINARY_GOES_HERE>

DOCKER_HOST_VOLUME_PATH=<PATH_TO_DOCKER_VOLUME_DIRECTORY_GOES_HERE>
DOCKER_CONTAINER_VOLUME_PATH=/usr/app

SWE_AGENT_PER_INSTANCE_COST_LIMIT=<MAX_USD_PER_AGENT_TASK>
SWE_AGENT_TIMEOUT=25
SWE_AGENT_MODEL_NAME=gpt4

Then, run the following command to build the microservice:

make build-microservice

Finally, within the microservice directory, create a new directory called docker_volume which will be used to contain the agents Docker container will store files within.

cd ./microservice
mkdir docker_volume
cd ..

Usage

To run Anterior, you need to run the frontend and the backend. Run the following command to run both together:

./run.sh

You may have to change permissions for the file first:

chmod +x run.sh

If that isn't working for some reason, run both of them separately:

make run-frontend
make run-backend

๐Ÿ™ Special Thanks!

We'd like to say thanks to these amazing repos for inspiration!

anterion's People

Contributors

miscellaneousstuff avatar lucas-strange avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.