LogoLogo
  • Overview
  • Prompts
    • Quickstart
    • DeFi Swaps
    • MEME Launcher
    • Image Gen Mint
    • Drop Links
    • NFT Collection
    • Buys, Lists, Transfers
    • Create Contract
  • Agents
    • Introduction
    • Quick Start
    • Manifest
    • Embeddable Chat Component
    • Deploy Your Open Agent
    • MCP
    • make-agent
    • Contract To Agent
    • Sui Agent Building
  • Wallet
    • Quickstart
    • NFT Drops
    • Paymaster
    • Integrations
    • Sign Messages
    • Cross Chain Signatures
    • Telegram Integration
Powered by GitBook
LogoLogo

Socials

  • X (Twitter)
On this page
  • 1. Clone agent template
  • 2. Get API Key and Set Environment Variables
  • 3. Start Coding
  • 4. Go live!
  • From your own repo
  • Install make-agent
Export as PDF
  1. Agents

Quick Start

How to get started in 3 minutes creating an Open Agent.

PreviousIntroductionNextManifest

Last updated 20 days ago

Make sure your make-agent package is running v0.3.1+

In this guide we will:

  1. Clone the agent template

  2. Generate and set API Key

  3. Develop the agent with make-agent

  4. Deploy your agent and go live!

1. Clone agent template

git clone https://github.com/BitteProtocol/agent-next-boilerplate.git
cd agent-next-boilerplate

To get started with your Open Agent project, first clone the Bitte Next Agent Template repository. You can use this ready-to-use template as a solid foundation for building your agent

2. Get API Key and Set Environment Variables

change or copy the root file .env.example to .env and add your newly generate api key

BITTE_API_KEY="bitte_#####"

3. Start Coding

Install dependencies

pnpm i

Run boilerplate, this will automatically run the make-agent library + your agent server

pnpm dev

When you run your project, the UI launches in your console, allowing you to access the chat sandbox with local dev environment connections for EVM and NEAR wallets. By testing the boilerplate with a command like "Hey, can you do a coinflip for me", you'll trigger the coinflip tool, which generates a random value.

You can customize tools by modifying their route's return value and updating the ai-plugin route manifest to define and provide LLM instructions for tool usage. You can learn more about your manifest here: Manifest

To send transactions, return the transaction body in your route. In the manifest, specify that the route returns a valid transaction. The runtime will automatically detect this if you have the appropriate tools (generate-evm-tx or generate-transaction) defined, which are already set up in the boilerplate and prepare the transaction in the UI. Check the create-near-transaction and create-evm-transaction routes for examples

4. Go live!

Note that your deploy script includes make-agent deploy. This command will validate your API key, look into the deployment URL (for most common hosting providers) and automatically communicate any changes made to our registry.

In case you want to have more control over your deployment URL, you can set BITTE_AGENT_URL

BITTE_AGENT_URL=<YOUR_DESIRED_URL>

From your own repo

Install make-agent

The templates should have these packages installed. But if you're trying to add this to an existing project, please install make-agent and concurrently.

npm i -D make-agent concurrently
pnpm i -D make-agent concurrently
bun add -D make-agent concurrently

Your package.json should look like this:

  "scripts": {
    "dev": "concurrently \"next dev\" \"make-agent dev --port 3000\"",
    "build": "next build && make-agent deploy",
    "start": "next start",
    "lint": "next lint"
  },

You can now run in development mode.

npm run dev
pnpm run dev
bun run dev

Learn more about the Manifest file by following the link below.

Get your api key at

Consider pushing your code to its own GitHub repository and hosting it in a easy to deploy service like . There are other alternatives, but we find Vercel very easy to work with.

is a CLI tool that was built to make the development of an Open Agent as easy as possible-

https://key.bitte.ai
Vercel
make-agent
Manifest
Cover

Bitte Next Agent Template