Openframe Client Core Java provides the shared client-runtime functionality used by the OpenFrame Client service. It is consumed from the com.openframe.oss:openframe-client-core artifact at version 7.0.11 and supplies the application boundary between endpoint agents, tenant services, messaging systems, persistence, and platform-specific operating-system integrations.
The module includes approximately 873 components organized under the OpenFrame OSS Library client-core source tree:
openframe-oss-lib/openframe-client-core/src/main/java/com/openframe/client
Its responsibilities include:
- Agent authentication, registration, configuration, and lifecycle management.
- Remote-access and tool-agent communication.
- Command, delivery, package, and operating-system update processing.
- NATS and Kafka message handling.
- Scheduling, execution, retries, and result tracking.
- Cross-platform support for Linux, macOS, and Windows.
- Logging, metrics, diagnostics, self-healing, and client updates.
- Shared domain models and transport messages.
Openframe Client Core Java is organized as a layered client-runtime module. Controllers and listeners receive external requests or messages, services coordinate domain workflows, models represent state and messages, and platform components perform operating-system-specific operations.
flowchart LR
External["Tenant APIs and Agent Messages"] --> Boundary["Controllers and Listeners"]
Boundary --> Services["Client Services"]
Services --> Domain["Core Models and State"]
Services --> Messaging["NATS and Kafka Messaging"]
Services --> Persistence["Repositories and Configuration"]
Services --> Platform["Platform and Executor Components"]
Platform --> OperatingSystem["Linux, macOS, and Windows"]
Services --> Observability["Logging, Metrics, and Diagnostics"]
The client receives commands and lifecycle events through HTTP, NATS, Kafka, and application events. Core services validate and process those inputs, persist results, publish status updates, and invoke platform-specific executors when local work is required.
sequenceDiagram
participant Agent as Endpoint Agent
participant Listener as Client Listener
participant Service as Client Service
participant Store as Persistence
participant Bus as NATS or Kafka
participant Executor as Platform Executor
Agent->>Listener: Send registration, status, or result message
Listener->>Service: Validate and delegate message
Service->>Store: Read or update client and device state
Service->>Executor: Run local command or platform operation
Executor-->>Service: Return execution result
Service->>Store: Record result and state transition
Service->>Bus: Publish status or delivery event
Bus-->>Agent: Deliver follow-up work or result
cli-entrypointbannerconfig-corehttp-client-factoryinstallation-initial-config-servicesystem-info
These components initialize the client, assemble runtime configuration, create HTTP clients, and provide installation and system metadata.
auth-clientregistration-clientservices-agent-authservices-agent-registrationservices-agent-configurationservices-agent-sessionservices-initial-authentication-processorservices-registration-processormodels-agentmodels-agent-registrationmodels-agent-registration-responsemodels-agent-token-response
This area manages client credentials, token exchange, machine registration, initial authentication, tenant configuration, and registration responses.
listener-command-corelistener-command-handlerslistener-command-package-adoptlistener-command-package-updatelistener-command-restartlistener-executionlistener-remote-access-messagedelivery-listenerscore-listenersrmm-listenerspackage-adopt-listenerspackage-update-listeners
These components consume incoming commands and status events, route them to application services, process delivery results, and acknowledge or retry messages according to processing outcomes.
services-executionservices-device-data-fetcherservices-package-manager-coreservices-package-manager-adoptservices-package-manager-updateservices-package-manager-update-ordersservices-tool-installationservices-tool-connectionservices-tool-run-managerservices-tool-restartservices-tool-uninstallservices-tool-killservices-tool-opsservices-remote-access-mode
This area coordinates scripts, package-manager operations, tool installation, tool connectivity, remote access, execution state, and delivery outcomes.
service-coreservice-adapterservices-last-known-goodservices-result-store-coreservices-result-store-ledgerservices-result-outbox-run-managerservices-update-stateservices-token-refresh-run-managerservices-machine-heartbeat-run-managerservices-machine-timezone-run-managerservices-os-updates-report-run-managerservices-package-manager-report-run-managerservices-tool-run-manager
These components provide reusable service contracts, adapters, scheduled processing, durable result storage, retry coordination, and state transitions.
logging-corelogging-log-parserlogging-log-rotationlogging-log-sourcelogging-metricslogging-nats-streaminglogging-shippingmetrics-initdoctor-coredoctor-checksdoctor-healingdoctor-healing-webview2monitoring-permissions
This area handles local log collection and rotation, log shipping, metrics initialization, health checks, diagnostics, permissions, and automated repair workflows.
executor-coreexecutor-unixexecutor-windowsplatform-directoriesplatform-file-aclplatform-file-lockplatform-machine-info-persistenceplatform-os-versionplatform-os-updatesplatform-os-updates-windows-modelplatform-powershellplatform-system-serviceplatform-user-session-macosplatform-chat-channel-macosplatform-chat-channel-windowsplatform-tool-updater-coreplatform-tool-updater-serviceplatform-uninstall
Platform components isolate operating-system behavior from the client service layer. The executor modules provide command execution, while platform modules manage files, permissions, services, updates, processes, user sessions, installers, and uninstall behavior.
The models-* components define messages and state objects for agents, devices, delivery, execution, packages, tools, updates, and feature flags. The utils-* components provide filesystem operations, latches, timed permits, failure backoff, in-progress tracking, and version comparison.
flowchart TD
Messages["Agent and Delivery Messages"] --> Services["Client Services"]
Services --> State["Device, Tool, Package, and Update State"]
State --> Results["Execution and Delivery Results"]
Services --> Utilities["Shared Utilities"]
Utilities --> Platform["Platform Implementations"]
The following component documentation describes the primary functional areas of Openframe Client Core Java:
- Config — Spring configuration for password encoding, Redis-backed scheduling locks, and Kafka delivery dispatch.
- Controller — HTTP endpoints for agent authentication, registration, lifecycle operations, and log-key retrieval.
- Feature Flags Datafetcher — GraphQL access to tenant-specific client feature flags.
- Dto — Transport objects for client authorization requests and metrics messages.
- Core Listeners — Event ingestion for machine, user, and delivery events.
- Delivery Listeners — Kafka dispatch handling and NATS JetStream delivery-result processing.
- Package Adopt Listeners — Package-adoption status processing and execution-result correlation.
- Package Update Listeners — Package-update status, delivery failure, retry, and request-state processing.
- Rmm Listeners — Direct NATS, JetStream, and application-event processing for RMM activity.
- Metrics — Micrometer gauges for device-online dispatch backlog and batch capacity.
- Publisher — Default Kafka publishing for event logs and command results.
- Scheduler — Periodic orchestration for device, Fleet, script, software, package, and tool workflows.
- Device Lifecycle Service — Promotion of eligible devices from pending to managed state.
- Agent Registration Services — Machine registration, configuration delivery, tool installation, and tag assignment.
- Agent Registration Processors — Post-registration extension processing.
- Agent Registration Transformers — Tool-specific agent-identifier normalization.
- Auth Services — Machine token generation, refresh handling, access guards, and authentication auditing.
- RMM Services — Scheduling, delivery eligibility, software dispatch, and package-manager bootstrap.
- OS Update Services — Reconciliation of update catalogs, device state, pending updates, and installation history.
- OS Update Parsers — Normalization of operating-system update reports into domain objects.
- RMM Watchdog Services — Channel-specific delivery republishing and recovery.
The module source is organized by technical responsibility rather than by deployable application. The primary package areas are:
com.openframe.client
├── config
├── controller
├── datafetcher
├── dto
├── listener
├── metrics
├── models
├── platform
├── publisher
├── scheduler
├── service
├── system
└── utils
Openframe Client Core Java is therefore a reusable client-runtime foundation. The OpenFrame Client service supplies application assembly and deployment configuration, while this module supplies the shared authentication, event processing, service orchestration, platform integration, and operational behavior.