Skip to content

ai16z/eliza-plugin-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Eliza Plugin Starter Template

This repository provides a starter template for creating plugins for the Eliza AI agent framework. It includes example implementations for search functionality using Tavily and Exa APIs.

Prerequisites

  • Node.js 23+
  • pnpm
  • TypeScript knowledge

Getting Started

  1. Clone this repository:
git clone https://github.com/yourusername/eliza-plugin-starter.git
cd eliza-plugin-starter
  1. Install dependencies:
pnpm install
  1. Compile the TypeScript code:
pnpm tsc
  1. Run the project using the 'direct' client:
pnpm exec node --loader ts-node/esm ./src/scripts/load-with-plugin.ts --characters=./characters/eternalai.character.json

Note: Only the 'direct' client will work within this repo since it uses mocked capabilities of the real client. Plugins developed here can be directly transposed into the main Eliza repository.

Project Overview

This starter template is designed to work with the 'direct' client within this repository due to the mocked capabilities of the real client. Plugins developed here are fully compatible with the main Eliza repository and can be directly transposed.

Project Structure

src/
  ├── plugins/
  │   ├── tavily/     # Tavily search plugin implementation
  │   └── exa/        # Exa search plugin implementation
  ├── common/         # Shared utilities and types
  └── index.ts        # Main entry point

Creating a Plugin

See the Plugin Development Guide for detailed instructions on creating your own plugin.

Running the Project

You can run the project using the following command:

pnpm exec node --loader ts-node/esm ./src/scripts/load-with-plugin.ts --characters=./characters/eternalai.character.json

Alternatively, to simplify this process, use the predefined script:

pnpm mock-eliza --characters=./characters/eternalai.character.json

This script will prompt for a comma-separated list of character files to load.

Note: The 'mock-eliza' script uses the 'direct' client because the project contains mocked capabilities of the real client.

Example Plugins

This template includes two example plugin implementations:

  1. Tavily Search Plugin: Demonstrates web search capabilities using the Tavily API
  2. Exa Search Plugin: Shows how to integrate with the Exa search API

Check the individual plugin directories for specific documentation and usage instructions.

Contributing

Contributions are welcome! Please read our Contributing Guide for details.

License

MIT

About

A starter plugin repo for the Solana hackathon

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published