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.This command will guide you through an interactive setup process:
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)
Creating a New Project
The fastest way to get started is using our TypeScript CLI:-
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 theagentkit
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 erroragentkit: not found
, ensure the agentkit cli is installed by running the following command: