Skip to content

Web3 Agent Kit

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

pip install web3-agent-kit
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:

wak agent "Swap 0.1 ETH to USDC on Base"

โœจ Everything You Need

๐Ÿค–

Agent Framework

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

๐Ÿ’ฐ

DeFi Tools

Uniswap V2, 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, 7+ chains.

๐Ÿ› ๏ธ

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 โ”‚
   โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
              โ”‚
   โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
   โ”‚  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")
# Check your wallet
wak wallet

# Check gas prices
wak gas

# Run an agent
wak agent "Swap 0.1 ETH to USDC on Base"
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}")

๐Ÿ“ฆ 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.

Contributing Guide

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