Install & Setup

1

Install

Install from pypi:
pip3 install aser
Clone the repository:
git clone https://github.com/AmeNetwork/aser.git
cd aser
pip3 install -r requirements.txt
2

Set up environment variables

Please refer to .env.example file, and create a .env file with your own settings. You can use two methods to import environment variables.Using python-dotenv:
pip install python-dotenv
Then add the following code to your python file.
from dotenv import load_dotenv
load_dotenv()
Exporting all variables in the terminal:
export $(grep -v '^#' .env | xargs)

Running your Agent

from aser.agent import Agent
agent=Agent(name="aser agent",model="gpt-4.1-mini")
response=agent.chat("what's bitcoin?")
print(response)