- Node 18+ (TypeScript) or Python 3.10+ (Python)
- A CDP API key (free to create)
- An LLM API key (OpenAI or compatible)
Install AgentKit
- TypeScript
- Python
Terminal
Terminal
Configure your API keys
Open.env and fill in your credentials:
.env
Create a wallet
AgentKit creates and manages a wallet through the CDP API. On first run, the scaffolded project automatically creates a wallet and saves it locally:- TypeScript
- Python
index.ts
Check your balance
- TypeScript
- Python
Send a transaction
- TypeScript
- Python
Run the agent
- TypeScript
- Python
Terminal
Available actions
AgentKit’s action set covers common onchain operations. Key actions include:| Action | Description |
|---|---|
get_balance | Check wallet balance for any token |
transfer | Send tokens to another address |
trade | Swap tokens via the CDP API |
deploy_token | Deploy an ERC-20 token |
deploy_nft | Deploy an ERC-721 collection |
get_wallet_details | Retrieve wallet address and network |
request_faucet_funds | Get testnet tokens |
Framework integrations
LangChain
Combine AgentKit with LangChain for complex agent workflows and tool chaining.
Vercel AI SDK
Build streaming AI agents with AgentKit tools and the Vercel AI SDK.