Web3 Foundation Grant Application #34
chungquantin
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Polkadot Agent Kit
Project Overview
Overview
Polkadot Agent Kit is an open-source library provides developers with a set of tools to build AI Agents that interact autonomously with the Polkadot SDK-based networks.
Motivation & Ecosystem Fit
Polkadot is widely recognized for its powerful cross-chain capabilities and secure transaction infrastructure. However, interacting with these features—especially through XCM and cross-chain asset transfers—often requires navigating a complex and fragmented developer experience.
Executing a simple asset transfer across parachains or from Polkadot to another chain can involve multiple intricate steps, making it difficult for developers and users to integrate these capabilities into their applications smoothly.
Not only that, with its complexity in different runtime architecture & network configuration, each Polkadot SDK-based networks requires a different way to interact with.
With these challenges in mind, the Polkadot Agent Kit was created to simplify development and reduce the complexity of interacting with Polkadot SDK-based networks through autonomous, agent-driven capabilities.
Key Features
Below are the high-level overview of the library features, a detailed breakdown of each feature and the plan for development is listed in the later sections:
Secure wallet management: Mnemonic-derived wallets or Proxy-based, Multisig-based.
Cross-chain interactions and queries: Primarily built on top of the two protocols XCM & ISMP. Below are common use cases of agent kits:
Basic local chain transactions
Third-party integrations including:
Project Details
Our team has successfully finished the initial phase of the Polkadot Agent Kit, which can be found and used in the repository: https://github.com/elasticlabs-org/polkadot-agent-kit
Installation Guide
Ensure your NodeJS environment is at least v23.9.0:
Features
Multiple Substrate Network Connections
Polkadot Agent Kit uses Polkadot API as the core client library to set up the connection with Substrate-based chains. You can discover the list of supported chains in the library codebase.
Key Types and Mnemonic Support
The Polkadot AI Agent Kit now supports both Sr25519 and Ed25519 key types with dynamic configuration, as well as mnemonic phrase key generation.
Key Type Configuration
You can specify which key type to use when creating your agent:
Mnemonic Phrase Support
You can now create an agent using a mnemonic phrase instead of a raw private key:
Using Both Key Types and Delegation
You can mix key types and use both private keys and mnemonics with delegation:
Using the agent to execute with onchain actions
The Polkadot Agent Kit abstracts complex blockchain interactions into simple prompts. Instead of manually constructing transactions and handling network-specific logic, developers can trigger powerful on-chain actions with a single line of code:
Under the hood, the agent parses natural-language instructions, identifies the correct transaction type, constructs the necessary extrinsics, handles signature authorization (via Proxy/Multisig if needed), and submits the transaction to the network — all autonomously.
Without the Polkadot Agent Kit, developers must manually interact with the Polkadot.js API, construct extrinsics, manage wallets, and handle network-specific encoding.
Here’s an example of how you'd implement the same actions manually:
Now imagine how many lines of code needed to replicate the same functionalities of the below agent prompt:
Polkadot Agent Kit is all about developer experience!
Architecture
packages/common*
packages/core
packages/llm
packages/sdk
Technology Stack
ParaSpell
team to provide a seamless integrations.Team 👥
Team Members
Contact 📞
Legal Structure
Team’s Experience
ink!
,pop-cli
,polkadot-sdk
and more.Team Code Repo
Team github accounts 🧑💻
Team LinkedIn Profiles 🧑🎓
Development Status 📖
Core Functionality: A command-line interface (CLI) for creating agents that interact with Polkadot Ecosystem via the Polkadot API, leveraging LangChain for natural language processing.
Integration: Connection to Polkadot testnets (e.g., Westend) and mainnets
Status: As of March 31, 2025, the repository has been tested with ~100 daily transactions on testnets, demonstrating stability for basic use cases.
Version: 1.0.0-alpha . Available on npm package . Link: https://www.npmjs.com/package/@polkadot-agent-kit/sdk
Codebase: https://github.com/elasticlabs-org/polkadot-agent-kit
Development Roadmap 🔩
Overview
Milestone 1 — Core SDK with XCM Capabilities
Milestone 2 — DeFi Integrations & External Context Providers
Milestone 3 — Agent Kit Playground & Examples
Future Plans
Polkadot Agent Kit aims to become the go-to open-source toolkit for developers building agentic applications on Polkadot SDK-based networks. After completing milestones, we intend to have a follow-up proposal to Web3Foundation for:
Expand Functionality:
Auditting & Security Analysis.
Pop Agent Kit CLI - Allows developers to initialize the agent kit starter code base easily.
Support multiple LLM models - Consider migrating the codebase to LiteLLM to support more LLM models.
Eliza OS compabitibility - Allows developers to integrate the Polkadot Agent Kit as Eliza OS plugin.
Options to deploy AI agents: Vercel AI SDK Deployment & PHALA TEE Deployment (This will need to be reconsidered in the future).
Potential Ecosystem Integrations:
Developer onboarding and distribution (additional scope - voluntary):
Beta Was this translation helpful? Give feedback.
All reactions