Skip to main content

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)

Chinese Models (6)

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)

Note: Individual provider plugins (@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_AGENTS if needed
  • AGENTS.md - ElizaCloud integration details and recent changes
  • CLAUDE.md - Development guidelines and architecture
  • docs/duel-stack.md - Duel stack configuration
  • packages/server/.env.example - Complete configuration reference
  • ElizaOS Documentation - Official ElizaOS docs