Installation#
There are two ways to install AutoGen Studio - from PyPi or from source. We recommend installing from PyPi unless you plan to modify the source code.
Create a Virtual Environment (Recommended)#
We recommend using a virtual environment as this will ensure that the dependencies for AutoGen Studio are isolated from the rest of your system.
Create and activate:
python3 -m venv .venv
source .venv/bin/activate
To deactivate later, run:
deactivate
Install Conda if you have not already.
Create and activate:
conda create -n autogen python=3.10
conda activate autogen
To deactivate later, run:
conda deactivate
Install from PyPi (Recommended)#
You can install AutoGen Studio using pip, the Python package manager.
pip install -U autogenstudio
Install from source#
Note: This approach requires some familiarity with building interfaces in React.
You have two options for installing from source: manually or using a dev container.
A) Install from source manually#
Ensure you have Python 3.10+ and Node.js (version above 14.15.0) installed.
Clone the AutoGen Studio repository and install its Python dependencies using
pip install -e .
Navigate to the
python/packages/autogen-studio/frontend
directory, install the dependencies, and build the UI:
npm install -g gatsby-cli
npm install --global yarn
cd frontend
yarn install
yarn build
# Windows users may need alternative commands to build the frontend:
gatsby clean && rmdir /s /q ..\\autogenstudio\\web\\ui 2>nul & (set \"PREFIX_PATH_VALUE=\" || ver>nul) && gatsby build --prefix-paths && xcopy /E /I /Y public ..\\autogenstudio\\web\\ui
B) Install from source using a dev container#
Follow the Dev Containers tutorial to install VS Code, Docker and relevant extensions.
Clone the AutoGen Studio repository.
Open
python/packages/autogen-studio/
in VS Code. Click the blue button in bottom the corner or press F1 and select “Dev Containers: Reopen in Container”.Build the UI:
cd frontend
yarn build
Running the Application#
Once installed, run the web UI by entering the following in your terminal:
autogenstudio ui --port 8081
This command will start the application on the specified port. Open your web browser and go to http://localhost:8081/ to use AutoGen Studio.
AutoGen Studio also takes several parameters to customize the application:
--host <host>
argument to specify the host address. By default, it is set tolocalhost
.--appdir <appdir>
argument to specify the directory where the app files (e.g., database and generated user files) are stored. By default, it is set to the.autogenstudio
directory in the user’s home directory.--port <port>
argument to specify the port number. By default, it is set to8080
.--reload
argument to enable auto-reloading of the server when changes are made to the code. By default, it is set toFalse
.--database-uri
argument to specify the database URI. Example values includesqlite:///database.sqlite
for SQLite andpostgresql+psycopg://user:password@localhost/dbname
for PostgreSQL. If this is not specified, the database URL defaults to adatabase.sqlite
file in the--appdir
directory.--upgrade-database
argument to upgrade the database schema to the latest version. By default, it is set toFalse
.
Now that you have AutoGen Studio installed and running, you are ready to explore its capabilities, including defining and modifying agent workflows, interacting with agents and sessions, and expanding agent skills.