Web3 Agent Kit¶
Build autonomous AI agents that interact with blockchains โ in minutes, not months.
v1.6.0
Version
19
Modules
565+
Tests
7+
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:
โจ Everything You Need¶
Agent Framework¶
Goal-driven autonomous agents with LLM reasoning. Natural language in, on-chain actions out.
Security Audit¶
Static analysis, fuzzing, exploit PoC, forensics. 10 specialized audit skills built-in.
๐๏ธ 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 โ
โโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โโโโโโโโโโโโผโโโโโโโโโโโ
โ Chain Abstraction โ
โ ETH ยท BASE ยท ARB โ
โ OP ยท MATIC ยท BSC โ
โโโโโโโโโโโโโโโโโโโโโโโ
โก 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")
๐ฆ Supported Chains¶
| Chain | Status | DeFi | Bridge |
|---|---|---|---|
| Ethereum | โ | โ | โ |
| Base | โ | โ | โ |
| Arbitrum | โ | โ | โ |
| Optimism | โ | โ | โ |
| Polygon | โ | โ | โ |
| Avalanche | โ | โ | โ |
| BSC | โ | โ | โ |
๐ค Contributing¶
We welcome contributions! Whether it's bug reports, feature requests, documentation improvements, or code contributions.
Built by [Maulana](https://github.com/ulsreall) ยท [Twitter](https://twitter.com/itseywacc) ยท [PyPI](https://pypi.org/project/web3-agent-kit/)