Instantly create onchain-agent applications with Coinbase AgentKit.
npm install create-onchain-agentcreate-onchain-agent is a CLI tool powered by AgentKit that provides multiple utilities for creating and integrating onchain agents into your projects. Whether you're starting a new project or adding AgentKit to an existing application, this tool offers flexible options to meet your needs.
Before using create-onchain-agent, ensure you have the following installed:
- Node.js (v22 or later) – Download here
- npm (v10 or later) – Comes bundled with Node.js
To create a new project from scratch:
``sh`
npm create onchain-agent@latest
This command lets you choose between two project templates:
- Next.js Template: A full-stack web application with React, Tailwind CSS, and ESLint
- MCP Template: A Model Context Protocol server project
After installing the create-onchain-agent CLI, you will also have the agenkit CLI installed. This allows you to generate components for your project.
`shGenerate a custom wallet provider
agentkit generate wallet-provider
> Note: If the above commands print the error
agentkit: not found, ensure the agentkit cli is installed by running the following command:
> `bash
> npm install -g create-onchain-agent@latest
> ``- Multiple project templates:
- Next.js template for web applications
- MCP template for Model Context Protocol servers
- Component generators for existing projects
- Guided setup with interactive prompts
- Support for multiple AI frameworks
- Support for multiple blockchain networks
- Flexible wallet provider options
- Automated environment setup
- Docs: https://docs.cdp.coinbase.com/agentkit/docs/welcome
- GitHub Repo: http://github.com/coinbase/agentkit
- Community & Support: https://discord.gg/CDP