Getting Started with AgentKit
AgentKit provides a simple way to create AI agents that can interact with blockchain networks. This guide will show you how to get started using our CLI tools.
Create Your First Agent
This section will guide you through the process of creating a new AgentKit project using the TypeScript CLI. Through this process, you will generate a NextJs fullstack application, or a Model Context Protocol server to use with Claude Desktop.
Prerequisites
Before you begin, make sure you have:
- Node.js 18 or later installed – Download here
- npm 9 or later installed (comes bundled with Node.js)
Check your Node.js and npm versions:
Creating a New Project
The fastest way to get started is using our TypeScript CLI:
This command will guide you through an interactive setup process:
-
Choose your AI Framework
- LangChain: Popular framework for building AI applications
- Vercel AI SDK: Build AI-powered streaming text and chat UIs
- Model Context Protocol: Standardized protocol for AI model interactions
-
Project Template (based on your framework choice)
- LangChain & Vercel AI SDK: Full-stack Next.js application with:
- React for the frontend
- Tailwind CSS for styling
- ESLint for code quality
- TypeScript configuration
- Model Context Protocol: MCP server project for Claude Desktop integration
- LangChain & Vercel AI SDK: Full-stack Next.js application with:
-
Blockchain Network
- Select from preconfigured networks (Base, EVM, Solana, etc.)
- Optionally specify custom chain IDs
-
Wallet Provider
- CDP Smart Wallets: Account abstraction with advanced features
- CDP Server Wallets: Secure server-side wallet management
- Viem: Local private key management
- Privy Server Wallets: Managed custody solution
- Privy Delegated Embedded Wallets: Client-side wallets with delegation
Running Your Project
Follow the instructions displayed in your CLI to get running. Be sure to check:
- The
.env-local
file in your project root for instructions on obtaining API keys - Your generated project’s README for additional setup details and customization options
Component Generation
The CLI also installs the agentkit
command globally, allowing you to generate additional components.
These generators will create TypeScript files in your current working directory.
Note: If the above commands print the error
agentkit: not found
, ensure the agentkit cli is installed by running the following command:
This section will guide you through the process of creating a new AgentKit project using the TypeScript CLI. Through this process, you will generate a NextJs fullstack application, or a Model Context Protocol server to use with Claude Desktop.
Prerequisites
Before you begin, make sure you have:
- Node.js 18 or later installed – Download here
- npm 9 or later installed (comes bundled with Node.js)
Check your Node.js and npm versions:
Creating a New Project
The fastest way to get started is using our TypeScript CLI:
This command will guide you through an interactive setup process:
-
Choose your AI Framework
- LangChain: Popular framework for building AI applications
- Vercel AI SDK: Build AI-powered streaming text and chat UIs
- Model Context Protocol: Standardized protocol for AI model interactions
-
Project Template (based on your framework choice)
- LangChain & Vercel AI SDK: Full-stack Next.js application with:
- React for the frontend
- Tailwind CSS for styling
- ESLint for code quality
- TypeScript configuration
- Model Context Protocol: MCP server project for Claude Desktop integration
- LangChain & Vercel AI SDK: Full-stack Next.js application with:
-
Blockchain Network
- Select from preconfigured networks (Base, EVM, Solana, etc.)
- Optionally specify custom chain IDs
-
Wallet Provider
- CDP Smart Wallets: Account abstraction with advanced features
- CDP Server Wallets: Secure server-side wallet management
- Viem: Local private key management
- Privy Server Wallets: Managed custody solution
- Privy Delegated Embedded Wallets: Client-side wallets with delegation
Running Your Project
Follow the instructions displayed in your CLI to get running. Be sure to check:
- The
.env-local
file in your project root for instructions on obtaining API keys - Your generated project’s README for additional setup details and customization options
Component Generation
The CLI also installs the agentkit
command globally, allowing you to generate additional components.
These generators will create TypeScript files in your current working directory.
Note: If the above commands print the error
agentkit: not found
, ensure the agentkit cli is installed by running the following command:
This section will guide you through the process of creating a new AgentKit project using the Python CLI. Through this process, you will generate a local chatbot fully integrated with AgentKit.
Prerequisites
Before you begin, make sure you have:
- Python 3.10 or 3.11 installed – Install Python
- Pipx installed – Install pipx
Note: If you have multiple versions of Python installed, you can specify the Python version when installing pipx.
Creating a New Project
The fastest way to get started is using our Python CLI:
Note: If you want a simplified default setup, you can use the
--beginner
flag:
This command will guide you through an interactive setup process:
-
Choose your AI Framework
- LangChain: Popular framework for building AI applications
- OpenAI Agents SDK: OpenAI’s lightweight framework for production agents
-
Blockchain Network
- Select from preconfigured networks (Base, EVM, Solana, etc.)
- Optionally specify custom chain IDs
-
Wallet Provider
- CDP Smart Wallets: Account abstraction with advanced features
- CDP Server Wallets: Secure server-side wallet management
- EthAccount: Local private key management
Running Your Project
Follow the instructions displayed in your CLI to get running. Be sure to check:
- The
.env-local
file in your project root for instructions on obtaining API keys - Your generated project’s README for additional setup details and customization options