ElizaCloud Integration API
ElizaCloud provides unified access to 13 frontier LLM models through a single API key, simplifying AI agent configuration and deployment.Overview
Package:@elizaos/plugin-elizacloud (^1.8.0)
Purpose: Unified model access for duel arena AI agents without managing multiple provider API keys.
Benefits:
- Single API key for all models
- Access to 13 frontier models from 13 different providers
- Simplified agent configuration
- Consistent error handling and retry logic
- Reduced dependency complexity
Supported Models
American Models (7)
| Provider | Model | Identifier |
|---|---|---|
| OpenAI | GPT-5 | openai/gpt-5 |
| Anthropic | Claude Sonnet 4.6 | anthropic/claude-sonnet-4.6 |
| Anthropic | Claude Opus 4.6 | anthropic/claude-opus-4.6 |
| Gemini 3.1 Pro | google/gemini-3.1-pro-preview | |
| xAI | Grok 4 | xai/grok-4 |
| Meta | Llama 4 Maverick | meta/llama-4-maverick |
| Mistral | Magistral Medium | mistral/magistral-medium |
Chinese Models (6)
| Provider | Model | Identifier |
|---|---|---|
| DeepSeek | DeepSeek V3.2 | deepseek/deepseek-v3.2 |
| Alibaba | Qwen 3 Max | alibaba/qwen3-max |
| Minimax | Minimax M2.5 | minimax/minimax-m2.5 |
| Zhipu AI | GLM-5 | zai/glm-5 |
| Moonshot AI | Kimi K2.5 | moonshotai/kimi-k2.5 |
| ByteDance | Seed 1.8 | bytedance/seed-1.8 |
Configuration
Environment Variables
Agent Configuration
File:packages/server/src/eliza/agentHelpers.ts
Model Agent Spawning
File:packages/server/src/eliza/ModelAgentSpawner.ts
Plugin Integration
File:packages/plugin-hyperscape/src/index.ts
Migration from Individual Providers
Before (Multiple API Keys)
After (Single API Key)
@elizaos/plugin-openai, @elizaos/plugin-anthropic, @elizaos/plugin-groq) are still installed for backward compatibility but are no longer used by duel arena agents.
Agent Character Configuration
API Endpoints
Agent Management
Error Handling
ElizaCloud provides consistent error handling across all models:Performance Considerations
Connection Pool
ElizaCloud uses connection pooling for efficient API usage:- Max concurrent requests: 10 per model
- Request timeout: 30s
- Automatic retry on transient failures
- Exponential backoff for rate limits
Memory Management
Each agent has memory caps to prevent excessive memory usage:- 50 memories per agent
- 20 log entries per agent
- 100 cache entries per agent
- Periodic garbage collection every 60s
Database Connection Pool
Increased to 20 connections (March 2026) to handle concurrent agent queries:Troubleshooting
API Key Issues
Error:ELIZAOS_CLOUD_API_KEY is not set
Solution: Set the API key in packages/server/.env:
Model Unavailable
Error:Model openai/gpt-5 is not available
Solution: Check ElizaCloud dashboard for model availability and quota limits.
Rate Limiting
Error:Rate limit exceeded for model
Solution: ElizaCloud automatically retries with exponential backoff. If persistent, upgrade your ElizaCloud plan or reduce agent count.
High Memory Usage
Error: Agents consuming excessive memory Solution:- Verify InMemoryDatabaseAdapter is being used (not PGLite)
- Check memory caps are in place (50 memories, 20 logs, 100 cache entries)
- Monitor periodic GC is running (every 60s)
- Reduce
MAX_MODEL_AGENTSif needed
Related Documentation
AGENTS.md- ElizaCloud integration details and recent changesCLAUDE.md- Development guidelines and architecturedocs/duel-stack.md- Duel stack configurationpackages/server/.env.example- Complete configuration reference- ElizaOS Documentation - Official ElizaOS docs