Welcome to the documentation for OpenFrame OSS Tenant — the deployable, multi-service tenant platform behind OpenFrame (flamingo.run/openframe), part of the Flamingo AI-powered MSP platform.
- Introduction - OpenFrame OSS Tenant is the deployable, multi-service tenant platform behind OpenFrame
- Prerequisites - What you need installed, provisioned, and configured before working with OpenFrame OSS Tenant
- Quick Start - Fast path to running OpenFrame OSS Tenant services
- First Steps - What to do after you have OpenFrame OSS Tenant running, including configuration checks and key features worth exploring
- Development Overview - Entry point for developers working on OpenFrame OSS Tenant
- Architecture Overview - OpenFrame OSS Tenant is the deployable, multi-service tenant platform for OpenFrame, an AI-driven MSP platform
- Contributing Guidelines - How to contribute to OpenFrame OSS Tenant's Spring Boot services and Rust client
- Security - Authentication, authorization, data-protection, input-validation, and secrets-management patterns used across OpenFrame OSS Tenant
- Development Environment Setup - Setting up a local workstation for developing OpenFrame OSS Tenant
- Local Development - Cloning OpenFrame OSS Tenant, bringing up services locally, hot reload, and debugger configuration
- Testing - Testing approach across the Maven multi-module Java project and Rust client
Reference docs are generated from the actual source code and live in ./reference/architecture/.
Core Overview
- OpenFrame OSS Tenant - Top-level architecture of the deployable, multi-service tenant platform
- Ecosystem: OpenFrame OSS Tenant - Published artifacts, upstream dependencies, and delivery chain
OpenFrame API Service Core
- Openframe Api Lib - Shared Java API-domain library: request/response models, validation contracts, read-model queries
- Openframe Api Service Core - Shared Spring service layer for the OpenFrame API
- Api Agentkey Services - Service-layer strategies to read and rotate agent authentication keys
- Api Config - Spring configuration boundary for the OpenFrame API service
- Api Controllers - HTTP boundary for the OpenFrame API service
- Agent Credentials - Endpoints to read, rotate, and generate agent credentials
- Content And Operations - Three focused HTTP capabilities in the OpenFrame API service
- Device And Agent Operations - Managing device status, OpenFrame clients, and tool agents
- Identity And Tenant Administration - Administrative HTTP boundary for users, organizations, invitations, API keys, sign-on
- Api Datafetchers - GraphQL boundary for the OpenFrame API service
- Api Datafetchers Rmm - GraphQL resolver layer for remote monitoring and management (RMM)
- Api Dataloaders - Request-scoped batching adapters for the OpenFrame GraphQL API
- Batch Lookups - GraphQL DataLoader implementations to resolve related objects and aggregates
- Batch Lookups (nested) - 13 Netflix DGS
BatchLoaderimplementations
- Api Domain Validation - Extension point to determine whether supplied domains already exist
- Api Dto - Typed request, response, filter, sorting, and identity payloads
- Audit - GraphQL-facing input types to filter and sort log records
- Force - DTOs for requesting immediate client/tool-agent updates
- Invitation - API request object to update an invitation's status
- Oauth - DTOs for authorization-code and social-provider authentication flows
- Oidc - DTOs for OpenID Connect discovery and user-information exchange
- Organization - Typed sorting vocabulary for the Organizations GraphQL query
- Audit (nested) - GraphQL input DTOs for filtering/sorting log records
- Force (nested) - Targeted update requests and tool-agent update results
- Invitation (nested) -
UpdateInvitationStatusRequestmutable DTO - OAuth (nested) - Authorization-code and token-exchange payloads
- OIDC (nested) - Provider discovery and user-information payloads
- Organization (nested) - Organization sorting vocabulary
- Api Packagesearch Services - Server-side abstraction for searching software packages across package managers
- Package Manager Clients - Package-search integration client contract
- Package Manager Clients (nested) - Package-search integration implementation details
- Api Processor Services - Default post-processing extension points for the OpenFrame API service
- Api Relay - GraphQL relay integration for the OpenFrame API service
- Api Tenant Domain Provider - Supplies the tenant domain for the current HTTP request
Authorization, External API, Gateway, Management, Stream Service Cores
- Openframe Authorization Service Core - Reusable authorization-server implementation for
openframe-authorization-server - Openframe External Api Service Core - Reusable Spring MVC and domain-integration layer for the External API
- Openframe Gateway Service Core - Reusable reactive gateway layer for the OpenFrame Gateway service
- Openframe Idp Configuration - Initializes and reconciles the OAuth client used by the OpenFrame gateway
- Openframe Management Service Core - Management-plane runtime used by the
openframe-managementservice - Openframe Stream Service Core - Event-ingestion and normalization layer for the
openframe-streamservice- Configuration - Spring configuration layer for the stream service core
- Deserializers - Converts event records into the canonical Debezium message model
- Enrichment And Streams - Event-enrichment boundary
- Handlers - Event-processing layer
- Software CDC - Fleet MDM software-inventory synchronization via Debezium change events
OpenFrame Client (Java Side)
- Openframe Client Core Java - Shared client-runtime functionality used by the OpenFrame Client service
- Agent Registration Processors - Default post-processing hook for agent registration
- Agent Registration Services - Coordinates work performed when a client registers a machine
- Agent Registration Transformers - Normalizes tool-specific agent identifiers during registration
- Fleet Mdm Transformer - Resolves Fleet MDM agent identifiers into Fleet host IDs
- Meshcentral Transformer - Converts MeshCentral agent identifiers
- Transformer Contract - Extension point for tool-specific identifier conversion
- Auth Services - Machine-facing authentication support for the client runtime
- Config - Spring Boot configuration for the client service
- Controller - HTTP boundary for the client service
- Core Listeners - Event-ingestion boundary for machine, user, and delivery events
- Delivery Listeners - Event-ingestion boundary for machine delivery work
- Device Lifecycle Service - Promotes a device from
PENDINGtoMANAGED - Dto - Data-transfer objects used by the client service
- Feature Flags Datafetcher - Exposes tenant-specific feature flags via GraphQL
- Metrics - Operational telemetry for the
DEVICE_ONLINEdispatch queue - Osupdate Parsers - Converts OS update reports into normalized data objects
- Osupdate Services - Device-side OS update domain services
- Package Adopt Listeners - Receives package-adoption status events from agents
- Package Update Listeners - Event-driven backend boundary for software package updates
- Package Update Listeners (nested) - Processes package-update status events
- Publisher - Sends command-result events to the Kafka bus
- Rmm Listeners - Inbound event boundary for RMM activity
- Device Online Arming - Prepares active RMM scripts for one-time execution on matching devices
- Jetstream Listeners - RMM message consumers connecting to NATS JetStream
- Result Listeners - Consumes remote-management execution results from NATS
- Rmm Services - Remote monitoring and management execution layer
- Bootstrap And Eligibility - Package-manager bootstrap execution coordination
- Scheduling - Device-local scheduling for RMM script execution
- Software Dispatch - Software-management execution path
- Rmm Watchdog Services - Delivery-recovery boundary that re-emits undelivered messages
- Scheduler - Periodic-work orchestration layer for the client service
OpenFrame Client (Rust Core)
-
Openframe Client Core - Rust client subsystem used to install, authenticate, register, run, update, monitor, and uninstall OpenFrame clients
-
Auth Client - Asynchronous OAuth token acquisition
-
Banner - Client startup banner
-
Cli Entrypoint - Command-line boundary for the client
-
Config Core - Centralizes service-stop timing, retry, timeout, and executable-replacement budgets
-
Core Client Structs - Top-level Rust client state and configuration values
-
Doctor Checks - Diagnostic check layer for the client
-
Doctor Core - Orchestration layer for client diagnostics
-
Doctor Healing - Remediation coordinator for diagnostic workflows
- Doctor Healing Webview2 - Windows-specific WebView2 Runtime remediation
-
Executor Core - Platform-neutral contract for running scripts
- Executor Unix - Unix-specific script runner
- Executor Windows - Windows-specific script execution adapter
-
Http Client Factory - Creates the outbound HTTP client for the agent
-
Installation Initial Config Service - Prepares initial configuration during installation
-
Listener Command Core - Command-dispatch runtime for the client agent
- Listener Command Handlers - Converts machine-scoped commands into guarded operations
- Listener Command Package Adopt - Handles package-adoption commands
- Listener Command Package Update - Accepts package-update commands
- Listener Command Restart - Coordinates safe client restart
-
Listener Execution - Inbound execution adapter for remote scripts
-
Listener Remote Access Message - Reacts to remote-access events for a machine
-
Logging Core - Process-wide logging bootstrap and observability boundary
- Logging Log Parser - Converts log lines into structured, serializable entries
- Logging Log Rotation - Manages bounded growth of the client log file
- Logging Log Source - File-backed ingestion boundary for the logging pipeline
- Logging Metrics - In-process metrics layer for the client
- Logging Nats Streaming - Streams client logs to the tenant logging gateway over NATS/WebSocket
- Logging Shipping - Asynchronous batching to forward logs to an HTTP endpoint
-
Metrics Init - Startup entry point for metrics collection
-
Monitoring Permissions - Periodic permission-health monitor
-
Registration Client - HTTP operations for establishing and removing machine registration
-
Remote Access Client - Applies a device-specific remote-access mode override
-
Service Adapter - Cross-platform interface for installing/starting/stopping/removing the client service
- Service Core - Lifecycle boundary for the client daemon
-
System Info - Thread-safe system metrics collector
-
Tool Api Client - Authenticated HTTP adapter to retrieve tool assets
Platform Adapters (
platform-*)- Platform App Bundle - macOS bundle metadata inspection
- Platform App Close - Process lifecycle operations for stopping/restarting applications
- Platform Apps Entry - Windows Apps & Features registration
- Platform Binary Version - Reports the semantic version of a client executable
- Platform Binary Writer - Platform-aware file replacement primitive
- Platform Chat Channel Macos - macOS local communication channel for OpenFrame Chat
- Platform Chat Channel Windows - Windows transport for chat tool exchange
- Platform Detached Process - Platform-specific process-launching primitive
- Platform Directories - Cross-platform filesystem location abstraction
- Platform Dmg Extractor - Asynchronous service for unpacking macOS DMG files
- Platform File Acl - Windows-specific filesystem permission helpers
- Platform File Lock - Windows diagnostics for locked files
- Platform Installation Detector - Identifies whether a tool is already installed as a system service
- Platform Machine Info Persistence - Platform-specific credential store
- Platform Os Updates - Platform boundary for collecting OS update information
- Platform Os Updates Windows Gate - Windows OS update eligibility
- Platform Os Updates Windows Model - Windows OS update inventory schema
- Platform Os Updates Windows Read - Collects Windows OS update inventory
- Platform Os Version - Platform-aware OS version/build value object
- Platform Permissions - Cross-platform permission management
- Platform Powershell - Windows PowerShell executable resolution
- Platform Preferences Writer - Translates options into preference key-value pairs
- Platform Process Snapshot - Cross-platform process-inspection boundary
- Platform System Service - Platform-neutral service lifecycle interface
- Platform Tool Updater Core - Coordinates tool updates and installation-mode migrations
- Platform Tool Updater Gui App - GUI-application update strategy
- Platform Tool Updater Migration - Coordinates installation-format migrations
- Platform Tool Updater Migration Standard To Gui App - Migrates a tool from Standard to GuiApp model
- Platform Tool Updater Service - Service-installation update strategy
- Platform Tool Updater Standard - Standard binary replacement strategy
- Platform Uninstall - Coordinates service removal and cleanup
- Platform Update Scripts Macos - macOS self-update payload
- Platform Update Scripts Windows - Windows self-update PowerShell script template
- Platform Updater Launcher Core - Platform-neutral contract for starting the updater
- Platform Updater Launcher Linux - Linux-specific launch adapter
- Platform Updater Launcher Macos - macOS self-update process launcher
- Platform Updater Launcher Windows - Windows detached updater launcher
- Platform User Session Macos - macOS process and session primitives
- Platform Windows Cleanup - Removes the client binary after process exit
- Platform Windows Path Migration - One-time repair of the machine-wide Windows
PATH
Models (wire and persisted data contracts)
- Models Agent - Persisted configuration record for a client agent
- Models Agent Registration - Wire model for agent registration
- Models Agent Registration Response - Deserialization model for successful registration
- Models Agent Token Response - Model carrying authentication tokens
- Models Delivery - Wire structures and subject naming for delivery outcomes
- Models Device Tag - Normalized representation of device tags
- Models Download Configuration - Platform-aware metadata to download/install artifacts
- Models Execution - Wire models and execution contracts for commands and scripts
- Models Feature Flags - Typed feature-toggle model
- Models Hostname Report Message - Payload to report a device hostname
- Models Initial Configuration - Installation-time and early-runtime configuration model
- Models Installed Tool - Durable representation of an installed tool
- Models Machine Heartbeat Message - Payload identifying the active heartbeat session
- Models Machine Timezone Message - Payload reporting a machine's timezone
- Models Openframe Client Info - Durable status record for the installed client
- Models Openframe Client Update Message - Payload to request a client binary update
- Models Os Info Report Message - Client-side message reporting OS information
- Models Os Version Number - Value object to parse/compare dotted OS versions
- Models Package Adopt - Wire model for a package-adoption command
- Models Package Adopt Status - Serialized status event after package adoption
- Models Package Ref - Canonical package identity for supported package managers
- Models Package Update - Wire contract for a package-update order
- Models Package Update Status - Wire-level event contract for package-update lifecycle
- Models Remote Access Mode - Client-side value object for remote-access overrides
- Models Tool Agent Update Message - Contract describing a tool-agent update and asset updates
- Models Tool Connection - Relationship between a tool agent and the installed tool
- Models Tool Connection Message - Payload published when reporting a tool connection
- Models Tool Installation Message - Model for a tool-installation request
- Models Tool Installation Result - Response model for a completed tool-installation
- Models Tool Uninstall Message - Deserialization model for a tool-removal request
- Models Tool Version Overrides - Compile-time lookup table for tool-agent version overrides
- Models Update State - Durable record describing a client update
Services (
services-*, background workers and run managers)- Services Agent Auth - Authenticates a client agent and holds token state
- Services Agent Configuration - Durable local configuration boundary for the agent
- Services Agent Registration - First-time enrollment and reinstall recovery
- Services Agent Session - Process-local session identifier
- Services Chat Channel - Local request/response bridge for the chat tool
- Services Deactivation - Protects an installed client from an unavailable tenant
- Services Delivery Results - Client-side delivery-result boundary
- Services Deregistration - Client-side portion of uninstall cleanup
- Services Device Data Fetcher - Gathers identity and environment values
- Services Execution - Client-side execution boundary for remote scripts
- Services Feature Flags - Manages feature-flag state for the agent
- Services Github Download - Archive download and extraction service
- Services Hostname Report Publisher - Reports the machine's hostname
- Services Initial Authentication Processor - Coordinates the first authentication attempt
- Services Initial Configuration - File-backed storage for required startup configuration
- Services Installed Agent Message Publisher - Publishes
InstalledAgentMessage - Services Installed Tools - Durable local registry of installed tool agents
- Services Last Known Good - Durable rollback protection
- Services Local Tls Config Provider - Rustls config for local-CA development connections
- Services Log Key - Manages the per-tenant log-streaming key
- Services Machine Heartbeat Publisher - Sends periodic liveness messages
- Services Machine Heartbeat Run Manager - Schedules the periodic heartbeat
- Services Machine Id - Stable, locally generated machine identity
- Services Machine Timezone Publisher - Reports the machine's IANA timezone
- Services Machine Timezone Run Manager - Periodically resolves and reports timezone
- Services Mesh Self Heal - Watches the MeshCentral agent log for failures
- Services Nats Connection Manager - Owns the long-lived NATS connection
- Services Nats Message Publisher - Publishing boundary for NATS and JetStream
- Services Openframe Client Info - Durable local state for a client installation
- Services Openframe Client Update - Coordinates safe self-updating of the client
- Services Os Info Report Publisher - Asynchronous OS info reporting service
- Services Os Updates Message - Serialized report of OS update information
- Services Os Updates Report - Converts a Windows update inventory into the normalized message
- Services Os Updates Report Publisher - Serializes and delivers the OS update report
- Services Os Updates Report Run Manager - Scheduling and delivery loop for Windows OS update inventory
- Services Package Manager Adopt - Worker for package-adoption orders
- Services Package Manager Core - Platform-neutral vocabulary and detection primitives
- Services Package Manager Report Publisher - Reports package-manager and dependency state
- Services Package Manager Report Run Manager - Schedules recurring package-manager state publication
- Services Package Manager State - Derives a normalized status for a package manager
- Services Package Manager Support - Determines whether a package manager can be used
- Services Package Manager Update Gate Core - Determines whether a package-manager operation can proceed
- Services Package Manager Update Gate Decide - Decision step for application-backed package updates
- Services Package Manager Update Orders - Durable order book for package-update requests
- Services Package Manager Update - Runs scheduled package-update orders
- Services Package Manager Update Status - Reports terminal outcomes of package-update requests
- Services Registration Processor - Coordinates startup registration decisions
- Services Remote Access Mode - Carries remote-access preference into the backend
- Services Result Outbox Run Manager - Background delivery loop for durable result records
- Services Result Store Core - Durable, restart-aware storage for execution results
- Services Result Store Ledger - Durable delivery-state journal
- Services Shared Token - Client-side persistence for the shared authentication token
- Services Token Refresh Run Manager - Keeps the access token current
- Services Tool Agent Update - Applies remotely requested tool-agent updates
- Services Tool Command Params Resolver - Prepares installed-tool command arguments
- Services Tool Connection - Durable local storage for tool-agent and tool identity
- Services Tool Connection Message Publisher - Converts a tool connection event into an outbound message
- Services Tool Connection Processing Manager - Maintains the installed-tool-to-agent relationship
- Services Tool Installation - Installs, repairs, and reinstalls managed tools
- Services Tool Kill - Process and service shutdown boundary for tools
- Services Tool Ops - In-process coordination primitive for tool-agent operations
- Services Tool Os Gate - Compatibility gate for downloadable tool assets
- Services Tool Restart - Guarded restart for an installed tool
- Services Tool Run Manager - Supervision layer for installed tools
- Services Tool Uninstall - Removes managed tools from a client host
- Services Tool Url Params Resolver - Resolves the client server URL inside tool-related paths
- Services Update Cleanup - Post-update housekeeping
- Services Update Handler - Boot-time coordinator for client self-updates
- Services Update State - Client-side persistence for self-update state
Utilities
- Utils Failure Log Backoff - In-memory policy to reduce repetitive failure logs
- Utils Fs - Defensive, cross-platform filesystem helpers
- Utils In Progress - Thread-safe operation-tracking primitive
- Utils Latch - Thread-safe, one-way signal for coordination
- Utils Timed Permit Pool - Bounded async wrapper for blocking work
- Utils Version Comparator - Version-normalization and precedence logic
Config, Core, Data, and Security Libraries
- Openframe Config Core - Shared Spring Cloud Config Server module
- Openframe Core - Shared, framework-level library used by OpenFrame services
- Openframe Data Device Aspect - Keeps device search/analytics projections synchronized with transactional data
- Openframe Data Mongo Common - Shared domain-model and persistence-support module for MongoDB-backed services
- Device Documents - MongoDB document model for tenant-scoped managed devices
- Organization And Onboarding - Embedded organization contact model and onboarding vocabularies
- Package Catalog And Tenancy - Shared persistence concerns for package catalog and tenancy
- Shared Domain Types - Cross-cutting value types, enumerations, and conversion logic
- Openframe Data Mongo Reactive - Non-blocking MongoDB repository layer for WebFlux/Reactor services
- Mongo Reactive Configuration - Activates Spring Data MongoDB reactive repository scanning
- OAuth Repositories - Reactive persistence for OAuth client documents
- Onboarding Repositories - Reactive read and CRUD contracts for onboarding progress
- Openframe Data Mongo Sync - Synchronous MongoDB persistence module
- Agent Repositories - MongoDB persistence access for agent-related data
- Assignment Repositories - Tenant-aware persistence for item assignments
- Audit Logging - Records save lifecycle of integrated tool-agent documents
- Audit Repositories - MongoDB persistence boundary for audit events
- Auth Repositories - Persistence adapter for authentication-related fields
- Connector Repositories - MongoDB persistence boundary for connector operational state
- Delivery Impl Repositories - Tenant-aware implementation for delivery state/sequencing
- Machine Delivery Repository Impl - Tenant-aware persistence for machine delivery records
- Machine Delivery Sequence Repository Impl - Monotonically increasing delivery sequence numbers
- Delivery Repositories - Tenant-aware persistence boundary for machine delivery work
- Device Publishing Repositories - Publishing-event and ticket projection views
- Device Repositories - Persistence boundary for tenant-scoped device inventory
- Email Repositories - MongoDB-backed email and domain blocklist access
- Event Repositories - Persistence access for external-application events
- Feature Flags Repositories - Persistence boundary for tenant-scoped feature-flag overrides
- Knowledgebase Repositories - Persistence contract for browsing knowledge-base items
- Machine Service - Machine-related portion of
openframe-data-mongo-sync - Mongo Config - MongoDB infrastructure configuration module
- Notification Impl Repositories - Tenant-aware persistence layer for notification data
- Notification Repositories - Projection type for notification counts grouped by category
- Oauth Repositories - Persistence boundary for OAuth tokens
- Onboarding Repositories - Persistence access for onboarding progress
- Organization Publishing Repositories - Publishes organization changes as tenant-scoped events
- Organization Repositories - Persistence boundary for organization records
- Push Impl Repositories - Custom implementation to register/re-associate push devices
- Push Repositories - Persistence contract for push-device registrations
- Retry Support - Observability for Spring Retry protecting MongoDB updates
- Rmm Osupdate Repositories - Persistence boundary for OS update data
- Device Os State - OS update state for a managed device
- Device Os Update History - Historical record of OS update activity
- Os Update Catalog - Catalog persistence for OS update data
- Os Update Devices - Device-association persistence for OS update data
- Rmm Policy Repositories - Persistence boundary for RMM policy, scripts, schedules, executions, software
- Package Auto Update Policies - Per-machine package auto-update policies
- Package Update State And Action Rollups - Read-model logic for package-management actions
- Script Catalog And Scheduling - Data-access layer for RMM scripts and scheduled executions
- Script Execution History - Persistence and query layer for script execution records
- Rmm Service - Shared persistence-facing services for RMM workflows
- Rmm Software Matching Service - Correlation layer identifying catalog packages from reported software
- Brew Matching - Identifies Homebrew formulas, casks, and macOS applications
- Package Matchers - Common
PackageMatchercontract and manager-specific adapters - Program Correlation - Winget-style catalog search applied to installed programs
- Rmm Software Repositories - Persistence and aggregation boundary for software inventory
- Rmm Software Service - Software-management and vulnerability-projection portion of the data layer
- Sequence Repositories - MongoDB-backed monotonic counters for named sequences
- Ticket Publishing Repositories - Event/projection types propagating ticket-title changes
- Ticket Repositories - Tenant-aware persistence boundary for ticket records
- Timetracking Repositories - Tenant-aware persistence boundary for time-entry records
- Tool Repositories - MongoDB-backed persistence for integrated tool catalog queries
- User Publishing Repositories - Publishes user changes as tenant-scoped events
- User Repositories - MongoDB persistence operations for users and invitations
- Openframe Data Redis - Shared Redis integration: configuration, Spring Cache, and more
- Openframe Notification Mail - Provider abstraction and delivery adapter for account/onboarding email
- Hubspot Api Email Service - HubSpot-backed implementation of the notification mail contract
- Smtp Email Service - SMTP-backed implementation of the notification mail contract
- Openframe Security Core - Shared JWT security foundation
- Openframe Security Oauth - OAuth 2.0 browser and mobile authentication boundary for the Gateway
- Openframe Tool Agent Nats Installation - Injects a Fleet MDM agent registration secret into tool-installation commands
- Openframe Services - Runnable service layer assembling Spring Boot applications
- Sdk Fleetmdm - Java model layer for exchanging Fleet MDM and osquery metadata
Visual documentation - View Mermaid diagrams in: ./diagrams/architecture/
The diagrams mirror the module structure of the Reference docs above (one or more .mmd files per module, e.g. api-controllers.mmd, openframe-client-core.mmd, rmm-services.mmd), showing component relationships for each documented module.
The OpenFrame CLI tools is maintained in a separate repository:
- Repository: flamingo-stack/openframe-cli
- Installation: Installation Guide
- Documentation: CLI Documentation
Note: CLI tools are NOT located in this repository. Always refer to the external repository for installation and usage.
- Project README - Main project README
- Contributing - How to contribute
- License - License information
Documentation generated by 🦩 flamingo Code Documentation
