Installation Guide
This guide is for the team that installs and operates AgentCube. It walks the install path end to end: deploy the Context Engine and the connectors, register the connectors with the Context Engine, and connect your AI platform to the Context Engine. For where each piece sits and why, start with Architecture.
Prerequisites
Section titled “Prerequisites”Before you begin, ensure you have:
- Oracle EPM environment — Essbase 21c and/or Planning Cloud (EPBCS/PBCS), and/or FCCS, each with REST API access
- Container hosting platform — Azure Container Apps, AWS ECS, OCI Container Instances, Kubernetes, or any platform that runs Linux containers. You run both the Context Engine and the connectors here.
- A PostgreSQL database the Context Engine can use for its registry, metadata cache, and audit log, with the pgvector extension installed. The Context Engine stops at startup with “pgvector extension is required but not installed” if it is missing. On managed PostgreSQL the Context Engine’s database user usually cannot create extensions, so have your database administrator run
CREATE EXTENSION vector;on that database before the Context Engine starts for the first time. - An AgentCube license key issued by Caprus AI for your deployment, and outbound HTTPS (443) from the Context Engine to
https://licensing.caprus.aiso it can validate that key - AI platform account — Claude.ai, Microsoft Copilot Studio, ChatGPT, Google Gemini, or another MCP-compatible client
For SSO deployments, you will also need:
- Identity provider — Microsoft Entra ID, Okta, Auth0, Keycloak, or any OIDC-compliant provider
- OCI Identity Domain — for the Oracle token exchange (free tier is sufficient)
How the install fits together
Section titled “How the install fits together”AgentCube is self-hosted: everything runs inside your environment. The Context Engine is the hub your AI platform connects to as a single MCP endpoint; the connectors sit behind it as data adapters that speak Oracle’s native REST APIs. The AI platform never addresses a connector directly.
The install path is the same shape for every deployment:
- Deploy the connectors for the Oracle systems you use — one or more container images per system. Container Deployment
- Deploy the Context Engine alongside them, backed by your PostgreSQL database. Set
AGENTCUBE_CE_CREDENTIAL_KEY, the encryption key for the secrets the Context Engine stores (connector credentials and your license key); without it you cannot register connected systems or install a license. For the first start, also setAGENTCUBE_CE_ADMIN_USERNAMEandAGENTCUBE_CE_ADMIN_PASSWORD: they create the first admin console account, and the Context Engine will not start against an empty admin table without them. Environment Variables - Install your license. Sign in to the admin console, open Admin & Security → License, paste the key into License key exactly as issued, and select Save. The Context Engine validates the key with the Caprus AI licensing service and stores it, encrypted, only if the service accepts it. To script it, call
PUT /api/v1/licensewith an API key. Until a valid license is installed, the Context Engine cannot add data sources. - Register and bind each connector with the Context Engine so it knows what to route where.
- Choose an identity posture: service account, delegated credential, or federated SSO (below).
- Connect your AI platform to the Context Engine’s single endpoint. Connecting to Claude.ai · Connecting to Copilot Studio · Connecting to ChatGPT · Connecting to Gemini
- Verify the deployment end to end. Verification
Choose your identity posture
Section titled “Choose your identity posture”The connection target is always the Context Engine; what differs is how a caller is attributed to Oracle. This is a lateral choice, not a ladder — pick the posture your deployment needs.
- Basic / service account — one shared Oracle credential, set on the connector, authenticates every call. Simple to stand up, but valid only on an admin (metadata) connector: a connector running in user (data) mode refuses to start with it, because it carries no per-call identity. → Quick Start — Basic Auth
- Delegated credential — you enter one Oracle service-account username and password when you register the connector in the Context Engine, which stores it encrypted and forwards it on each call; the connector itself holds no credential. Oracle’s audit trail shows that one account, while the Context Engine’s audit log records which signed-in user made each call when Context Engine sign-in (
AGENTCUBE_CE_AUTH_MODE=oidc) is enabled. This is the recommended posture for the admin (metadata) connector. - Federated SSO (OIDC) — each user authenticates through your corporate IdP and the per-user identity is carried through to Oracle, so users see only the data they are entitled to. This is the posture for user (data) connectors. A delegated credential is also allowed on a user connector as an interim pilot posture (Oracle then sees one shared account); plain
basicis refused in user mode. → SSO Setup Overview
For how each posture pairs with admin and user connector instances, see Auth Mode Management.
Security model
Section titled “Security model”AgentCube enforces your existing data source security — it adds no authorization layer of its own.
- Source-native authorization — Oracle enforces its own security on every call. Under federated SSO users see only what Oracle grants them; under a service account or delegated credential, every user sees what that one account is granted. If Oracle would deny it, so does AgentCube.
- Per-user attribution — under federated SSO, the authenticated identity is carried through to Oracle, so Oracle’s own audit records the real person.
- No business data is persisted — member-level data is fetched on demand and streamed back to the AI session; the connectors are stateless and hold no business data. Every data query hits Oracle fresh.
- Metadata is cached — the Context Engine caches structural facts (which applications, dimensions, and hierarchies exist) in the PostgreSQL database you provision and operate. This is metadata only, not member data, and none of it is sent to Caprus. The only outbound call to Caprus is license validation, which carries the license key, the Context Engine version and an opaque deployment identifier; never Oracle data, metadata or user information.
Deployment steps
Section titled “Deployment steps”| Step | Basic Auth | SSO |
|---|---|---|
| 1. Identity provider setup | — | Required |
| 2. OCI Identity Domain setup | — | Required |
| 3. Signing key generation | — | Required |
| 4. Deploy connectors + Context Engine | Required | Required |
5. Environment variables (including AGENTCUBE_CE_CREDENTIAL_KEY) | Required | Required |
| 6. Install license key (Admin & Security → License) | Required | Required |
| 7. Connect AI platform | Required | Required |
| 8. Verify | Required | Required |