Introducing Anda
Overview
Anda is an innovative agent development framework designed to build a highly composable, autonomous, and permanently memory-enabled AI agent network. By connecting agents across various industries, Anda aims to create a super AGI system, advancing artificial intelligence to higher levels.
Anda bot (Anda application): x.com
System Architecture
To run a complete Anda AI Agent application (referred to as Anda), the following three external resources and two internal services are required:
External Resources:
- LLM Service
- TEE Computing
- ICP Blockchain
Internal Services:
- IC-TEE Gateway
- Anda Engine
LLM Service
The LLM service provides intelligent computing power to Anda, similar to GPU cloud services, and is replaceable. Currently, the Anda framework supports DeepSeek, Cohere, and OpenAI, with plans to support more LLM services in the future, including open-source LLMs running on TEE GPUs.
- DeepSeek and Cohere: Currently offer the best cost-performance ratio, delivering exceptional intelligent computing power at a low cost.
- DeepSeek on TEE GPU: For ultimate security and privacy, this is the optimal choice.
TEE Computing
TEE computing provides Anda with a hardware-level secure isolated computing environment and application identity verification.
- Current Support: AWS Nitro enclave (via IC-TEE).
- Future Support: Intel SGX, NVIDIA TEE GPU, and more.
- Security: Only by running in TEE can we ensure that Anda remains untampered, and its computational state (e.g., keys) is secure and cannot be stolen.
ICP Blockchain
The ICP blockchain provides Anda with decentralized identity verification, root key and data storage, as well as a token economy system and DAO governance mechanism.
- State Storage: Since TEE is a stateless computing environment, Anda’s operational state needs to be stored on the ICP blockchain to recover in case of program crashes, TEE reboots, or switching between different TEEs.
- Identity Verification: As each Anda upgrade changes the TEE Attestation fingerprint, ICP provides a permanent on-chain identity for Anda, enabling trusted interactions with external systems.
IC-TEE Gateway
IC-TEE provides Anda with an internal environment running in TEE, composed of multiple components. The IC-TEE Gateway serves as the bridge between Anda, TEE, and the external world (including the ICP blockchain).
Startup Process:
- Establish a communication channel between the TEE and the host machine.
- Use TEE Attestation to obtain a temporary identity for Anda from the ICP Identity canister contract.
- Exchange the temporary identity for a permanent one.
- Use the permanent identity to read encrypted configuration files, TLS certificates, and Anda’s root key from the ICP COSE canister.
- Encrypted configuration files and TLS certificates must be uploaded to the COSE canister by developers in advance.
- The root key is generated and encrypted in the TEE during the first startup, then stored in the COSE canister. Subsequent startups will read and decrypt it from the COSE canister, remaining fixed and unchanged.
- The IC-TEE Gateway starts an HTTPS service using the TLS certificate, enabling secure external communication with Anda.
- Once everything is ready, the Anda Engine begins communicating with the IC-TEE Gateway, starts up, and provides services externally.
- After the Anda Engine starts, the IC-TEE Gateway offers the following core services:
- Derives a series of key-related services from the root key.
- Proxies ICP canister requests, ensuring Anda uses the same permanent identity when calling canisters.
- Proxies external HTTPS requests to the Anda Engine.
Anda Engine
The Anda Engine is the core scheduling engine of Anda. An Anda application can include multiple agents and tools, which are registered with the Engine and automatically scheduled for execution. The architecture and working principles of the Engine will be detailed in the next section.
Conclusion
The above outlines the complete composition of an Anda agent application. While it may appear complex, the Anda framework encapsulates this complexity, allowing developers to focus on their business logic and quickly build secure, efficient, and scalable agent applications on Anda.
Core Principles of the Anda Framework:
- Composability: Developers should focus on creating specialized Anda agents, each addressing specific domain problems, and flexibly combine different agents to tackle complex tasks.
- Collaboration: When a single agent cannot solve a problem independently, it can collaborate with other agents to form a powerful problem-solving network.
Future Outlook:
Based on the token economy system and DAO governance mechanism, Anda agents can generate revenue while providing services to the external world, creating a positive feedback loop that drives the growth of the agent ecosystem.