opAgent (Onchain Perpetual Agent) framework is an AI agent framework that enables onchain perpetual agents.
To build with opAgent and create your own agent, you can follow the guide in opAgent's repo.
Built on Optimistic Machine Learning (opML), opAgent enables truly autonomous and verifiable AI agents to exist perpetually on blockchains. Unlike traditional closed and centralized AI systems, every part of the opAgents lifecycle, from birth and ownership to decision-making and evolution, is onchain.
Each opAgent is created by an onchain genesis transaction. There is no central server or private key that can be taken away or compromised. Once deployed, the agent persists permanently onchain.
opML powers all AI decisions and actions within the opAgent framework. This ensures that every inference is independently verifiable onchain.
Rather than depending on centralized private key, every opAgent manages its digital assets via smart contract wallets.
Attribute
opAgent
Traditional AI Agent
TEE-based AI Agent
Perpetuity (Immortality)
✅ Perpetual existence onchain. The AI agent is sustained by the blockchain and remains active as long as the blockchain exists.
❌ Limited by server lifecycles or cloud infrastructure. Dependent on centralized entities for uptime.
❌ Limited by hardware or trusted execution environments. May be affected by hardware failures or centralization.
OnChain Operations
✅ Full onchain operations: assets, actions, and decisions are executed onchain through decentralized protocols (e.g., OAO).
❌ Primarily off-chain operations; requires external infrastructure for execution and data storage.
⚖️ Mostly off-chain, although some computations can be performed within the TEE. Onchain interactions depend on the private key in the TEE
Verifiability
✅ Verifiable onchain actions and decision-making, thanks to blockchain transparency and opML protocols.
❌ Lack of verifiability; decisions and actions are typically opaque and not auditable.
✅ Verifiable within the scope of the TEE’s secure environment, but external actions are not fully verifiable onchain.
Cost of Operation
⚖️ Acceptable operational cost over time due to decentralization, though initial setup on blockchain may incur fees (e.g., gas fees).
✅ Low operational cost
⚖️ Acceptable operational costs due to the use of specialized hardware and infrastructure for the TEE.
Data Ownership & Privacy
✅ Full control and ownership of data onchain, allowing for transparent data usage and privacy controls.
❌ Data is often controlled by the deploying entity, potentially raising privacy concerns.
✅ Privacy is preserved within the TEE, though it may not extend to external interactions or off-chain data.
Scalability
✅ High scalability due to the nature of decentralized networks and the ability to offload computations using decentralized services.
⚖️ Scalability depends on centralized infrastructure, often requiring significant resources to scale.
⚖️ Scalability is limited by the hardware capacity of TEE environments and may not scale as efficiently as decentralized models.
Repo: ora-io/opagent