Skip to main content

Aser

Aser is a minimalist, modular, and versatile AI agent framework. You can assemble an agent with just a few lines of code.

Website | Documentation | Get Support | 中文

Installation

Install from pypi:

pip install aser

Or clone the repository:

git clone https://github.com/AmeNetwork/aser.git
cd aser
pip install -r requirements.txt

Set up environment variables

Please refer to .env.example file, and create a .env file with your own settings. You don't need to configure all environment variables, just select the ones you use.

.env file example:

#MODEL
MODEL_BASE_URL=<your model base url>
MODEL_KEY=<your model key>

Usage

#Basic
from aser.agent import Agent
agent=Agent(name="aser agent",model="gpt-4.1-mini")
response=agent.chat("what's bitcoin?")
print(response)
# Full configuration
aser = Agent(
    name="aser",
    model="gpt-4o-mini",
    tools=[web3bio, exa],
    knowledge=knowledge,
    memory=memory,
    chat2web3=[connector],
    mcp=[price],
    trace=trace
)

Get Started

If you clone the project source code, before running the examples, please run pip install -e . in the root directory, which allows Python to find and import the aser module from the local source code. If you install it via pip install aser , you can run the examples directly.

Beginner:

  • Aser Agent: Your First AI Agent
  • Model Config: Customize the LLM configuration
  • Memory: Build an agent with memory storage
  • RAG: Build an agent with knowledge retrieval
  • Tools: Build an agent with tools
  • Toolkits: Use built-in toolkits
  • Trace: Build an agent with tracing
  • API: Build an agent with API server
  • CLI: Interact with the agent using the CLI
  • Discord: Build an agent with Discord client
  • Telegram: Build an agent with Telegram client
  • Farcaster: Build an agent with Farcaster client

Intermediate:

Advanced:

  • MSCP: Model Smart Contract Protocol
  • A2Aser: Integrate Google Agent2Agent (A2A) Protocol
  • A2A Client: Agent to Agent Client

Experiments:

Metadata

Release files for aser 0.1.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aser 0.1.9
File Size Uploaded
aser-0.1.9.tar.gz 36.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for aser 0.1.9
File Interpreter ABI Platform
aser-0.1.9-py3-none-any.whl Python 3 none any Details

Total release size: 82.8 kB

Release files / aser-0.1.9.tar.gz

Download URL aser-0.1.9.tar.gz
Size 36.8 kB
Tags Source
SHA-256 checksum
How to use checksums
a3f77fdc4c9e48e2865bc8fdc669cb405c8f5dd513d8de07e860e86ebbaaee81
BLAKE2b-256 checksum
How to use checksums
92e32f9827c52dff1b678808dea2b0a21993de9f1ff4cdfbe1b4c0bf2dcbe97e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.2

Release files / aser-0.1.9-py3-none-any.whl

Download URL aser-0.1.9-py3-none-any.whl
Size 46.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6f7de842f8debe250eaa050fcf58c62aee25a34f4713ec7da67501547cccb6b2
BLAKE2b-256 checksum
How to use checksums
63a9d328bba55e2a06e0b7849fac568085a0860b2205e37b6988b3de1366261d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.2

Release history Release notifications | RSS feed

This release

0.1.9 This release

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page