Skip to content

Agents Overview

Agents are containerized programs that run in Docker with controlled access to blockchain networks and AI APIs. Each agent runs in strict isolation with defined permissions, resource limits, and a mandatory “Human-in-the-Loop” approval flow for transactions.

Agents are designed to be autonomous but safe. They can:

  • Query Blockchain Data: Read data from whitelisted RPC endpoints (e.g., getting balances, simulating transactions).
  • Request Transactions: Propose transactions that require user approval to execute.
  • Use AI Models: Access configured LLMs (OpenAI, Anthropic) via the secure proxy.
  • Persist Data: Read and write to a dedicated /agent-workspace volume.
  • Log Activity: Send structured logs to the user dashboard.

A minimal agent requires the following file structure:

my-agent/
├── assegai.json # Manifest configuration
├── index.js # Main entry point
├── Dockerfile # (Optional) Custom build steps
└── package.json # Node.js dependencies

Assegai uses CAIP-2 chain identifiers for cross-chain compatibility:

ChainCAIP-2 Identifier
Ethereum Mainneteip155:1
Polygoneip155:137
Baseeip155:8453
Optimismeip155:10
Arbitrum Oneeip155:42161
Sepolia (Testnet)eip155:11155111
Anvil (Local)eip155:31337