Discover MCPs & agents
Loading MCPs and agents…
Loading MCPs and agents…
Collab.Land AI Agent Starter Kit
Fetched from the repository for this visit.
A modern full-stack AI-enabled template using Next.js for frontend and Express.js for backend, with Telegram and OpenAI integrations! ✨
[!IMPORTANT] The AI Agent Starter Kit is powered by the Collab.Land AccountKit APIs
More information here: https://accountkit-docs-qa.collab.land/
This template is specially crafted for the Cursor IDE, offering:
Just highlight any error message, code snippet, or variable in Cursor and ask the AI for help!
Cmd/Ctrl + K: Ask AI about highlighted codeCmd/Ctrl + L: Get code explanationsCmd/Ctrl + I: Generate code completionsnode >= 22 🟢
pnpm >= 9.14.1 📦
pnpm install
pnpm run dev
.
├── 📦 client/ # Next.js frontend
│ ├── 📱 app/ # Next.js app router (pages, layouts)
│ ├── 🧩 components/ # React components
│ │ └── HelloWorld.tsx # Example component with API integration
│ ├── 💅 styles/ # Global styles and Tailwind config
│ │ ├── globals.css # Global CSS and Tailwind imports
│ │ └── tailwind.config.ts # Tailwind configuration
│ ├── 🛠️ bin/ # Client scripts
│ │ └── validate-env # Environment variables validator
│ ├── next.config.js # Next.js configuration (API rewrites)
│ ├── .env.example # Example environment variables for client
│ └── tsconfig.json # TypeScript configuration
│
├── ⚙️ server/ # Express.js backend
│ ├── 📂 src/ # Server source code
│ │ ├── 🛣️ routes/ # API route handlers
│ │ │ └── hello.ts # Example route with middleware
│ │ └── index.ts # Server entry point (Express setup)
│ ├── 🛠️ bin/ # Server scripts
│ │ ├── validate-env # Environment validator
│ │ └── www-dev # Development server launcher
│ └── tsconfig.json # TypeScript configuration
│
├── 📦 scripts/ # Project scripts
│ └── dev # Concurrent dev servers launcher
│
├── 📝 .env.example # Root environment variables example for server
├── 🔧 package.json # Root package with workspace config
└── 📦 pnpm-workspace.yaml # PNPM workspace configuration
💡 Pro Tip: In Cursor IDE, highlight any environment variable name and ask the AI for setup instructions!
NEXT_PUBLIC_API_URL: Backend API URL (default: http://localhost:3001) 🌐NEXT_PUBLIC_TELEGRAM_BOT_NAME: Telegram bot name without the @ symbol, you can get it from BotFather after creating your bot (default: your_bot_username) 🤖PORT: Server port (default: 3001) 🚪
NODE_ENV: Environment (development/production) 🌍
TELEGRAM_BOT_TOKEN: 🤖
/newbotOPENAI_API_KEY: 🧠
NGROK_AUTH_TOKEN: 🔗
NGROK_DOMAIN: 🔗
COLLABLAND_API_KEY: 🤝
GAIANET_MODEL: 🤖
GAIANET_SERVER_URL: 🌐
GAIANET_EMBEDDING_MODEL: 🧬
USE_GAIANET_EMBEDDING: ⚙️
JOKERACE_CONTRACT_ADDRESS: 🎰
ELIZA_CHARACTER_PATH: 🤖
TOKEN_DETAILS_PATH: Points to a JSON/JSONC file containing your token metadata for minting
cp token_metadata.example.jsonc token.jsonctoken.jsoncTWITTER_CLIENT_ID & TWITTER_CLIENT_SECRET: Authentication credentials for Twitter API integration
TWITTER_CLIENT_IDTWITTER_CLIENT_SECREThttp://localhost:3001/auth/twitter/callback (development)TWITTER_CLIENT_ID=Abc123XyzClientID
TWITTER_CLIENT_SECRET=Xyz789AbcClientSecret
DISCORD_CLIENT_ID & DISCORD_CLIENT_SECRET: Authentication credentials for Discord API integration
DISCORD_CLIENT_IDDISCORD_CLIENT_SECREThttp://localhost:3001/auth/discord/callback (development)identify and email)DISCORD_CLIENT_ID=123456789012345678
DISCORD_CLIENT_SECRET=abcdef123456789xyz
GITHUB_CLIENT_ID & GITHUB_CLIENT_SECRET: Authentication credentials for GitHub OAuth integration
http://localhost:3001 (development)http://localhost:3001/auth/github/callbackGITHUB_CLIENT_IDGITHUB_CLIENT_SECRETread:user, user:emailGITHUB_CLIENT_ID=1234567890abcdef1234
GITHUB_CLIENT_SECRET=1234567890abcdef1234567890abcdef12345678
ORBIS_CONTEXT_ID, ORBIS_TABLE_ID, & ORBIS_ENV: OrbisDB table identifiers to enable gated memory storage functionality
Visit the Orbis Studio and log in with your browser wallet. Once logged in, set up a new context under the Contexts tab. Assign that value to ORBIS_CONTEXT_ID in your .env file
On the right-hand side of the same page, you should see a variable called "Environment ID" - this is the DID representation of the address you used to sign into the hosted Orbis studio. Assign this value to ORBIS_ENV in your .env file
Generate an OrbisDB seed to self-authenticate onto the Ceramic network and save to ORBIS_SEED:
pnpm gen-seed
.env file next to ORBIS_TABLE_ID:pnpm deploy-model
ORBIS_GATEWAY_URL AND CERAMIC_NODE_URL provided in your .env.example file as-isNote: For production, update the Homepage URL and callback URL to your production domain.
Security Notes:
🔒 Note: Keep these tokens secure! Never commit them to version control. The template's
.gitignorehas your back!
pnpm run build
pnpm start
NODE_ENV=productionconst ENV_HINTS = {
NEXT_PUBLIC_API_URL: "Your API URL (usually http://localhost:3001)",
// Add more hints as needed! ✨
};
const ENV_HINTS = {
PORT: "API port (usually 3001)",
NODE_ENV: "development or production",
TELEGRAM_BOT_TOKEN: "Get from @BotFather",
OPENAI_API_KEY: "Get from OpenAI dashboard",
NGROK_AUTH_TOKEN: "Get from ngrok dashboard",
// Add more hints as needed! ✨
};
cp token_metadata.example.jsonc token.jsonc
token.jsonc with your token details:{
"name": "YourToken", // Token name
"symbol": "TOKEN", // Token symbol (2-6 chars)
"description": "Your token description",
"websiteLink": "https://yoursite.com",
"twitter": "your_twitter_handle",
"discord": "https://discord.gg/your_server",
"telegram": "your_bot_telegram_username",
"nsfw": false,
"image": "ipfs://your_ipfs_hash", // Upload image to IPFS first
}
.env to point to your token file:TOKEN_DETAILS_PATH=token.jsonc
/mint command in Telegram. The bot will:Note: Make sure you have set up your COLLABLAND_API_KEY and TELEGRAM_BOT_TOKEN in .env first.
Follow these commit message guidelines to automate changelog generation:
feat: add new feature - New features (generates under 🚀 Features)fix: resolve bug - Bug fixes (generates under 🐛 Bug Fixes)docs: update readme - Documentation changes (generates under 📝 Documentation)chore: update deps - Maintenance (generates under 🧰 Maintenance)Example:
git commit -m "feat: add OAuth support for Discord"
git commit -m "fix: resolve token validation issue"
cd lit-actions
pnpm install
cp .env.example .env
Required variables:
PINATA_JWT: Your Pinata JWT for IPFS uploadsPINATA_URL: Pinata gateway URLsrc/actions/:/// <reference path="../global.d.ts" />
const go = async () => {
// Access Lit SDK APIs
const tokenId = await Lit.Actions.pubkeyToTokenId({ publicKey });
// Sign data
const signature = await Lit.Actions.signEcdsa({
publicKey,
toSign,
sigName,
});
// Return response
Lit.Actions.setResponse({
response: JSON.stringify({ result: "success" }),
});
};
go();
pnpm run dev
This will:
shims/:// shims/my-sdk.shim.js
import { MySDK } from "my-sdk";
globalThis.MySDK = MySDK;
src/global.d.ts:declare global {
const MySDK: typeof MySDK;
}
# Build only
pnpm run build
# Build & deploy to IPFS
pnpm run start
IPFS hashes are saved to actions/ipfs.json:
{
"my-action.js": {
"IpfsHash": "Qm...",
"PinSize": 12345,
"Timestamp": "2025-01-03T..."
}
}
The Lit Actions runtime provides:
Lit.Actions
signEcdsa(): Sign data with PKPpubkeyToTokenId(): Convert public key to token IDgetPermittedAuthMethods(): Get permitted auth methodscheckConditions(): Check access control conditionssetResponse(): Return data to clientsrc/global.d.tsBuilt-in SDKs
ethers: Ethereum interactionsBuffer: Buffer utilitiesType Safety
global.d.tsSDK Management
Action Structure
Deployment
pnpm run dev # Development mode
pnpm run build # Build actions
pnpm run start # Deploy to IPFS
pnpm run lint # Fix code style
pnpm run watch # Watch mode
lit-actions/
├── actions/ # Built JS + IPFS hashes
├── shims/ # SDK shims
├── src/
│ ├── actions/ # TypeScript sources
│ ├── global.d.ts # Type definitions
│ └── index.ts # IPFS deployment
├── esbuild.js # Build config
└── package.json
For more details, check the Lit Protocol docs.
GitHub checked 16h ago - refresh overdue. Recently viewed repositories target hourly refresh.