Skip to main content

ElizaCloud Integration

Hyperscape uses ElizaCloud to provide unified access to 13 frontier AI models for duel arena agents.

Overview

ElizaCloud is a unified API gateway that provides access to multiple LLM providers through a single API key. This simplifies configuration and reduces the number of API keys needed for AI agent deployment.

Supported Models

American Models (7)

Chinese Models (6)

Configuration

Environment Variables

Agent Configuration

ElizaCloud is configured as a model provider in agentHelpers.ts:

Model Agent Spawning

Duel arena agents are configured in ModelAgentSpawner.ts:

Benefits

Simplified Configuration

Before (Multiple API Keys):
After (Single API Key):

Unified Error Handling

ElizaCloud provides consistent error handling and retry logic across all providers:
  • Automatic retries on rate limits
  • Consistent error messages
  • Unified logging format

Model Routing

ElizaCloud handles model routing internally:

Migration from Individual Providers

Step 1: Get ElizaCloud API Key

Sign up at ElizaCloud and obtain your API key.

Step 2: Update Environment Variables

Step 3: Update Agent Configuration

No code changes required - agents automatically use ElizaCloud when ELIZAOS_CLOUD_API_KEY is set.

Step 4: Verify

Troubleshooting

API Key Not Found

Error: [Agent] Plugin module loaded but no export found for <model> Solution: Ensure ELIZAOS_CLOUD_API_KEY is set in packages/server/.env:

Model Not Available

Error: Model <model-name> not found Solution: Check that the model path is correct. ElizaCloud uses provider-prefixed paths:
  • openai/gpt-5
  • gpt-5

Rate Limiting

ElizaCloud enforces rate limits per provider. If you hit rate limits:
  1. Check your ElizaCloud dashboard for usage
  2. Upgrade your ElizaCloud plan
  3. Reduce MAX_MODEL_AGENTS in ecosystem.config.cjs

Advanced Configuration

Custom Small Models

Override the default small model for a specific provider:

Provider-Specific Settings

  • packages/server/src/eliza/agentHelpers.ts - ElizaCloud provider configuration
  • packages/server/src/eliza/ModelAgentSpawner.ts - Model agent spawning logic
  • packages/plugin-hyperscape/src/index.ts - ElizaCloud plugin type definitions
  • ecosystem.config.cjs - PM2 environment configuration
  • packages/server/.env.example - Environment variable documentation