Back to Eliza

Examples Test Credentials

packages/examples/README.md

2.0.19.9 KB
Original Source

Examples Test Credentials

This directory contains examples that range from fully local demos to live integrations that post to external services, deploy cloud functions, or submit real blockchain transactions.

The normal local validation path does not need API keys:

bash
# From the repository root, run each package's available build/typecheck/lint/test scripts.
# The individual package READMEs contain app-specific start commands.
bun install

For total live testing, configure the credentials below. Never commit .env files, private keys, app passwords, or bot tokens.

Model Provider Keys

Many examples accept one model provider. To test every provider path, configure all of these; otherwise set the provider used by the example you are running.

VariableUsed byNotes
OPENAI_API_KEYMost server, chat, cloud, social, MCP, REST, and deployment examplesRequired for examples that only use OpenAI. Some examples fall back to local ELIZA mode when unset.
ANTHROPIC_API_KEYchat, form, code, convex, discord, bluesky, traderRequired when forcing Anthropic or testing Anthropic provider flows.
XAI_API_KEYchat, form, convex, twitter-xaiRequired for the X/Grok example.
GOOGLE_GENERATIVE_AI_API_KEYchat, form, convex, app examples, browser extension, avatarRequired for Google GenAI provider flows.
GROQ_API_KEYchat, form, convex, app examples, browser extension, avatarRequired for Groq provider flows.
OPENROUTER_API_KEY / LLM_API_KEYmoltbook, app examples, optional model-provider pathsmoltbook reads LLM_API_KEY first, then OPENROUTER_API_KEY, then OPENAI_API_KEY.
ELEVENLABS_API_KEYavatarRequired for voice output in the avatar demo.

Database And Deployment Keys

