macOS
brew install hidapilocal Homebrew formula metadata
sudo port install hidapiMacPorts ports tree · comms/hidapi/Portfile · ソース: api.github.com
brew
hidapi のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。
インストール
brew install hidapilocal Homebrew formula metadata
sudo port install hidapiMacPorts ports tree · comms/hidapi/Portfile · ソース: api.github.com
sudo apk add hidapiAlpine Linux edge package indexes · hidapi · ソース: dl-cdn.alpinelinux.org
sudo dnf install hidapiFedora Rawhide package metadata · hidapi · ソース: dl.fedoraproject.org
nix profile install nixpkgs#hidapinixpkgs package indexes · pkgs/by-name/hi/hidapi/package.nix · ソース: api.github.com
sudo pacman -S hidapiArch Linux sync databases · hidapi · ソース: geo.mirror.pkgbuild.com
sudo apt install libhidapi-devDebian stable package indexes · libhidapi-dev · ソース: deb.debian.org
sudo zypper install libhidapi-developenSUSE Tumbleweed package metadata · libhidapi-devel · ソース: download.opensuse.org
概要
Library for communicating with USB and Bluetooth HID devices
履歴
HIDAPI is a small C library for talking to USB and Bluetooth HID-class devices across Windows, Linux, FreeBSD, and macOS. Its package-manager identity is both a development library and a pair of small test binaries used to verify HID access.
The project is valued because it hides the platform split between Windows `hid.dll`, macOS IOHidManager, Linux hidraw, and libusb-backed Unix builds behind one C API.
HIDAPI was originally developed by Alan Ott of Signal 11 Software; the original license file carries a 2009 copyright notice. The tag history shows public 0.x releases beginning in 2010, with early work around test programs and platform makefiles.
The README records a major stewardship change on June 4, 2019, when the project moved to `libusb/hidapi` to merge important bug fixes and continue development. Release tags after that move include 0.9.0 in June 2019 and later work on CMake, Meson wrapping, API additions, and backend fixes.
The library kept its simple integration model across the move: applications can link a shared library or embed one platform-specific source file plus the public header. That made HIDAPI practical for hardware tools that need a low-friction C dependency.
HIDAPI is widely packaged because it solves a cross-platform hardware problem at the C ABI level. The input package map lists packages for Alpine, Homebrew, Debian/Ubuntu, Fedora, MacPorts, Nix, Arch, and openSUSE-style systems.
The libusb-hosted repository also matters socially: libusb is a familiar home for USB users, and the README says the Linux/libusb backend uses libusb-1.0 while Linux/hidraw supports both USB and Bluetooth HID devices.
Typical application usage is to initialize the library, open a device by vendor ID and product ID, exchange input/output/feature reports, and close/finalize the handle. The README includes a compact C example and points developers to `hidtest/test.c` as a starting point.
On Linux, users choose between `libhidapi-hidraw` and `libhidapi-libusb` at link time, with udev rules needed for unprivileged device access. On macOS and Windows, HIDAPI uses the native HID frameworks exposed by the operating system.
HIDAPI is a classic package-manager library: small, C ABI-friendly, cross-platform, and pulled into many higher-level device tools. It earns its slot in package sets because every downstream would rather not reinvent HID enumeration and report I/O per OS.
Its licensing is also package-relevant. The README and license files describe GPL-3.0, BSD-style, and original HIDAPI license options, letting open-source and closed-source consumers pick an appropriate licensing path.
セキュリティ状態
library-like package without higher-risk signals.
リスク グリーン · 信頼度 低 · appliance
エージェントに無人実行させる前に、このツールが平文の認証情報を読むか、リモート状態を書き込むか、成果物を公開するか、プラグインを起動するかを確認してください。
実行可能ファイル
| コマンド | 種類 | 公開範囲 | メモ |
|---|---|---|---|
hidtest_hidraw | cli | グローバル実行可能ファイル | |
hidtest_libusb | cli | グローバル実行可能ファイル |
鮮度
これらの信号は、ページ生成時期、パッケージマネージャの活動、上流リリース比較を分けて示します。バージョン遅れは、証拠 URL と比較可能なバージョンがある場合だけ警告されます。
https://github.com/libusb/hidapi
インストールメタデータ
| パッケージキー | brew:hidapi |
|---|---|
| バージョン | 0.15.0 |
| パッケージマネージャ | Homebrew |
| パッケージマネージャページ | https://formulae.brew.sh/formula/hidapi |
| ホームページ | https://libusb.info/hidapi/ |
| リポジトリ | https://github.com/libusb/hidapi |
| 上流ドキュメント | https://github.com/libusb/hidapi#readme |
| ライセンス | GPL-3.0-only OR BSD-3-Clause OR HIDAPI |
| ソースアーカイブ | https://github.com/libusb/hidapi/archive/refs/tags/hidapi-0.15.0.tar.gz |
| 最終更新 | 2026-06-15T10:20:18-04:00 |
| Pulse | updated |
| ビルド依存関係 | cmake, pkgconf |
| Bottle | 利用可能 (対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux) |
| Homebrew post-install | 未定義 |
| サービス | 宣言なし |
レジストリ情報
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | hidapi |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
ソースデータベース一致
一致は外部パッケージマネージャインデックスから取得され、ローカルの Automic Vault パッケージリンクとは分けて表示されます。
libhidapi-dev 0.14.0-1+b2
Multi-Platform library for communication with HID devices (development files)
https://github.com/libusb/hidapi
sudo apt install libhidapi-devlibhidapi-hidraw0 0.14.0-1+b2
Multi-Platform library for communication with HID devices (hidraw backend)
https://github.com/libusb/hidapi
sudo apt install libhidapi-hidraw0libhidapi-libusb0 0.14.0-1+b2
Multi-Platform library for communication with HID devices (libusb backend)
https://github.com/libusb/hidapi
sudo apt install libhidapi-libusb0hidapi
nix profile install nixpkgs#hidapilibhidapi-dev 0.14.0-1build1
Multi-Platform library for communication with HID devices (development files)
https://github.com/libusb/hidapi
sudo apt install libhidapi-devlibhidapi-hidraw0 0.14.0-1build1
Multi-Platform library for communication with HID devices (hidraw backend)
https://github.com/libusb/hidapi
sudo apt install libhidapi-hidraw0libhidapi-libusb0 0.14.0-1build1
Multi-Platform library for communication with HID devices (libusb backend)
https://github.com/libusb/hidapi
sudo apt install libhidapi-libusb0hidapi 0.15.0-r0
Simple library for communicating with USB and Bluetooth HID devices
https://github.com/libusb/hidapi
sudo apk add hidapihidapi-dev 0.15.0-r0
Simple library for communicating with USB and Bluetooth HID devices (development files)
https://github.com/libusb/hidapi
sudo apk add hidapi-devhidapi 0.15.0-3.fc44
Library for communicating with USB and Bluetooth HID devices
https://github.com/libusb/hidapi
sudo dnf install hidapihidapi-devel 0.15.0-3.fc44
Development files for hidapi
https://github.com/libusb/hidapi
sudo dnf install hidapi-develmingw32-hidapi 0.15.0-3.fc44
Development files for hidapi
https://github.com/libusb/hidapi
sudo dnf install mingw32-hidapimingw64-hidapi 0.15.0-3.fc44
Development files for hidapi
https://github.com/libusb/hidapi
sudo dnf install mingw64-hidapihidapi 0.15.0-1
Simple library for communicating with USB and Bluetooth HID devices
https://github.com/libusb/hidapi
sudo pacman -S hidapilibhidapi-devel 0.14.0-1.7
Development libraries and header files for hidapi
https://github.com/libusb/hidapi
sudo zypper install libhidapi-devellibhidapi-hidraw0 0.14.0-1.7
Simple library for communicating with USB and Bluetooth HID devices
https://github.com/libusb/hidapi
sudo zypper install libhidapi-hidraw0ソース経路
このページは scripts/generate-pkg-sqlite.py が生成した非公開のパッケージ SQLite アーティファクトから av-web によって提供されます。
View the package source record on GitHub.