Welcome to the comprehensive documentation for the SuperDapp Agents SDK. This documentation will help you build powerful AI agents for the SuperDapp platform.
- Quick Start Guide - Get up and running with your first agent in minutes
- CLI Guide - Complete command-line interface documentation
- API Reference - Complete SDK reference with classes, methods, and types
- Deployment Guide - Deploy to Cloudflare Workers, AWS Lambda, Docker, and more
| Topic | Description | Link |
|---|---|---|
| First Steps | Create your first agent | Quick Start |
| CLI Commands | Manage agents from command line | CLI Guide |
| Advanced Features | Complex patterns and scenarios | API Reference |
| Deployment | Production deployment options | Deployment Guide |
The SuperDapp Agents SDK provides a modern, webhook-based architecture for building AI agents:
- SuperDappAgent - Main agent class with webhook support
- SuperDappClient - Direct API client for advanced operations
- WebhookAgent - Lightweight webhook-only agent
- CLI Tools - Command-line interface for project management
- ✅ Webhook-Based Architecture - Maximum portability and simplicity
- ✅ Interactive UI Support - Buttons, multiselect, reply markup
- ✅ Command Routing - Structured command handling system
- ✅ TypeScript First - Full type safety and IntelliSense
- ✅ Multi-Platform Deployment - Cloudflare Workers, AWS Lambda and Docker
- ✅ Comprehensive Testing - Jest setup with utilities
# Initialize a new project
superdapp create my-agent
# Configure environment
superdapp configure
# Run locally
superdapp run
# Check status
superdapp status# Install globally for CLI access
npm install -g @superdapp/agents
# Install in project
npm install @superdapp/agentsimport { SuperDappAgent } from '@superdapp/agents';
const agent = new SuperDappAgent({
apiToken: process.env.API_TOKEN!,
baseUrl: process.env.API_BASE_URL,
});
agent.addCommand('/start', async ({ roomId }) => {
await agent.sendConnectionMessage(roomId, 'Hello!');
});agent.addCommand('/menu', async ({ roomId }) => {
const buttons = [
{ text: 'Option 1', callback_data: 'OPTION_1' },
{ text: 'Option 2', callback_data: 'OPTION_2' },
];
await agent.sendReplyMarkupMessage('buttons', roomId, 'Choose:', [buttons]);
});app.post('/webhook', async (req, res) => {
await agent.processRequest(req.body);
res.status(200).send('OK');
});- GitHub Repository - Source code and issues
- NPM Package - Package registry
- SuperDapp Platform - Platform documentation