Skip to content

Web3 Agent Kit

Build autonomous AI agents that interact with blockchains โ€” in minutes, not months.

pip install web3-agent-kit
v1.14.0
Version
24+
Modules
1,225
Tests
8
Chains
MIT
License

๐Ÿš€ From Zero to Agent in 5 Lines

from web3_agent_kit import Agent, Wallet, Chain
from web3_agent_kit.defi import Uniswap

agent = Agent(wallet=Wallet.from_env("PRIVATE_KEY"), chains=[Chain.BASE], tools=[Uniswap()])
result = agent.run("Swap 0.1 ETH to USDC on Base")
print(result)

Or use the CLI โ€” no Python needed:

wak agent --goal "Swap 0.1 ETH to USDC on Base" --wallet 0x...

โœจ Everything You Need

๐Ÿค–

Agent Framework

Goal-driven autonomous agents with LLM reasoning. Natural language in, on-chain actions out.

๐Ÿ’ฐ

DeFi Tools

Uniswap V2/V3, Aerodrome, Aave, Curve. Real swaps, quotes, approvals, slippage protection.

๐ŸŽฏ

Airdrop Suite

Galxe, Zealy, Layer3, Gleam, QuestN, Intract. Multi-wallet farming, auto-discovery.

๐Ÿ”

Security Audit

Static analysis, fuzzing, exploit PoC, forensics. 10 specialized audit skills built-in.

โšก

MEV Bots

Cross-DEX arbitrage, liquidation bot, Flashbot support. Extract value from mempool.

๐Ÿ–ผ๏ธ

NFT Tools

Deploy collections, batch mint, marketplace listing. ERC-721A optimized.

๐Ÿ“ˆ

Trading Bots

DCA with price triggers, yield optimizer, token sniper. Automated strategies.

๐ŸŒ‰

Cross-Chain Bridge

Li.Fi + Socket aggregators. Best routes, lowest fees, 8 chains.

๐Ÿ”ฎ

Oracle Aggregator

Multi-source price feeds โ€” Chainlink, DexScreener, CoinGecko. Weighted median, auto-fallback, cache.

๐Ÿ“ก

Event Listener

On-chain event subscription with webhooks, callbacks, and background polling. Real-time monitoring.

๐Ÿงช

Transaction Simulator

Pre-flight TX verification via eth_call, Tenderly, or local fork. Catch reverts before broadcasting.

๐Ÿ”‘

Account Abstraction

ERC-4337 bundler, paymaster integration, smart account factory. SimpleAccount, Safe, Kernel support.

๐Ÿ”—

Cross-Chain Messaging

LayerZero + Wormhole + CCIP unified API. Send messages, query status, estimate fees.

๐Ÿ—ณ๏ธ

Governance

Snapshot + Tally + on-chain governor. Proposal tracking, voting power, delegation management.

๐Ÿ› ๏ธ

CLI Tool

wak โ€” 7 commands for terminal usage. Check balances, gas, run agents, zero Python.

๐Ÿ—๏ธ Architecture

User / Application
        โ”‚
        โ–ผ
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚     Agent Framework       โ”‚
โ”‚  Goal โ†’ LLM โ†’ Tool โ†’ TX  โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
              โ”‚
   โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
   โ”‚   Safety Layer      โ”‚
   โ”‚  Governor + Kill SW โ”‚
   โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
              โ”‚
   โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
   โ”‚          Tool Ecosystem                            โ”‚
   โ”‚  DeFi ยท Airdrop ยท Security ยท MEV ยท NFT ยท Trading   โ”‚
   โ”‚  Portfolio ยท Bridge ยท Gas ยท Wallet ยท Oracle        โ”‚
   โ”‚  Events ยท Simulator ยท Account Abstraction          โ”‚
   โ”‚  Messaging ยท Governance ยท Plugins ยท Utils          โ”‚
   โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
              โ”‚
   โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
   โ”‚  Chain Abstraction   โ”‚
   โ”‚  ETH ยท BASE ยท ARB   โ”‚
   โ”‚  OP ยท MATIC ยท BSC   โ”‚
   โ”‚  AVAX ยท SOLANA   โ”‚
   โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

โšก Quick Start

from web3_agent_kit import Agent, Wallet, Chain, ChainManager
from web3_agent_kit.defi import Uniswap

chain_manager = ChainManager(chains=[Chain.BASE])
wallet = Wallet.from_env("PRIVATE_KEY", chain_manager=chain_manager)
uniswap = Uniswap(chain_manager=chain_manager)

agent = Agent(wallet=wallet, chains=[Chain.BASE], tools=[uniswap])
result = agent.run("Swap 0.1 ETH to USDC on Base")
# Check your wallet
wak wallet

# Check gas prices
wak gas

# Run an agent
wak agent --goal "Swap 0.1 ETH to USDC on Base" --wallet 0x...
from web3_agent_kit.airdrop import MultiWalletManager

manager = MultiWalletManager.from_csv("wallets.csv")
manager.execute_on_all("swap", token_in="ETH", token_out="USDC", amount=0.01)
from web3_agent_kit.security import StaticAnalyzer

analyzer = StaticAnalyzer()
results = analyzer.analyze("contracts/Token.sol")
for vuln in results.vulnerabilities:
    print(f"[{vuln.severity}] {vuln.name}")
from web3_agent_kit.oracle import OracleAggregator

oracle = OracleAggregator()
price = oracle.get_price("ETH")
print(f"ETH: ${price.usd:.2f} (sources: {price.sources})")
from web3_agent_kit.simulator import TransactionSimulator

sim = TransactionSimulator(chain_manager=cm)
result = sim.simulate(to=router, data=calldata, from_addr=wallet.address)
print(f"Would revert: {result.would_revert}, gas: {result.gas_used}")

๐Ÿ“ฆ Supported Chains

Chain Status DeFi Bridge
Ethereum โœ… โœ… โœ…
Base โœ… โœ… โœ…
Arbitrum โœ… โœ… โœ…
Optimism โœ… โœ… โœ…
Polygon โœ… โœ… โœ…
Avalanche โœ… โ€” โœ…
BSC โœ… โ€” โœ…
Solana โœ… โ€” โ€”

๐Ÿค Contributing

We welcome contributions! Whether it's bug reports, feature requests, documentation improvements, or code contributions.

Contributing Guide

Built by [Maulana](https://github.com/ulsreall) ยท [Twitter](https://twitter.com/itseywacc) ยท [PyPI](https://pypi.org/project/web3-agent-kit/)