| title | Configuration reference |
|---|
Every setting of a Core installation has exactly one home, in one of three categories:
| Category | Examples | Home | Change it with | Takes effect |
|---|---|---|---|---|
| Process settings | Public URL, ports, logging, harnesses, execution concurrency, audit retention, OAuth origins, Runtime history | .env in the installation directory (default ~/.oac/core) |
Edit .env, then run oac apply |
oac apply recreates the services that read the changed settings |
| Secrets | Database password, credential encryption key, installation ID, Core key and the Core key digest derived from it | secrets/ in the Compose data volume, one copy each |
Initialization generates them once; oac rotate-core-key replaces the Core key and its digest |
oac rotate-core-key restarts Core and Web |
| Runtime settings | Sandbox backend and size, nodes, Projects and keys, default models, executor credentials | Core's PostgreSQL database | Web, or the Core API (/core/v1) with the Core key |
Saved without a Core restart; nodes prepare Runtime changes asynchronously |
Settings is Web's single entry for platform configuration, with Sandbox and scheduling, Workspace storage, Models and credentials and Service and deployment groups. Each setting has one editor; monitoring and node pages link to it. Forms save independently through their owning API, without a cross-resource save. Service and deployment shows the installation's addresses and the process settings Core loaded; process settings remain read-only in Web. Projects, API keys and Session executor credentials remain on their resource pages. No configuration file defines Projects or API keys.
Installer flags in installation options write .env once. To change a setting, edit .env and apply it:
~/.oac/core/oac apply- It runs
oac-core check-configwith the.envyou edited and changes nothing if a value is invalid. - It runs
docker compose up -d --wait. Compose recreates only the services whose configuration changed.
Use docker compose ps to check the services. See stop and restart for what a restart interrupts.
OAC_PUBLIC_URL is the one origin that applications, nodes, sandboxes and self-hosted executors use. Core derives the daemon WebSocket URL, the self-hosted remote_url and each sandbox's connection address from it. It is an http or https origin: the address browsers and nodes use. The installation serves Web over HTTP on OAC_WEB_PORT; a reverse proxy or hosting platform terminates HTTPS when you put one in front.
To change it, point the reverse proxy at the new address first, then edit OAC_PUBLIC_URL and run oac apply. Afterwards:
- Nodes on the old address get no new sandboxes: remove them in Web and add them again.
- Existing sandboxes and executors keep working only while the old address still reaches this Core.
- Self-hosted executors must restart with the new
remote_url, and their installer refuses an installation made for the old address: create new self-hosted Sessions and connect their hosts again.
Model providers are not process settings; see Default models.
| Variable | Default | Meaning |
|---|---|---|
OAC_PUBLIC_URL |
Required; compose.yaml sets http://localhost:8080 |
Origin applications, nodes, sandboxes and self-hosted executors use. See changing the public URL |
OAC_HOST |
127.0.0.1 |
Web bind address published by compose.yaml. The installer sets 0.0.0.0 |
OAC_WEB_PORT |
8080 |
Host port of Web |
OAC_LOG_LEVEL |
info |
debug, info, warn or error |
OAC_LOG_FORMAT |
auto |
auto, text or json |
OAC_LOG_ADD_SOURCE |
unset | 1 adds source locations |
OAC_EXECUTION_CONCURRENCY |
4 |
Concurrent execution work, from 1 to 1024 |
OAC_DEFAULT_HARNESS |
codex |
Harness used when a request does not name one |
OAC_HARNESSES |
Every registered Harness | Comma-separated Harnesses to enable besides the default one. Unknown names stop startup |
OAC_WRITE_AUDIT_RETENTION |
2160h |
Minimum 1h |
OAC_OAUTH_TRUSTED_ORIGINS |
unset | Comma-separated HTTPS origins |
OAC_HISTORY_SETTINGS_FILE |
unset | Optional Runtime history file. Sensitive; Core reports only whether it is configured |
An unset or empty value selects the default. Edit .env, then run oac apply. Core reads every process setting, and every file a setting names, once at startup and reports what it loaded at GET /core/v1/installation. oac-core check-config loads and validates the same settings and files without starting Core. The native installer catalog under OAC_PROVIDER_ROOT is not a setting; Core checks it only when it starts. Errors name the variable, never its value. Sensitive settings report only whether they are configured.
OAC_HISTORY_SETTINGS_FILE names a JSON file that tunes retained history and adds an optional OTLP export. Without it, Core keeps history in its database with the defaults below. In a Compose installation, put the file in the data volume's secrets/core/ directory, owned by UID 65532 with mode 0600, and set OAC_HISTORY_SETTINGS_FILE=/run/oac/<file name>: Core mounts that directory read-only at /run/oac. Headers may hold export credentials; they never appear in oac output or in the installation report. Unknown fields are rejected.
| Field | Default | Meaning |
|---|---|---|
sample_interval_seconds |
30 |
Periodic sampling interval, from 5 to 300 |
queue_capacity |
256 |
Records each exporter queues, at most 4096 |
timeout_seconds |
2 |
Export and history query timeout, at most 30 |
endpoint |
unset | Absolute OTLP/HTTP metrics URL, such as https://collector.example/v1/metrics. Unset, Core exports nothing and the other export fields must be unset |
transport |
unset | otlp_http; required with endpoint |
insecure |
false |
true is required for an http endpoint and rejected for https |
headers |
none | Request headers for the endpoint. Host, Content-Length, Content-Type and Content-Encoding are reserved |
The Runtime resolves its resource directories before discovering Harness adapters. <RuntimeHome> is the Runtime home selected by OAC_RUNTIME_HOME. OAC_RUNTIME_STATE_DIRECTORY defaults only when unset; an empty, relative or noncanonical explicit value is rejected. Directory settings have no secondary file or environment fallback.
| Runtime process setting | Default | Packaged Linux images |
|---|---|---|
OAC_RUNTIME_INITIALIZATION_DIRECTORY |
<RuntimeHome>/initialization |
/environment/initialization |
OAC_RUNTIME_PACKAGE_DIRECTORY |
<RuntimeHome>/packages |
/environment/packages |
OAC_RUNTIME_STATE_DIRECTORY |
<RuntimeHome> |
/environment/runtime-state |
The state directory contains retained native Harness history and capability-installation completion records. It is separate from the declared workspace directory. Selecting a separate state directory does not relocate Runtime device credentials or connection identity from their instance-private paths in the Runtime home; they must not be copied with native history. Harness onboarding defines the adapter boundary, and Environment preparation owns initialization and package behavior.
Placing state on an independent filesystem preserves those files when compute is replaced. Native continuation still requires a qualified Harness, matching ownership and confirmed stop of the previous writer. It does not preserve process memory or arbitrary files on the compute root disk.
Runtime settings live in Core's database. Change them in Web; scripts use the same Core API with the Core key.
| Setting | Where in Web | Core API | Notes |
|---|---|---|---|
| Sandbox backend: Docker, microsandbox or E2B | Settings → Sandbox and scheduling: the setup wizard, ending with Save configuration | /core/v1/sandbox/deployment |
One backend per installation, chosen after the first sign-in. Another backend needs Reset deployment first; see change the sandbox configuration |
| Sandbox size, Runtime release, E2B key and template build | Settings → Sandbox and scheduling → Change resources | /core/v1/sandbox/deployment |
Web proposes the default size the Provider declares. Existing sandboxes keep their size and release. The E2B key is write-only and encrypted |
| Nodes and their capacity | Settings → Sandbox and scheduling: Add node; Sandbox nodes → Edit node. Removal stays on the node's page | /core/v1/sandbox/enrollment-tokens, /core/v1/sandbox/nodes |
See Node capacity and the nodes guide |
| Idle suspension | Settings → Sandbox and scheduling → Capacity and suspension → Idle before suspension (seconds) → Save | PATCH /core/v1/sandbox/deployment |
Deployment-wide; see suspension policy |
| Independent workspace storage and tenant capacity | Settings → Workspace storage | /core/v1/workspace-storage |
See independent workspace storage; existing workspaces retain their configuration |
| Projects and API keys | Projects and keys: Create project, Rename, Issue key, Revoke, Archive | /core/v1/projects |
Keys are shown once; Core stores digests |
| Default model per harness | Settings → Models and credentials: Set | /core/v1/harnesses/{harness}/model-configuration |
See Default models |
| Executor credentials of a self-hosted Session | Session log, then the Session page: Executor credentials | /core/v1/projects/{project_id}/environments/{environment_id}/executor-credentials |
See self-hosted executors |
Which harnesses are enabled, and the default one, are process settings (core.harnesses, core.default_harness); Settings → Models and credentials shows them read-only. The Core administration API lists every Core API route, and the deployment contract defines the sandbox fields, limits and change rules.
The initial supported independent filesystem combination is microsandbox with the kernel NFS adapter. For a new installation, prepare storage and service accounts first, expose the mount to Core, select storage, configure microsandbox, then enroll nodes. Mount the same NFSv4.2 export on the Linux Core host and every participating node before starting their services, at the same absolute path, for example /srv/oac-workspaces. The operator manages the export, mount availability and service startup ordering. Use a trusted-client AUTH_SYS export with root_squash; do not enable no_root_squash or broaden permissions to make a check pass. Prepare the namespace and service principals according to the adapter's ownership requirements.
Core's Compose service already runs as UID 65532. Before adding a node, prepare oac-node with the same UID, home /var/lib/oac-node, a nologin shell and a nonzero primary group. Its supplementary groups may contain only its primary group, docker and kvm; an existing home must belong to that account. The installer adopts this account. Without a precreated account it allocates a system UID, which need not match Core. Resolve an existing UID or account conflict as a host administration task before enrollment; changing a running account's UID is not part of storage setup.
For a Compose deployment, add a read-write bind mount to the existing core service's volumes through the deployment platform's Compose customization. Keep the existing service volumes and user unchanged. The host source must already be the NFS mount; create_host_path: false prevents creating a missing source directory but does not establish that NFS is mounted. Mount before creating the container; after a host unmount or remount, recreate it so its mount namespace uses the intended mount.
services:
core:
volumes:
- type: bind
source: /srv/oac-workspaces
target: /srv/oac-workspaces
read_only: false
bind:
create_host_path: falseSelect storage in Settings → Workspace storage → Select new configuration, or use PUT /core/v1/workspace-storage with the Core key as described in the administration API. For first-time setup, generate separate canonical UUIDs for the immutable configuration id and the namespace marker, then submit this shape with your actual values. Restores retain their existing identities. Selection runs the adapter's availability, ownership and xattr checks in Core; it does not prove that every node can resolve the mount:
{
"id": "11111111-1111-4111-8111-111111111111",
"adapter": "nfs",
"parameters": {
"root": "/srv/oac-workspaces",
"namespace_id": "22222222-2222-4222-8222-222222222222",
"uid": 65532
},
"tenant_capacity_mib": 0
}This configuration enforces no per-workspace quota, so tenant_capacity_mib must be 0. For bounded workspaces, prepare the quota mode storage server and select a quota mode configuration with a tenant capacity instead.
Then create or update the microsandbox deployment through the sandbox deployment API, retaining the required compute resources, Runtime and provider configuration. resources.environment_disk_mib is each new workspace's capacity: 0 without quota mode, where a positive value is rejected, and at least 1024 MiB in quota mode, where 0 is refused at workspace admission. Existing workspaces keep the capacity they were admitted with when the deployment changes. Deployment workspace requirements and each Session's attachment are derived from the selected database configuration; do not add a filesystem field to the deployment or a second storage configuration to node files.
The storage form accepts the adapter identifier, its parameters as a JSON object and an optional write-only credential JSON object. Core validates these adapter-owned values; Web does not define provider-specific storage fields. Edit tenant capacity keeps the selected immutable configuration. Selecting another configuration requires a new ID and does not migrate existing workspaces.
After the filesystem and deployment are selected, use Settings → Sandbox and scheduling → Add node to enroll the prepared hosts. Connected, ready compute alone does not qualify an external filesystem; validate actual Session creation and access through each participating node before admitting application traffic. Include the independent namespace in the stopped-write backup and restore procedure.
Quota mode bounds each workspace's allocated bytes and inodes with an XFS project quota on the NFS server, set by the oac-workspace-quota command that Core calls over a restricted SSH forced command. Quota mode owns the protocol and enforcement semantics. Prepare the storage server as its administrator:
- Put the export on a local XFS filesystem mounted with enforcing project quotas (
prjquota, notpqnoenforce). The export root must be a subdirectory of that mount, for example mount/srv/xfsand export/srv/xfs/oac-workspaces; the command keeps its journal in/srv/xfs/.oac-quota, outside the export. Prepare the namespace root and marker as above. - Install
xfsprogsand Python 3.9 or newer. Installstorage/oac-workspace-quotafrom the matching distribution as/usr/local/sbin/oac-workspace-quota, owned by root with mode0755. - Write
/etc/oac/workspace-quota.json, owned by root and not writable by group or others:{"export_root": "/srv/xfs/oac-workspaces", "mount_point": "/srv/xfs"}. - Reserve a project ID range that no other project on this filesystem uses, then initialize the journal once:
oac-workspace-quota --config /etc/oac/workspace-quota.json init --projid-start 100000 --projid-end 199999. It refuses to run over an existing journal; never initialize restored storage. - Generate a dedicated key pair, for example
ssh-keygen -t ed25519 -N '' -f oac-workspace-quota. Authorize its public key for one account with a working shell, such asoac-quota, in that account'sauthorized_keys:restrict,from="<Core address>",command="sudo -n /usr/local/sbin/oac-workspace-quota --config /etc/oac/workspace-quota.json serve" ssh-ed25519 AAAA..., with the sudoers entryoac-quota ALL=(root) NOPASSWD: /usr/local/sbin/oac-workspace-quota --config /etc/oac/workspace-quota.json serve. Alternatively authorize the key for root with the same options and the command withoutsudo -nunderPermitRootLogin forced-commands-only. KeepPermitUserEnvironment no. - Read the server's public host key from
/etc/ssh/on the server itself, not from an unauthenticated network scan.
Select the quota mode configuration with the private key as its write-only credential. Delete the local private key file after a successful selection; Core keeps it encrypted with secrets/core/credential.key:
{
"id": "33333333-3333-4333-8333-333333333333",
"adapter": "nfs",
"parameters": {
"root": "/srv/oac-workspaces",
"namespace_id": "22222222-2222-4222-8222-222222222222",
"uid": 65532,
"quota": {
"endpoint": "storage.internal:22",
"user": "oac-quota",
"host_key": "ssh-ed25519 AAAA..."
}
},
"credential": {
"ssh_private_key": "-----BEGIN OPENSSH PRIVATE KEY-----\n...\n-----END OPENSSH PRIVATE KEY-----\n"
},
"tenant_capacity_mib": 65536
}Selection calls the command's read-only check through the pinned host key. Then update the deployment with the per-workspace capacity in resources.environment_disk_mib. Until that update, an installation that switched from a configuration without quotas refuses new workspaces; existing workspaces continue with their own configuration. The credential belongs to the immutable configuration. To rotate it, authorize a new key, select a new configuration ID with it, and keep the old key authorized until no workspace bound to the old configuration is still being created.
Supported recovery for quota mode is a block-level copy of the XFS filesystem; see back up.
tenant_capacity_mib is the installation's single tenant capacity policy, written only together with the selection by PUT /core/v1/workspace-storage and stored in Core's database. A positive value requires a quota mode configuration, and a quota mode configuration requires a positive value. It bounds the sum of admitted capacities of one tenant's workspaces that are not yet confirmed deleted, across configuration changes; capability validation owns the counting rules. Lowering the value refuses new workspaces only; deleting Sessions frees capacity once their storage is removed.
Session creation can succeed before this asynchronous workspace admission. While capacity is exhausted, Core retries without allocating the refused workspace or its compute; pending input keeps its original Environment input deadline. An idle Session created without input has no input deadline and waits for capacity.
Workspaces created without quota mode remain unbounded; nothing resizes or migrates them. While one is retained, its tenant cannot admit new workspaces under a positive policy until that Session is deleted.
The policy bounds what each tenant can commit, not the filesystem. Size the XFS filesystem for the number of tenants times the policy plus headroom for unbounded workspaces, identities, deletion markers, the journal and XFS metadata, or oversubscribe knowingly and monitor free space. Keep each node's checkpoint_root on separate storage. Capacity bounds provide no I/O fairness.
Core approves a node's capacity when you generate its Add node command: Sandboxes at once (max_active, default 2) and, for microsandbox only, Retained sandboxes (max_retained, default 8), with max_retained >= max_active >= 1. Docker never suspends sandboxes, so Web doesn't ask for it and Core keeps max_retained equal to max_active. Change them later in Settings → Sandbox and scheduling → Sandbox nodes with Edit node. Reservations and cleanup that is not confirmed count against capacity; lowering a limit stops no running sandbox. A node's own files can't change its capacity, size or Runtime.
core.execution_concurrency is unrelated: it limits concurrent execution work in Core.
Set a default in Settings → Models and credentials, or use PUT /core/v1/harnesses/{harness}/model-configuration. Core encrypts provider keys with secrets/core/credential.key and never returns them. Model execution owns the request fields and replacement rules, and precedence says which Sessions use a default.
The standalone Compose file takes process settings from the platform's environment. Set OAC_PUBLIC_URL to the exact public origin, without a trailing slash, and recreate Core and Web before adding nodes or executors. The platform terminates TLS and routes to web:8080.
The initialization service generates secrets and the installation ID once, then verifies them on subsequent deployments. Each secret has one persistent source; Core's key digest is derived from Web's sign-in key. Initialization never replaces missing or changed secrets on an existing installation. Core reads the process environment from .env.
| Data directory path | Content | Readers |
|---|---|---|
database/ |
PostgreSQL data | PostgreSQL; initialization checks whether it is empty |
secrets/database/ |
Generated database password | PostgreSQL and Core |
secrets/core/ |
Credential encryption key, installation ID and Core key digest | Core |
secrets/web/ |
Generated Core sign-in key | Web |
state/ |
Private Provider state, mounted in Core at /state. Each adapter owns a subdirectory; E2B uses e2b/, with no group or other access |
Core |
node-payload/ |
Verified node installation metadata | Web |
Initialization prepares this directory; application services receive their secret directories read-only. docker compose exec web oac-web core-key prints the Core key to the operator terminal without writing it to container logs. Database passwords and credential encryption keys are never printed.
The named Docker volume <project>_data contains these paths. Docker manages Linux ownership on every host; each service mounts only its required subdirectories. Preserve this volume together with the project definition and public URL. Removing only the secret directories does not reset an installation; initialization refuses to start over an existing database. Core also binds the installation ID to its database. Runtime settings continue to live in Core's database.
The node installer writes Docker’s host settings into the native object of the node’s configuration file, which only the Docker adapter reads. Deployment resources, the Runtime release and capacity remain in Core’s database.
| Field | Installer value | Meaning |
|---|---|---|
host |
unix:///var/run/docker.sock |
Explicit Docker Engine socket |
image |
The Runtime image’s local ID after loading | The release’s image_id or image_manifest_digest. The host’s image store decides which digest names the loaded image, so the value is node-local; the adapter accepts only these two |
network |
oac-node-<installation-id> |
Runtime container network |
seccomp_file |
<node-root>/runtime/seccomp.json |
Matched distribution’s seccomp profile |
nested_sandbox |
true |
Enables the Docker adapter’s init process and proc-mask configuration |
The Docker adapter owns container isolation, volume layout and lifecycle behavior.
The installer creates ~/.oac/core by default ($HOME/.oac/core on Windows). Its files contain process settings and the native operator command; persistent service data lives in the Compose data volume.
| Path | Content | Changed by |
|---|---|---|
.env |
Process settings and the stable Compose project name | You, then oac apply |
compose.yaml, compose-sha256sums.txt |
Verified release service definition | The release |
oac (oac.exe on Windows) |
Native management command | The installer |
The sibling <install-dir>.lock directory remains for synchronization; <install-dir>.staging holds unpublished installation files. Neither contains service data. On Unix the installer creates private directories with mode 0700 and configuration files with mode 0600.
The Compose project is named oac-<10 hex digits>. Its services are init, database, core and web. Core applies database migrations when it starts. Web serves the console and forwards /v1 and /api/v1 to Core; it is the only service with a published port, OAC_WEB_PORT. No service receives a Docker socket.
Core reads its process environment. Compose interpolates .env into it and mounts secrets at the container paths below. When running Core directly, set the file variables to absolute paths readable by the Core process; see the service guide.
| Variable | Set from |
|---|---|
OAC_PUBLIC_URL |
Required. The public URL. Core validates it once and derives the Agents API base, the daemon WebSocket URL, the self-hosted remote_url, the installer downloads, the hosted sandbox address and the deployment's read-only core_url from it, never from request headers |
OAC_ADDR |
The image sets :8091. Independently started Core defaults to 127.0.0.1:8091 when unset or empty |
OAC_DATABASE_URL |
Required. PostgreSQL without a password |
OAC_DATABASE_PASSWORD_FILE |
/run/database/password. The URL must then carry no password |
OAC_CREDENTIAL_KEY_FILE |
Required. /run/oac/credential.key: a base64-encoded random 32-byte key. Core seals stored credentials with it |
OAC_CORE_KEY_DIGESTS_FILE |
Required. /run/oac/core-key-digests.json: a JSON array with the SHA-256 of the Core key |
OAC_INSTALLATION_ID_FILE |
Required. /run/oac/installation.id: the installation ID, a canonical UUID. Core refuses an ID other than the one its database recorded |
OAC_EXECUTION_CONCURRENCY, OAC_DEFAULT_HARNESS, OAC_HARNESSES, OAC_WRITE_AUDIT_RETENTION, OAC_OAUTH_TRUSTED_ORIGINS, OAC_HISTORY_SETTINGS_FILE, OAC_LOG_LEVEL, OAC_LOG_FORMAT, OAC_LOG_ADD_SOURCE |
The matching process settings. Web reads the three log settings too |
OAC_PROVIDER_ROOT |
Absolute adapter artifact root. The Core image sets /opt/oac. Each adapter owns its helper paths beneath this root. Core serves self-hosted daemon installers from its native-installers/ directory when that holds a catalog.json, after checking the catalog against its own release. Adapter state lives at /state, the data volume's state/ |
Core logs the history file path it loads, never environment values or file contents.
Invalid explicit OAuth trusted origins stop Core at startup. Entries must be HTTPS origins without credentials, query or a non-root path. Vaults owns refresh and network policy. A private issuer also needs a trusted CA: independently managed Unix Core can use Go’s SSL_CERT_FILE PEM CA-bundle override, which preserves certificate verification. Managed installation has no custom-CA setting.
Compose sets these for Web. Set them yourself only when you run the console without Compose. Compose mounts the data volume's secrets/web/ at /run/oac and sets OAC_WEB_CORE_KEY_FILE=/run/oac/core.key.
| Variable | Default | Meaning |
|---|---|---|
OAC_WEB_ADDR |
:8080 |
Listener address. The healthcheck probes it on 127.0.0.1 when its host is empty or unspecified |
OAC_PUBLIC_URL |
Required | The public URL: the exact browser-facing origin, HTTP or HTTPS, without a path. Host and origin checks use it; HTTPS makes the session cookie Secure |
OAC_WEB_UPSTREAM |
http://core:8091 |
Core's origin, HTTP or HTTPS, without credentials, query or path. The healthcheck probes its /healthz |
OAC_WEB_CORE_KEY_FILE |
Required | Absolute path of a regular file with no group or other permissions, holding the Core key: at least 32 characters, no whitespace, at most 4 KiB |
OAC_WEB_DIST |
/www |
Absolute directory of the built console; must contain index.html |
OAC_WEB_NODE_PAYLOAD_DIR |
unset | Absolute path of the matched distribution's node payload (the installer's node-payload/). Unset, /node-install/* is not served and Add node is unavailable |
An unset or empty variable selects its default. An invalid value stops the console at startup with a message naming the variable. The console also reads the three log process settings and rejects the values Core rejects. Use HTTPS for any browser that is not on the same machine.