Shade Agents are a framework for developing autonomous, multichain artificial intelligence (AI) agents on the NEAR Protocol. They are designed to function as AI-powered smart contracts that can securely manage assets, access off-chain data, and execute transactions without direct human oversight or single points of failure. [4]
Shade Agents were introduced to address a significant challenge in Web3 agent design: the limitations of centralized, custodial, or unverified AI agents. Most contemporary AI agents operate from centralized servers, making them unsuitable for securely managing digital assets or sensitive data due to risks of single points of failure and custodian control. Shade Agents solve this by combining the verifiability and privacy of Trusted Execution Environments (TEEs) with the decentralized key management capabilities of the NEAR Protocol. This architecture enables the creation of what are termed "Agentic Protocols"—a new class of decentralized applications characterized by their autonomous, proactive, and intelligent nature. [6] [5]
The core concept is to separate the agent's logic and computation from its on-chain identity and asset control. An off-chain "worker agent" runs inside a secure TEE, allowing it to access private data, interact with large language models (LLMs), and perform complex computations. This worker then proposes transactions to an on-chain smart contract. The smart contract verifies the integrity of the worker agent before using NEAR's Chain Signatures feature to execute transactions on its behalf across various blockchains. This model ensures that the agent's assets are managed non-custodially and that its operations are both verifiable and resilient, as the agent's existence is not tied to a single physical TEE instance. [6] [4]
The framework is designed to empower developers to build sophisticated applications that can automate complex tasks in decentralized finance (DeFi), prediction markets, and other Web3 domains. By providing a trustless and transparent foundation, Shade Agents aim to replace traditional user interfaces and intermediaries with intelligent, autonomous entities that can operate permissionlessly across the blockchain ecosystem. [5]
The concept of Shade Agents was officially introduced by the NEAR Protocol on February 20, 2025, through a blog post. The announcement detailed the architecture, capabilities, and potential use cases for the technology. The initiative was launched with significant ecosystem support, including a dedicated fund from the NEAR Foundation to encourage development and innovation in the field of autonomous AI agents. [4]
The architecture of Shade Agents is a hybrid on-chain and off-chain model designed to balance privacy, computational power, and decentralized security. It relies on two primary components and leverages key features of the NEAR Protocol.
A Shade Agent is composed of two distinct but interconnected parts:
The interaction between the off-chain worker and the on-chain contract follows a precise, security-focused workflow:
register_agent
function on its smart contract. In this call, it provides a remote attestation quote, which is a cryptographic proof generated by the TEE hardware verifying that the agent is running within a genuine TEE. It also provides the SHA256 hash of its own Docker image.request_signature
function on the smart contract to execute multichain transactions. This function utilizes NEAR's Chain Signatures feature, allowing the smart contract to sign transactions for other blockchains like Bitcoin, Ethereum, or Solana.The functionality of Shade Agents is enabled by two core technologies:
The standard agent smart contract includes several key functions for management and operation:
**approve_code_hash**
: An owner-only function used to add the SHA256 hash of a worker agent's code to an approved list. This function is essential for deploying new agents and for upgrading the logic of existing ones.**register_agent**
: Allows a worker agent to register itself by providing its remote attestation and code hash for verification.**request_signature**
: A function restricted to registered agents. It takes the transaction payload, a derivation path for generating a specific address, and a key version (e.g., secp256k1
for EVM chains or ed25519
for Solana) to generate a valid signature for an external blockchain. [6]The Shade Agents framework provides tools to support developers in building, deploying, and managing agents. Agents themselves can be written in any language that can be containerized in a Docker image, offering flexibility. The on-chain agent contracts are written in Rust.
The ecosystem provides the following tools:
**shade-agent-cli**
: A command-line interface designed to simplify the deployment of the agent smart contract and the approval of the initial code hash.**shade-agent-api**
: A library that streamlines agent development by abstracting away the complexities of the registration process. It provides a simple requestSignature
function that agents can call to sign multichain transactions.Developers can follow several development paths:
The security of Shade Agents relies on the interplay between the TEE, the on-chain contract, and proper governance.
Shade Agents are designed to enable a wide range of autonomous applications across Web3. The framework allows developers to integrate intelligence into protocols without human intervention and provides end-users with verifiable and private automation.
Potential applications include:
The integration of IQ AI's Agent Development Kit for TypeScript (ADK-TS) and NEAR Shade Agents creates a framework for building autonomous AI agents that can operate on the blockchain without human intervention. This combination leverages the distinct strengths of each technology: ADK-TS provides the agent's intelligence and reasoning capabilities, while NEAR Shade Agents handle secure, autonomous transaction execution on the blockchain. [7]
ADK-TS is a framework for building sophisticated AI agents that can reason through complex scenarios, coordinate with other agents, and maintain memory across interactions. A key feature is its support for multi-agent orchestration, which allows developers to create specialized agents for specific tasks, such as market analysis or transaction logic, that work together seamlessly. This approach avoids creating a single, monolithic AI system. [7]
NEAR Shade Agents provide the solution for one of the main challenges in AI-blockchain integration: secure transaction signing. Each agent is given its own NEAR account, with private keys stored securely within a Trusted Execution Environment (TEE). By utilizing NEAR's Chain Signatures technology, these agents can sign transactions not only on the NEAR Protocol but also on other blockchains like Ethereum and Bitcoin. This enables agents to operate independently across multiple chains, making decisions and executing transactions without human oversight. The use of TEEs provides hardware-level security for the agent's private keys, and the decentralized architecture of TEE networks ensures there are no single points of failure, making the system censorship-resistant and highly available. [7]
A template developed by IQ AI demonstrates a practical application of this integration: an autonomous AI agent that functions as an Ethereum price oracle. The agent is designed to monitor market sentiment by analyzing headlines from Reddit, fetch real-time price data from the CoinGecko API, and then autonomously sign and broadcast a transaction to update an on-chain oracle contract. This entire process is completed without any human involvement. [7]
The system is built using a multi-agent approach:
These agents work in parallel to gather data. Once the data is collected and processed, the root agent prepares a blockchain transaction. The agent then uses the requestSignature
function provided by the Shade Agent framework to autonomously sign the transaction payload using the keys secured within the TEE. Finally, the signed transaction is broadcast to the Ethereum blockchain to update the oracle. This example showcases a complete, end-to-end autonomous pipeline, from data gathering and AI-driven analysis to secure, cross-chain transaction execution. [7]
The development of Shade Agents is supported by key organizations within the NEAR ecosystem. The NEAR Foundation is a primary supporter and has established a $20 million fund dedicated to fostering innovation and development of AI agents on the protocol. Additionally, the project has received strategic support from DWF Labs for NEAR AI Agents.
For developers, a range of resources is available, including official documentation, a GitHub template for quick deployment, and technical documentation for Chain Signatures. Community support is offered through developer office hours and dedicated Telegram groups managed by entities like Proximity.dev. The ecosystem is also promoted through workshops and hackathons at major industry events to accelerate adoption. [4] [5] [6]
The long-term vision for Shade Agents extends beyond simple automation to the creation of complex, fully autonomous systems. Proponents envision a future where these agents power sophisticated applications such as: