Self-hosted deployment
Run Orca Agent Engine in your own infrastructure with local stacks or the Kubernetes Helm chart.
Orca Agent Engine is open source under Apache-2.0 and is in Developer Preview. Its source is at orca-ae/orca-agent-engine. A self-hosted installation runs the registry in your infrastructure. You operate its databases, object storage, runtime, and credentials. Model and MCP requests still reach the upstream providers and servers you configure. Optional observability export has a separate egress and data-disclosure boundary.
Choose a path
| Path | Runs | Use it for |
|---|---|---|
ork local tutorial | Published Registry and Harness images, Postgres, and RustFS in Compose | Using the local registry through the API, CLI, and SDKs; testing request guardrails |
| Local self-hosted stack | Postgres and RustFS in Compose; registry and environment worker on your machine | Testing the self-hosted worker and session-runner path with the mock provider |
| Local full stack | Postgres, RustFS, the selected transcript backend, and AI Gateway in Compose; registry and harness on your machine | Developing the separate harness path and gateway integration |
| Kubernetes chart | Registry, harness, AI Gateway, and the CLI toolset | Running the chart against external storage, broker, and sandbox services |
ork local uses an in-memory sandbox and starts AI Gateway only with --with-gateway. The local worker stack uses a Postgres transcript store and does not start a broker, harness server, or AI Gateway. The full local stack and the Helm chart include AI Gateway for MCP egress and Kafka audit. The gateway is a separate product and can also be installed on its own.
Every Orca client - the ork CLI, the TypeScript and Python SDKs, Anthropic-compatible SDKs, and raw HTTP - talks to the same core registry API. Guides target the registry endpoint you configure. The open-source engine also serves the runtime.runorca.ai/v1, policy.runorca.ai/v1, and pricing.runorca.ai/v1 extension groups. StreamNative Cloud adds cloud.sn.io/v1 for providers and other Workspace integrations, and widens the core /v1/triggers schema with Kafka and Pulsar sources, additional session modes, and multiple replicas.
Configure clients
Once you have an endpoint, configure each client with the URL and a credential accepted by that deployment:
A self-hosted Workspace API key is accepted as x-api-key. The cURL examples on
deployment-neutral pages use Bearer, so replace that header with x-api-key when
using a Workspace key. Both SDKs send ORCA_API_KEY as Bearer;
supply an explicit x-api-key header instead. See
Connect to the registry.
| Surface | Base URL | Credential |
|---|---|---|
ork CLI | ORCA_REGISTRY_URL (host root, no path) | Exactly one: ORCA_ACCESS_TOKEN (Bearer) or ORCA_API_KEY (x-api-key) |
| cURL examples | ORCA_REGISTRY_URL | ORCA_ACCESS_TOKEN (Bearer), unless example explicitly uses x-api-key |
TypeScript SDK (@runorca/orca-sdk) | ORCA_BASE_URL (host root, no path) | ORCA_API_KEY, sent as Bearer |
Python SDK (runorca) | ORCA_BASE_URL (host root, no path) | ORCA_API_KEY, sent as Bearer |
Use the URL where you exposed the registry service.
For session-derived traces, enable the chart's optional observability exporter with Kafka Transcript storage. It is a component of your deployment, not a separate deployment path.
Connect to the registry
Use the registry's public listener as the client endpoint. The default ports are:
| Listener | Port | Serves |
|---|---|---|
| Public | 8080 | Core /v1/... routes and API discovery, authenticated with a Workspace API key or configured OIDC token |
| Internal | 8081 | /internal/v1/... routes for authenticated service workloads |
| Admin | 8082 | /v1/organizations/... and /v1/platform/... management routes |
For an operator-managed installation, run the one-time offline registry:bootstrap-admin command to create the first organization, Workspace, organization admin key, and platform key. It refuses to run after an organization exists. An organization admin can then mint a Workspace API key through POST /v1/organizations/workspaces/{workspace_id}/api_keys on the admin listener. The plaintext key is returned once. See Workspace administration for the trust hierarchy and rotation flow. The local worker script seeds a test Workspace key for its own E2E fixture; it does not print that key for general client use.
Set the base URL to the host root, without /v1. A Workspace API key is sent as x-api-key:
export ORCA_REGISTRY_URL="https://<registry-host>"
export ORCA_API_KEY="<workspace-api-key>"
curl -fsS "$ORCA_REGISTRY_URL/api" -H "x-api-key: $ORCA_API_KEY"The ork CLI and Go SDK use ORCA_API_KEY as x-api-key. Their ORCA_ACCESS_TOKEN option sends Authorization: Bearer and requires a valid OIDC token. The TypeScript and Python SDKs send their ORCA_API_KEY setting as Bearer, so do not pass a Workspace API key through that setting. Supply the x-api-key header explicitly for those two SDKs:
import Orca from '@runorca/orca-sdk';
const orca = new Orca({
baseURL: process.env.ORCA_REGISTRY_URL,
apiKey: null,
defaultHeaders: { 'x-api-key': process.env.ORCA_API_KEY! },
});import os
from orca import Orca
client = Orca(
base_url=os.environ["ORCA_REGISTRY_URL"],
api_key=None,
default_headers={"x-api-key": os.environ["ORCA_API_KEY"]},
)The Go SDK reads the Workspace API key without a custom header option:
client, err := orca.New(
option.WithBaseURL(os.Getenv("ORCA_REGISTRY_URL")),
option.WithAPIKey(os.Getenv("ORCA_API_KEY")),
)Import orca "github.com/orca-ae/orca-sdk-go", "github.com/orca-ae/orca-sdk-go/option", and "os". See the Go SDK guide for a complete program.
GET /apis requires the same Workspace authentication. Agent Engine v0.5.1 advertises runtime.runorca.ai/v1 (harness catalog), policy.runorca.ai/v1 (guardrails), and pricing.runorca.ai/v1 (model prices). The ork local tutorial selects the released Registry image so all three groups are available; the CLI's older default image does not expose the runtime group. Check the response to discover the groups served by your deployment.
Available APIs
The self-hosted engine serves the core API for agents, sessions, environments, files, memory stores, skills, vaults, Git credentials, and cron triggers. Its trigger contract accepts a cron source, SESSION_PER_EVENT, and replicas: 1. StreamNative Cloud extends that contract with Kafka and Pulsar sources, more session modes, and multiple replicas.
StreamNative Cloud also serves the cloud.sn.io/v1 extension group for Workspace-dependent integrations such as model providers, connections, Pulsar Functions, packages, Pulsar IO, and Kafka Connect. The open-source registry does not serve that group. Check GET /apis for availability rather than treating every extension group as Cloud-only.
Implementation references
- Conformance matrix - implemented and partial Claude Managed Agents API operations.
- Deployment topologies - how environment target and harness mode select the execution owner.
- Gateway integration - credentials and traffic routed through Orca AI Gateway.