Variable / setupUsed byNotes
POSTGRES_URLnext, rest-api/*, telegram, discord, bluesky, twitter-xai, text-adventure, tic-tac-toeOptional in many examples because PGLite is used by default; required for production-like persistence.
DATABASE_URLfarcasterOptional PostgreSQL URL for the Farcaster agent.
CONVEX_URLconvex test clientHTTP Actions URL printed by convex dev or from a deployed Convex project.
Convex env keysconvexSet one model provider in Convex with convex env set OPENAI_API_KEY ... or equivalent.
SUPABASE_FUNCTION_URL, SUPABASE_ANON_KEYsupabase test clientRequired to test deployed Supabase Edge Functions.
Supabase secretssupabaseSet OPENAI_API_KEY with supabase secrets set OPENAI_API_KEY=....
Vercel envvercelSet OPENAI_API_KEY in Vercel env. VERCEL_URL can point the test client at a deployment.
Cloudflare secretcloudflareSet OPENAI_API_KEY with wrangler secret put OPENAI_API_KEY.
AWS CLI/SAM credentialsawsRequired for deploy testing; also set OPENAI_API_KEY as the Lambda parameter/secret.
GCP project credentialsgcpRequired for deploy testing. Use PROJECT_ID, GCP_REGION, and OPENAI_API_KEY; ELIZA_WORKER_URL points tests at a deployed worker.

Platform And Bot Credentials

ExampleRequired for full live testOptional / safety flags
discordDISCORD_APPLICATION_ID, DISCORD_API_TOKEN, plus one model keyTELEGRAM_BOT_TOKEN for multi-platform setup, POSTGRES_URL, LOG_LEVEL
telegramTELEGRAM_BOT_TOKEN, OPENAI_API_KEYPOSTGRES_URL
blueskyBLUESKY_HANDLE, BLUESKY_PASSWORD, plus OPENAI_API_KEY or ANTHROPIC_API_KEYBLUESKY_SERVICE, BLUESKY_DRY_RUN, BLUESKY_ENABLE_POSTING, BLUESKY_ENABLE_DMS, POSTGRES_URL
farcasterOPENAI_API_KEY, FARCASTER_FID, FARCASTER_SIGNER_UUID, FARCASTER_NEYNAR_API_KEYStart with FARCASTER_DRY_RUN=true; set ENABLE_CAST=true only when ready to post.
farcaster-miniappELIZA_API_URL, FARCASTER_FID, FARCASTER_SIGNER_UUID, FARCASTER_NEYNAR_API_KEYSOLANA_RPC_URL, SOLANA_PRIVATE_KEY, EVM_PRIVATE_KEY, chain provider URLs, LIFI_API_KEY
twitter-xaiXAI_API_KEY and X authRecommended: TWITTER_AUTH_MODE=broker with ELIZAOS_CLOUD_API_KEY or TWITTER_BROKER_TOKEN. Env-token mode requires TWITTER_API_KEY, TWITTER_API_SECRET_KEY, TWITTER_ACCESS_TOKEN, TWITTER_ACCESS_TOKEN_SECRET; TWITTER_BEARER_TOKEN is read-only. Start with TWITTER_DRY_RUN=true.
robloxROBLOX_API_KEY, ROBLOX_UNIVERSE_ID, Roblox Studio place setup, and game-side bridge scriptROBLOX_PLACE_ID, ROBLOX_MESSAGING_TOPIC, ROBLOX_DRY_RUN, ELIZA_ROBLOX_SHARED_SECRET, OPENAI_API_KEY for full LLM behavior.
moltbookLLM_API_KEY and MOLTBOOK_TOKEN for posting/commentingMOLTBOOK_TOKEN unset gives read-only mode.

Wallet And Trading Credentials

These examples can move real assets. Use test wallets or tiny funded wallets until the full flow is verified.

ExampleRequired for full live testOptional / notes
traderSOLANA_PRIVATE_KEY, SOLANA_RPC_URL, BIRDEYE_API_KEY, and ANTHROPIC_API_KEY or OPENAI_API_KEYPaper trading is the default. Live trading must be enabled deliberately in the UI/config.
lp-managerSOLANA_PRIVATE_KEY, SOLANA_RPC_URL, EVM_PRIVATE_KEY, EVM RPC URLsEVM RPCs include ETHEREUM_RPC_URL, BASE_RPC_URL, ARBITRUM_RPC_URL, BSC_RPC_URL, POLYGON_RPC_URL, OPTIMISM_RPC_URL.
moltbook/bags-claimerSolana wallet/funding where required by the claim flowSOLANA_RPC_URL defaults to public mainnet RPC but an authenticated RPC is recommended.
farcaster-miniappSOLANA_PRIVATE_KEY, EVM_PRIVATE_KEY for wallet transaction pathsLIFI_API_KEY improves route/rate coverage.

Example-Specific Checklist

PathLive testing requirement
_pluginNo external API key required for Vitest. Optional Cypress component tests need the Cypress/Vite harness to be compatible with the installed Vite/Cypress versions.
a2aOPENAI_API_KEY for model-backed mode; otherwise deterministic local ELIZA mode. A2A_URL points the test client at a running server.
app/capacitorConfigure provider keys through the app/backend settings. VITE_CHAT_BACKEND_URL points the frontend at a backend.
app/electronConfigure provider keys through the app/backend settings. ELECTRON_RENDERER_URL is for frontend dev-server mode.
autonomousNo hosted model API required by default. Local model paths use MODELS_DIR and LOCAL_SMALL_MODEL; shell sandbox uses SHELL_ALLOWED_DIRECTORY.
avatarProvider key for selected model; ELEVENLABS_API_KEY for TTS.
awsOPENAI_API_KEY plus AWS/SAM credentials for deployment. Local tests skip live chat when no key is set.
blueskyBLUESKY_HANDLE, BLUESKY_PASSWORD, and a model key. LIVE_TEST=true enables live integration tests.
browser-extensionBuild needs no API key. Live browser use requires adding a provider API key in extension settings. Safari also requires Xcode signing/install.
chatOne of OPENAI_API_KEY, ANTHROPIC_API_KEY, XAI_API_KEY, GOOGLE_GENERATIVE_AI_API_KEY, GROQ_API_KEY.
cloudflareOPENAI_API_KEY as a Wrangler secret for deployed Worker tests.
codeOPENAI_API_KEY or ANTHROPIC_API_KEY; `ELIZA_CODE_PROVIDER=openai
convexRun convex dev or deploy Convex, set CONVEX_URL, and set one provider key in Convex env.
discordDiscord app ID/token plus a model provider key.
elizagotchiNo API keys; local game logic only.
farcasterOpenAI key, Neynar key, FID, signer UUID. Keep dry-run enabled until posting is intended.
farcaster-miniappEliza API URL, Farcaster/Neynar keys, and wallet/provider keys for transaction paths.
formOne model provider key from the shared provider list.
game-of-lifeNo API keys; local game logic only.
gcpGCP credentials/project/region plus OPENAI_API_KEY; use ELIZA_WORKER_URL for deployed test client runs.
htmlNo API keys; browser ELIZA/localdb demo.
lp-managerWallet private keys and RPC endpoints for Solana/EVM live liquidity actions.
mcpOPENAI_API_KEY; optional MCP_PORT, OPENAI_BASE_URL, model overrides.
moltbookLLM_API_KEY; MOLTBOOK_TOKEN for write actions.
moltbook/bags-claimerSolana RPC/wallet setup needed by the claim target.
nextOPENAI_API_KEY; POSTGRES_URL for production-like persistence.
reactNo API keys; browser ELIZA/PGLite demo.
rest-api/elysia, rest-api/express, rest-api/honoOPENAI_API_KEY for LLM responses; otherwise local ELIZA fallback. POSTGRES_URL optional.
robloxRoblox Open Cloud key/universe, Studio place, bridge Lua script, shared secret/topic alignment.
supabaseSupabase CLI/project, OPENAI_API_KEY secret, deployed/local function URL and anon key for client tests.
telegramTELEGRAM_BOT_TOKEN, OPENAI_API_KEY.
text-adventureNo API key required for local validation; POSTGRES_URL/PGLITE_DATA_DIR optional persistence settings.
tic-tac-toeNo API key required for local validation; PGLITE_DATA_DIR optional.
traderSolana wallet/RPC, Birdeye key, and model key for LLM strategy.
twitter-xaiXAI_API_KEY plus X/Twitter auth. Start with TWITTER_DRY_RUN=true.
vercelOPENAI_API_KEY in Vercel env; VERCEL_URL for test client target.

Known Human-Gated Items

  • Roblox, Safari extension installation, AWS, GCP, Cloudflare, Vercel, Supabase, and Convex all require external accounts or desktop/cloud setup beyond local script execution.
  • Social examples can post publicly. Keep dry-run flags enabled until the account, bot permissions, and content behavior are confirmed.
  • Trading examples can transact with real funds. Use isolated wallets and minimal balances during live E2E testing.