On this page

Agent Runtime Profiles

Agent Runtime Profiles define how MIOSA should prepare an agent runtime for a tenant, workspace, or project. Use profiles to standardize OSA, Codex, Claude Code, Pi, Hermes, or custom runtimes across sandboxes and computers without passing the same model, tools, connectors, policy, and environment on every run.

Base path: /api/v1/agent-runtime-profiles

Endpoints

MethodPathDescription
GET/api/v1/agent-runtime-profilesList profiles for the tenant
POST/api/v1/agent-runtime-profilesCreate a profile
GET/api/v1/agent-runtime-profiles/{id}Fetch one profile
PUT/api/v1/agent-runtime-profiles/{id}Update a profile
DELETE/api/v1/agent-runtime-profiles/{id}Delete a profile

List can be filtered with workspace_id or project_id.

Create

POST /api/v1/agent-runtime-profiles
Authorization: Bearer msk_u_...
Content-Type: application/json
{
  "name": "clinic-iq-claude",
  "runtime": "claude-code",
  "workspace_id": "ws_123",
  "project_id": "proj_123",
  "description": "Default ClinicIQ coding and browser QA runtime",
  "applies_to": {
    "resources": ["sandbox", "computer"]
  },
  "tools": ["filesystem", "shell", "browser", "artifacts"],
  "connectors": ["anthropic/clinic-iq", "refero/managed"],
  "env": {
    "ANTHROPIC_MODEL": "claude-sonnet-4.6"
  },
  "policy": {
    "approval_required_for": ["deploy", "external_write"],
    "max_child_runs": 25
  },
  "metadata": {
    "owner": "platform"
  },
  "is_default": true
}

Fields

FieldDescription
nameHuman-readable profile name. Unique within the relevant tenant/workspace/project scope.
runtimeOne of osa, codex, claude, claude-code, pi, hermes, or custom.
workspace_idOptional workspace scope.
project_idOptional project scope.
descriptionOperator-facing explanation.
applies_toResource selector, commonly { "resources": ["sandbox", "computer"] }.
toolsTool ids the runtime should expect, such as filesystem, shell, browser, artifacts, or deployments.
connectorsConnector UIDs to bind when the target runtime is created.
envNon-secret runtime defaults. Put provider keys in runtime env/secrets, not here.
policyProduct policy such as approvals, max child runs, or external-write rules.
metadataProduct-specific labels and ids.
is_defaultWhether MIOSA should resolve this profile by default for the scope and resource family.

Resolution

Agent Runs can pass agent_runtime_profile_id explicitly. If they do not, MIOSA resolves defaults by scope and target family:

explicit run profile
  -> project default
  -> workspace default
  -> tenant default
  -> no profile

The profile can be applied when creating or running sandboxes, computers, and OpenComputer/BYOC agent sessions. Request-level env values override non-secret profile env values for that single run.

CLI

miosa agent-runtime-profiles list --workspace ws_123 --json

miosa agent-runtime-profiles create 
  --name clinic-iq-claude 
  --runtime claude-code 
  --workspace ws_123 
  --project proj_123 
  --applies-to sandbox,computer 
  --tools filesystem,shell,browser,artifacts 
  --connectors anthropic/clinic-iq,refero/managed 
  --env '{"ANTHROPIC_MODEL":"claude-sonnet-4.6"}' 
  --policy '{"approval_required_for":["deploy","external_write"]}' 
  --default 
  --json

miosa agent-runtime-profiles update arp_123 --runtime codex --json
miosa agent-runtime-profiles delete arp_123

Next

Was this helpful?