# oshi/oshi

Native Operating System and Hardware Information

Repository: https://github.com/oshi/oshi
Canonical: https://ross.abutalabs.com/products/oshi
Homepage: https://oshi.ooo
Language: Java
License: MIT
License Family: permissive
Topics: operating-system, hardware-information, java, jna, cpu-usage, memory-usage, disk-utilization, process-list, system-monitoring, foreign-function-and-memory-api, metrics
Last push: 2026-08-26T02:14:32+00:00

## Health v2 (maintenance only)
Score: 99/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 99, longevity 100
- inputs: {"age_days": 5318, "days_push": 8, "days_rel": 10, "gap_med": 12, "n_releases_24m": 32}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 5260, forks 918 (observed 2026-08-28T04:09:13.821445+00:00)

## What it is
OSHI is a free, cross-platform Java library for retrieving native operating system and hardware information using JNA or the JDK Foreign Function & Memory API, with no additional native library installation required. It exposes a unified API for OS version, processes, CPU and memory usage, disks, filesystems, network interfaces, sensors, batteries, USB devices, GPUs, and more across Windows, macOS, Linux, and UNIX platforms.

## Use cases
- get cpu and memory usage in java
- list running processes with cpu and memory stats
- read disk and partition information cross-platform
- monitor system temperature and fan speeds
- detect operating system version and hardware details
- query network interface bandwidth and stats
- build a java system monitoring dashboard
- get battery and usb device info from java

## When to choose
- you need cross-platform system/hardware metrics from Java without native dependencies
- you want a single unified API covering Windows, macOS, Linux, and BSD/UNIX
- you need detailed process, filesystem, network, or sensor data for monitoring tools

## When to avoid
- you are not working on the JVM (use psutil, sigar, or OS-native tools instead)
- you only need metrics for one OS and prefer a lighter native-specific solution
- you need real-time low-overhead telemetry rather than on-demand polling

## Facets
- artifact type: library
- maturity: active
- function: monitoring, developer-tools, sdk
- domain: operating-systems, developer-tools, monitoring, cross-platform
- platform: jvm, cross-platform, windows, bsd
- tags: jna, ffm, system-information, hardware-monitoring, cpu-usage, memory-usage, disk-utilization, process-list, sensors, metrics, macos, linux

## Member repositories
- oshi/oshi (main) score 99

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:13.821445+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:59:30.814799+00:00, confidence not recorded.
  - readme: https://github.com/oshi/oshi (fetched 2026-08-28T04:09:13.821445+00:00, sha 872a79b72eca)
  - homepage: https://oshi.ooo (fetched 2026-08-29T08:54:28.103326+00:00, sha 6b849410cff9)
  - site_page: https://www.oshi.ooo/oshi-core/apidocs (fetched 2026-08-29T08:54:28.112660+00:00, sha 783f55d33b14)
  - site_page: https://www.oshi.ooo/oshi-core-ffm/apidocs (fetched 2026-08-29T08:54:28.114419+00:00, sha c55d1b32cd0c)
  - site_page: https://www.oshi.ooo/oshi-core/apidocs/com.github.oshi.common/oshi/util/GlobalConfig.html (fetched 2026-08-29T08:54:28.116059+00:00, sha 1b3bfe9697b5)
- Data as of 2026-08-30T08:39:29.467469+00:00.
