Introduction
OpulCloud is an Agent-Native Cloud platform. It provides an OpenAI-compatible API with built-in vector memory, serverless functions, Database branching, and Agent-to-Agent (A2A) communication.
Quickstart
OpulCloud is fully compatible with the OpenAI SDK. Just change the base URL and API key.
from openai import OpenAI
client = OpenAI(
base_url="https://api.opulcloud.com/v1",
api_key="oc_live_YOUR_KEY"
)
response = client.chat.completions.create(
model="openai/gpt-oss-120b",
messages=[{"role": "user", "content": "Hello!"}]
)Chat Completions
OpulCloud is fully compatible with the OpenAI SDK. You can use the standard openai Python or Node.js libraries without changing your application code.
Simply change your base_url to https://api.opulcloud.com/v1 and use your OpulCloud API key. Requests are routed securely to the specific provider you select (OpenAI, Anthropic, or Groq) using your own BYOK (Bring Your Own Key) credentials.
# Advanced: Stream responses and inject memory
response = client.chat.completions.create(
model="openai/gpt-oss-120b",
messages=[
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "What did we talk about yesterday?"}
],
stream=True, # Stream tokens as they generate
extra_body={
"enable_memory": True # Auto-inject relevant vector memory
}
)
for chunk in response:
print(chunk.choices[0].delta.content or "", end="")Memory
Store and retrieve vector embeddings natively. Your agents will never forget context across sessions. OpulCloud handles the embedding generation and vector search automatically.
The memory API uses pgvector under the hood for millisecond semantic search over millions of embeddings.
// Add a memory to the vector store
await cloud.memory.add("User loves pepperoni pizza");
// Search for relevant memories
const memory = await cloud.memory.search("What food does the user like?");Agent-to-Agent (A2A)
Enable your agents to communicate with each other using the Agent-to-Agent protocol. Agents can discover each other's capabilities, delegate tasks, and share context.
Register an agent using the /v1/a2a/register endpoint, then use /v1/a2a/agents to discover other agents in your workspace.
Agent Approvals
Built-in human-in-the-loop approval gates. Ensure agents ask for permission before executing destructive actions like sending emails, deleting data, or making payments.
When an agent requests an action, the request is paused. You can review it in the Approvals dashboard and approve or deny it. Once approved, the agent resumes execution.
MCP Server
OpulCloud is a native Model Context Protocol (MCP) server. You can connect AI coding agents like Cursor, Claude Desktop, or Windsurf directly to your project memory, database, and vector search.
Connection Details
- Transport:
streamable-http - URL:
https://api.opulcloud.com/v1/mcp - Headers:
Authorization: Bearer YOUR_API_KEY X-OpulCloud-Agent-Id: your-agent-name
Cursor Configuration
Add this to your mcp.json file:
{
"mcpServers": {
"opulcloud": {
"url": "https://api.opulcloud.com/v1/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_KEY",
"X-OpulCloud-Agent-Id": "cursor-agent"
}
}
}
}Available Tools
project_memory_getGet all saved architectural rules and context for this project.
memory_searchSearch long-term memory using vector similarity.
db_queryRun raw SQL queries against the database.