Open Source · MIT Licensed · v1.10.0

Web3 Agent Kit

The Python Toolkit for Web3 Automation

27 production-ready modules. 8 blockchains. One unified Python library. Build, automate, and scale Web3 applications — from DeFi trading to cross-chain messaging.

$ pip install web3-agent-kit
0
Production Modules
0
Test Cases
0
Supported Chains
0
Source Files

All 27 modules, organized

Every piece of infrastructure you need to ship production Web3 applications. No fluff, no wrappers — just clean, composable Python.

AI & Core

Foundation layer — the agent framework, wallet system, chain integrations, and shared utilities that everything else builds on.

Agent AI agent framework with 6 LLM providers (OpenAI, Anthropic, Groq, DeepSeek, OpenRouter, Kimi)
Wallet Multi-wallet management with approval manager and balance watcher
Chains 8 chain integrations with dynamic RPC management and failover
Utils Notifications, price fetching, and shared helpers for all modules

DeFi & Trading

Full DeFi stack — swaps, lending, borrowing, yield optimization, portfolio tracking, cross-chain bridging, and automated trading bots.

DeFi Uniswap V2/V3, Aave V3, Curve, and yield optimizer — all in one interface
Trading Token sniper and DCA (dollar-cost average) bot for automated trading
Bridge Cross-chain asset bridging via Li.Fi and Socket aggregators
Portfolio Multi-chain portfolio tracker — see all your balances in one place
Gas Gas optimizer — estimates, prioritizes, and minimizes transaction costs

Security & Intelligence

Protect your funds with token analysis, MEV protection, transaction simulation, and price oracle aggregation.

Security Token analyzer, honeypot detection, and contract audit scanner
MEV Sandwich protection, frontrunning detection, and MEV strategy tools
Simulator Transaction simulation via Tenderly, eth_call, and local forks
Oracle Price feed aggregator combining Chainlink, DexScreener, and CoinGecko

NFT & Governance

Manage digital assets and participate in on-chain governance — from minting NFTs to voting on DAO proposals.

NFT NFT manager for minting, marketplace listings, and whitelist operations
Governance Snapshot + Tally + on-chain governor for DAO proposal creation and voting
Airdrop Campaign discovery, on-chain farming, scheduler, faucet, and multi-wallet claims

Infrastructure

Event-driven architecture, cross-chain messaging, account abstraction, and notification delivery — keep your app connected.

Events On-chain event listener with webhook delivery and automatic retry
Notifications Multi-channel alerts via Telegram, Discord, and email
Messaging Cross-chain messaging via LayerZero, Wormhole, and CCIP
Account Abstraction ERC-4337 support — UserOperations, EntryPoint, and paymaster integration

Developer Tools

Build, deploy, and debug faster with API servers, CLI automation, and a modular plugin system for extending functionality.

API REST API with 37+ endpoints for programmatic access to all kit capabilities
CLI Command-line tool (wak) with 7 subcommands for terminal-based workflows
Plugins Plugin system + restaking integrations (EigenLayer, Babylon BTC, Solana)

Up and running in seconds

Install the package, set your environment variables, and start building with AI-powered Web3 automation.

01

Install

Terminal
$ pip install web3-agent-kit
02

Set up your wallet

.env
# .env file
PRIVATE_KEY=0x123...abc
RPC_URL_ETH=https://eth-mainnet.g.alchemy.com/v2/YOUR_KEY
OPENAI_API_KEY=sk-...
03

Run your first agent

main.py
from web3_agent_kit import Agent, Wallet

# Load wallet from environment variables
wallet = Wallet.from_env()

# Create an agent with your wallet
agent = Agent(wallet=wallet)

# Ask it to do something — the agent handles the rest
result = agent.run("what's my ETH balance and USDC balance on Ethereum?")
print(result)

8 Supported Chains

One library, eight blockchains. Write once, deploy everywhere.

Ethereum ETH
Polygon MATIC
Arbitrum ARB
OP
Optimism OP
BNB Chain BSC
Avalanche AVAX
B
Base BASE
Solana SOL

Build with confidence

Comprehensive guides, API references, and real-world examples for every module.

Start building with Web3 Agent Kit

Join developers shipping production Web3 applications with Python — powered by AI, backed by 1033 test cases.