Back to Eliza

elizaOS Examples Setup Guide

packages/examples/setup-guide.html

2.0.35.1 KB
Original Source

elizaOS Examples Setup Guide

Use this page for examples that need accounts, desktop apps, cloud CLIs, game servers, API keys, or hardware before the local test clients can run end to end.

Run local verification from the repository root with bun install, then each example's bun run typecheck, bun run test, and bun run build scripts where present. Live integrations should start in dry-run or test projects.

Roblox

The Roblox example is in packages/examples/roblox. It runs an HTTP bridge for Roblox Studio scripts and uses Roblox Open Cloud for outbound MessagingService publishes.

  1. Install Roblox Studio and open or create an experience.
  2. Create a Roblox Open Cloud API key: API keys. Enable the experience/universe permissions needed for MessagingService and any DataStore testing.
  3. Enable game HTTP calls in Studio: HttpService.
  4. Add the server script from packages/examples/roblox/roblox-studio to ServerScriptService. It forwards player messages to the bridge and subscribes to the configured MessagingService topic.
cd packages/examples/roblox
export ROBLOX_API_KEY="..."
export ROBLOX_UNIVERSE_ID="..."
export ROBLOX_MESSAGING_TOPIC="eliza-agent"
export ELIZA_ROBLOX_SHARED_SECRET="dev-secret"
export ROBLOX_DRY_RUN=true
bun run start

For local Studio testing, expose the bridge with a tunnel such as ngrok or Cloudflare Tunnel and put the public URL plus shared secret into the Studio script.

Minecraft

Minecraft automation currently lives in plugins/plugin-minecraft and uses a local Mineflayer bridge server. There is no separate packages/examples/minecraft app in this worktree.

  1. Install Java and run a local Minecraft Java server, or use a test server you control. Mojang's server setup docs: Minecraft Java Server.
  2. Review Mineflayer setup and supported versions: Mineflayer.
  3. For offline local testing, configure the server for offline auth and use a test username. For production servers, use proper online auth and a dedicated account.
cd plugins/plugin-minecraft/mineflayer-server
bun install
export MC_SERVER_PORT=3457
export MC_HOST=127.0.0.1
export MC_PORT=25565
export MC_AUTH=offline
export MC_USERNAME=ElizaBot
bun run build
bun run start

Other Human-Gated Examples

ExampleSetup linksLocal command
AWSAWS CLI, AWS SAM CLIcd packages/examples/aws && bun run test
GCPGoogle Cloud CLI, Cloud Run Node.jscd packages/examples/gcp && bun run build
CloudflareWrangler, Worker secretscd packages/examples/cloudflare && bun run dev
ConvexConvex quickstart, Convex env varscd packages/examples/convex && convex dev
SupabaseSupabase CLI, Edge Function secretscd packages/examples/supabase && supabase start
VercelVercel CLI, Vercel env varscd packages/examples/vercel && bun run dev
Social botsDiscord apps, Telegram bots, Bluesky API, Neynar/FarcasterUse each package README and dry-run flags first.
SmartglassesEven Hub setup, Noble BLEcd packages/examples/smartglasses && bun run test
Wallet/tradingSolana CLI, Birdeye API, LI.FIUse paper trading and isolated test wallets first.

Model Keys

Most server examples need one model provider key. Common options are OpenAI, Anthropic, Google GenAI, Groq, xAI, and OpenRouter.