# steerlabs/opensteer architecture

> Architecture diagram of the GitHub repository steerlabs/opensteer, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-22). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/steerlabs/opensteer
- Repository: https://github.com/steerlabs/opensteer

## Overview

Opensteer is a private-agent workstation with a team collaboration layer. The README describes agents acting on each owner’s computer, while shared team services hold chat and knowledge rather than running agents. The graph emphasizes the documented workflow and major capabilities; source excerpts chiefly cover browser execution, engine reuse, plugin contracts, and persistence, so detailed wiring among other product areas is not asserted.

Main entry points: [`apps/runner/src/runtime/warm-engine-pool.ts`](https://github.com/steerlabs/opensteer/blob/main/apps/runner/src/runtime/warm-engine-pool.ts) (Engine Runtime), [`apps/control-plane/src/server/server.ts`](https://github.com/steerlabs/opensteer/blob/main/apps/control-plane/src/server/server.ts) (Team Server), [`packages/client/src/host/message-outbox-storage.ts`](https://github.com/steerlabs/opensteer/blob/main/packages/client/src/host/message-outbox-storage.ts) (Team Chat), [`packages/plugin-engine/sdk/src/contracts/pluginEngine.ts`](https://github.com/steerlabs/opensteer/blob/main/packages/plugin-engine/sdk/src/contracts/pluginEngine.ts) (Plugin Engine API)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Personal Workstation"]
  node_phone["Phone Control<br/>[PhoneRuntime.kt]"]
  node_desktop["Desktop App<br/>[main.ts]"]
  node_mobile["Mobile Client<br/>[controller.ts]"]
  node_web["Web Client<br/>[team-routes.tsx]"]
end

subgraph group_runtime["Agent Runtime"]
  node_agent["Engine Runtime"]
  node_host["Host Connection<br/>[host-connection.ts]"]
  node_harness["Engine Setup"]
end

subgraph group_browser["Browser Automation"]
  node_browserexec["Browser Launchers"]
  node_browserctl["Browser Controller<br/>[controller.ts]"]
  node_browserstore[("Browser Profiles")]
  node_extension["Browser Extension<br/>[storage.ts]"]
end

subgraph group_team["Team Collaboration"]
  node_teamserver["Team Server<br/>[server.ts]"]
  node_teamchat["Team Chat"]
  node_knowledge[("Team Knowledge<br/>[storage.ts]")]
end

subgraph group_plugins["Plugins and Accounts"]
  node_pluginsdk["Plugin Engine API<br/>[pluginEngine.ts]"]
  node_pluginhost["Plugin Authority"]
  node_account["Connected Accounts<br/>[account-oauth.ts]"]
end

node_owner(("Owner"))
node_coworkers(("Coworkers"))
node_localapps["Local Apps"]
node_externalservices["Online Services"]

node_owner -.->|"steers remotely"| node_phone
node_owner -.->|"starts work"| node_desktop
node_owner -.->|"steers remotely"| node_mobile
node_owner -.->|"steers remotely"| node_web
node_phone -.->|"controls"| node_host
node_mobile -.->|"connects to"| node_host
node_web -.->|"sends messages"| node_teamchat
node_desktop -.->|"runs locally"| node_agent
node_agent -.->|"prepares engine"| node_harness
node_agent -.->|"uses browser"| node_browserctl
node_browserexec -->|"launches runtime"| node_browserctl
node_browserexec -->|"uses profiles"| node_browserstore
node_extension -.->|"manages site access"| node_externalservices
node_agent -.->|"uses signed-in apps"| node_localapps
node_coworkers -.->|"collaborate in"| node_teamchat
node_teamchat -.->|"stores chat"| node_teamserver
node_teamserver -.->|"holds knowledge"| node_knowledge
node_teamserver -.->|"connects agents"| node_host
node_agent -.->|"uses plugin tools"| node_pluginsdk
node_pluginhost -->|"provides authority"| node_pluginsdk
node_pluginsdk -.->|"resolves account links"| node_account
node_account -.->|"connects accounts"| node_externalservices

click node_phone "https://github.com/steerlabs/opensteer/blob/main/apps/agent-phone/app/src/main/kotlin/com/opensteer/agentphone/control/PhoneRuntime.kt"
click node_desktop "https://github.com/steerlabs/opensteer/blob/main/apps/desktop/src/main.ts"
click node_mobile "https://github.com/steerlabs/opensteer/blob/main/apps/mobile/src/iphone-apps/controller.ts"
click node_web "https://github.com/steerlabs/opensteer/blob/main/apps/web/src/team/team-routes.tsx"
click node_agent "https://github.com/steerlabs/opensteer/blob/main/apps/runner/src/runtime/warm-engine-pool.ts"
click node_host "https://github.com/steerlabs/opensteer/blob/main/apps/runner/src/host/host-connection.ts"
click node_harness "https://github.com/steerlabs/opensteer/blob/main/packages/harness/src/engine-installation.ts"
click node_browserexec "https://github.com/steerlabs/opensteer/blob/main/apps/desktop/src/browser/electron-browser-launcher.ts"
click node_browserctl "https://github.com/steerlabs/opensteer/blob/main/packages/browser-runtime-core/src/browser/controller.ts"
click node_browserstore "https://github.com/steerlabs/opensteer/blob/main/packages/database/src/browser-profile-storage-store.ts"
click node_extension "https://github.com/steerlabs/opensteer/blob/main/apps/browser-extension/src/storage.ts"
click node_teamserver "https://github.com/steerlabs/opensteer/blob/main/apps/control-plane/src/server/server.ts"
click node_teamchat "https://github.com/steerlabs/opensteer/blob/main/packages/client/src/host/message-outbox-storage.ts"
click node_knowledge "https://github.com/steerlabs/opensteer/blob/main/apps/team-provisioner/src/storage.ts"
click node_pluginsdk "https://github.com/steerlabs/opensteer/blob/main/packages/plugin-engine/sdk/src/contracts/pluginEngine.ts"
click node_pluginhost "https://github.com/steerlabs/opensteer/blob/main/apps/host/src/plugins/engine-authority.ts"
click node_account "https://github.com/steerlabs/opensteer/blob/main/apps/control-plane/src/account/account-oauth.ts"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_phone,node_desktop,node_mobile,node_web toneBlue
class node_agent,node_host,node_harness toneAmber
class node_browserexec,node_browserctl,node_browserstore,node_extension toneMint
class node_teamserver,node_teamchat,node_knowledge,node_coworkers toneRose
class node_pluginsdk,node_pluginhost,node_account,node_owner,node_localapps,node_externalservices toneIndigo
```

## Components

### Personal Workstation

- [Phone Control](https://github.com/steerlabs/opensteer/blob/main/apps/agent-phone/app/src/main/kotlin/com/opensteer/agentphone/control/PhoneRuntime.kt): `apps/agent-phone/app/src/main/kotlin/com/opensteer/agentphone/control/PhoneRuntime.kt`
- [Desktop App](https://github.com/steerlabs/opensteer/blob/main/apps/desktop/src/main.ts): `apps/desktop/src/main.ts`
- [Mobile Client](https://github.com/steerlabs/opensteer/blob/main/apps/mobile/src/iphone-apps/controller.ts): `apps/mobile/src/iphone-apps/controller.ts`
- [Web Client](https://github.com/steerlabs/opensteer/blob/main/apps/web/src/team/team-routes.tsx): `apps/web/src/team/team-routes.tsx`

### Agent Runtime

- [Engine Runtime](https://github.com/steerlabs/opensteer/blob/main/apps/runner/src/runtime/warm-engine-pool.ts): `apps/runner/src/runtime/warm-engine-pool.ts`
- [Host Connection](https://github.com/steerlabs/opensteer/blob/main/apps/runner/src/host/host-connection.ts): `apps/runner/src/host/host-connection.ts`
- [Engine Setup](https://github.com/steerlabs/opensteer/blob/main/packages/harness/src/engine-installation.ts): `packages/harness/src/engine-installation.ts`

### Browser Automation

- [Browser Launchers](https://github.com/steerlabs/opensteer/blob/main/apps/desktop/src/browser/electron-browser-launcher.ts): `apps/desktop/src/browser/electron-browser-launcher.ts`
- [Browser Controller](https://github.com/steerlabs/opensteer/blob/main/packages/browser-runtime-core/src/browser/controller.ts): `packages/browser-runtime-core/src/browser/controller.ts`
- [Browser Profiles](https://github.com/steerlabs/opensteer/blob/main/packages/database/src/browser-profile-storage-store.ts): `packages/database/src/browser-profile-storage-store.ts`
- [Browser Extension](https://github.com/steerlabs/opensteer/blob/main/apps/browser-extension/src/storage.ts): `apps/browser-extension/src/storage.ts`

### Team Collaboration

- [Team Server](https://github.com/steerlabs/opensteer/blob/main/apps/control-plane/src/server/server.ts): `apps/control-plane/src/server/server.ts`
- [Team Chat](https://github.com/steerlabs/opensteer/blob/main/packages/client/src/host/message-outbox-storage.ts): `packages/client/src/host/message-outbox-storage.ts`
- [Team Knowledge](https://github.com/steerlabs/opensteer/blob/main/apps/team-provisioner/src/storage.ts): `apps/team-provisioner/src/storage.ts`

### Plugins and Accounts

- [Plugin Engine API](https://github.com/steerlabs/opensteer/blob/main/packages/plugin-engine/sdk/src/contracts/pluginEngine.ts): `packages/plugin-engine/sdk/src/contracts/pluginEngine.ts`
- [Plugin Authority](https://github.com/steerlabs/opensteer/blob/main/apps/host/src/plugins/engine-authority.ts): `apps/host/src/plugins/engine-authority.ts`
- [Connected Accounts](https://github.com/steerlabs/opensteer/blob/main/apps/control-plane/src/account/account-oauth.ts): `apps/control-plane/src/account/account-oauth.ts`

### Other components

- **Owner**
- **Coworkers**
- **Local Apps**
- **Online Services**

## Connections

- Owner → Phone Control: steers remotely
- Owner → Desktop App: starts work
- Owner → Mobile Client: steers remotely
- Owner → Web Client: steers remotely
- Phone Control → Host Connection: controls
- Mobile Client → Host Connection: connects to
- Web Client → Team Chat: sends messages
- Desktop App → Engine Runtime: runs locally
- Engine Runtime → Engine Setup: prepares engine
- Engine Runtime → Browser Controller: uses browser (evidence: `packages/browser-runtime-core/src/browser/controller.ts`)
- Browser Launchers → Browser Controller: launches runtime (evidence: `apps/desktop/src/browser/electron-browser-launcher.ts`)
- Browser Launchers → Browser Profiles: uses profiles (evidence: `apps/desktop/src/browser/electron-browser-launcher.ts`)
- Browser Extension → Online Services: manages site access
- Engine Runtime → Local Apps: uses signed-in apps
- Coworkers → Team Chat: collaborate in
- Team Chat → Team Server: stores chat
- Team Server → Team Knowledge: holds knowledge
- Team Server → Host Connection: connects agents
- Engine Runtime → Plugin Engine API: uses plugin tools
- Plugin Authority → Plugin Engine API: provides authority (evidence: `apps/host/src/plugins/engine-authority.ts`)
- Plugin Engine API → Connected Accounts: resolves account links (evidence: `packages/plugin-engine/sdk/src/contracts/pluginEngine.ts`)
- Connected Accounts → Online Services: connects accounts
