A simple, general, customizable Agent framework
- Simple、Fast、Stable: stable with GPT3.5.
- GeneralAgent support serialization, include python state.
- Build-in interpreters: Python, AppleScript, Shell, File, Plan, Retrieve Embedding etc.
- Dynamic UI: Agent can create dynamic ui to user who can use.
- WebUI with agent builder. You can use natural language to create agent without coding.
- AthenaAgent is a TypeScript port of GeneralAgent.
GeneralAgent
WebUI
Version 0.03
Version 0.0.2
GeneralAgent.Demo.mp4
# pull docker
docker pull cosmosshadow/general-agent
# make .env
cp .env.example .env
vim .env
# Configure environment variables in the .env file, such as OPENAI_API_KEY, etc.
# run
docker run \
-p 3000:3000 \
-p 7777:7777 \
-v `pwd`/.env:/workspace/.env \
-v `pwd`/data:/workspace/data \
--name=agent \
--privileged=true \
-d cosmosshadow/general-agent
# open web with localhost:3000
pip install GeneralAgent
cp .env.example .env
vim .env
# Configure environment variables in the .env file, such as OPENAI_API_KEY, etc.
export $(grep -v '^#' .env | sed 's/^export //g' | xargs)
GeneralAgent
# or
GeneralAgent --workspace ./test --new --auto_run
# worksapce: Set workspace directory, default ./general_agent
# new: if workspace exists, create a new workspace, like ./general_agent_2023xxx
# auto_run: if auto_run, the agent will run the code automatically, default no
git clone https://github.com/CosmosShadow/GeneralAgent
cd GeneralAgent
# Preparation
cd webui/web/ && npm install && cd ../../
cd webui/server/server/ts_builder && npm install && cd ../../../../
# Start the server
cd webui/server/server/
uvicorn app:app --host 0.0.0.0 --port 7777
# Start the web service
cd webui/web
npm run start
Please refer to the code for usage
- GeneralAgent uses litellm to access various platforms of large models.
Scan the QR code below with WeChat
discord is comming soon.