OpenCloud
AI

AI Connections (9Router)

Manage your AI service connections and integrations on OpenCloud using 9Router.

AI Connections (9Router)

The AI Connections page lets you manage integrations with AI services and large language models (LLMs). This is where you configure how your AI agents connect to AI providers.

For step-by-step integration with OpenClaw, see Connect OpenClaw to 9Router.

What are AI Connections?

AI Connections are links between your OpenCloud applications and external AI services (like OpenAI's GPT, Anthropic's Claude, or other AI models). Instead of configuring each AI connection separately in every application, you can manage them centrally from this page.

OpenCloud uses 9Router — a lightweight proxy and management tool — as the engine behind AI Connections. It acts as a central hub that sits between your applications and AI providers, giving you a single place to manage all your AI connections.

Your Apps → 9Router → OpenAI, Anthropic, Google, etc.

Key features

FeatureDescription
Central API managementConfigure all AI provider keys in one place
Provider routingRoute requests to different AI providers based on rules
Load balancingSpread requests across multiple API keys or providers
ObservabilityTrack all AI API calls — see which apps use what, how much, and when
Model aliasesCreate shortcut names for AI models (e.g., "smart" → "gpt-4o")
API key managementCreate API keys for your apps to use when connecting through AI Connections
Proxy poolsManage multiple proxies for API connections
Login protectionPassword-protected admin interface

When should you use AI Connections?

Use AI Connections if you:

  • Have multiple applications that use AI models
  • Want to manage all AI API keys in one place
  • Need to track AI usage across your applications
  • Want to route between providers (e.g., use Anthropic for some tasks, OpenAI for others)

Requirements on OpenCloud

RequirementDetails
TypeAddon (system service)
DatabaseNone required
PlanFixed addon plan (1 CPU, 1 GB RAM, ~$0.50/month)
Default port20128

Installation

Step-by-step deployment

  1. Deploy 9Router
    9Router is deployed as an addon (a lightweight system service):
    • Go to Applications > Create Application (or look for the Addons section)
    • Select 9Router
    • The plan is fixed: 1 CPU, 1 GB RAM, 5 GB storage (~$0.50/month)
    • Select your project
    • Click Deploy
  2. Get your login password
    • Go to your 9Router application > Environment Variables
    • Find INITIAL_PASSWORD — this is your admin login password
  3. Access 9Router
    Open the 9Router link and log in with your password.

Setting up AI providers

After logging in, add your AI provider connections:

  1. Go to Provider Connections in the 9Router dashboard
  2. Click Add Provider
  3. Enter your AI provider details:
    • Provider name (e.g., "OpenAI", "Anthropic")
    • API Key — Your provider's API key
    • Base URL — The API endpoint (e.g., https://api.openai.com/v1)
  4. Click Save
  5. Repeat for each AI provider you want to use

Creating API keys for your apps

To let your other applications connect through 9Router:

  1. Go to API Keys in the 9Router dashboard
  2. Click Create API Key
  3. Give it a name (e.g., "n8n-key", "openclaw-key")
  4. Copy the generated key
  5. In your application's environment variables, set the AI API key to this 9Router key, and the API base URL to your 9Router's address

Setting up model aliases

Model aliases let you create friendly names for AI models:

  1. Go to Model Aliases in the dashboard
  2. Add an alias:
    • Alias name: smart (or any name you like)
    • Target model: gpt-4o (the actual model name)
  3. Now your apps can request model smart and 9Router routes it to gpt-4o

Configuration

SettingDefaultDescription
INITIAL_PASSWORDAuto-generatedAdmin login password
ROUTER_PORT20128API/UI port
ObservabilityEnabledTracks up to 1,000 API call records
Login requiredYesPassword protection is on by default

Observability

9Router tracks all API calls passing through it. In the dashboard, you can see:

  • Total number of API calls
  • Calls per provider
  • Calls per application
  • Response times
  • Error rates

This data helps you understand your AI usage patterns and costs.

Troubleshooting

ProblemSolution
Can't log inCheck INITIAL_PASSWORD in environment variables
Apps can't connectVerify the 9Router URL and API key in your app's config
Provider errorsCheck that your AI provider API key is valid and has credit
Copyright © 2026