Cette page est affichée en anglais. Une traduction française est en cours.
ScriptsMay 21, 2026·3 min de lecture

Karabiner-Elements — Powerful Keyboard Customizer for macOS

A free utility for macOS that lets you remap keys, create complex modification rules, and customize any keyboard at the system level.

Prêt pour agents

Cet actif peut être lu et installé directement par les agents

TokRepo expose une commande CLI universelle, un contrat d'installation, le metadata JSON, un plan selon l'adaptateur et le contenu raw pour aider les agents à juger l'adaptation, le risque et les prochaines actions.

Native · 98/100Policy : autoriser
Surface agent
Tout agent MCP/CLI
Type
Skill
Installation
Single
Confiance
Confiance : Established
Point d'entrée
Karabiner-Elements Overview
Commande CLI universelle
npx tokrepo install d638e629-550f-11f1-9bc6-00163e2b0d79

Introduction

Karabiner-Elements is a system-level keyboard customizer for macOS that intercepts key events before they reach applications. It allows simple remapping as well as complex multi-key rules, making it a foundational tool for developers and power users who rely on custom keyboard workflows.

What Karabiner-Elements Does

  • Remaps any key to any other key at the OS level
  • Supports complex rules with conditions like app-specific bindings
  • Handles simultaneous key presses and key sequences (chording)
  • Works with any USB, Bluetooth, or built-in keyboard
  • Provides per-device configurations for different keyboards

Architecture Overview

Karabiner-Elements consists of a kernel-level virtual keyboard driver and a user-space event processing daemon. The driver creates a virtual HID device that replaces the original keyboard input. The daemon reads events from the physical keyboard, applies modification rules defined in JSON, and writes the transformed events to the virtual device. A preferences app provides a GUI for managing rules.

Self-Hosting & Configuration

  • Install via Homebrew: brew install --cask karabiner-elements or download the DMG
  • Requires macOS 11 Big Sur or later
  • Grant Input Monitoring and kernel extension permissions when prompted
  • Edit rules via the GUI or directly in ~/.config/karabiner/karabiner.json
  • Import community rules from the online rule gallery with one click

Key Features

  • Simple one-to-one key remapping with no configuration files needed
  • Complex rules engine supporting conditionals, variables, and shell commands
  • Device-specific profiles that activate per keyboard
  • Hyper key support (remap Caps Lock to Ctrl+Shift+Option+Cmd simultaneously)
  • Community-maintained library of hundreds of importable rule sets

Comparison with Similar Tools

  • Hammerspoon — Lua-based macOS automation covering more than keyboard; no kernel driver
  • BetterTouchTool — Broader input customization (trackpad, Touch Bar) with a paid license
  • xmodmap / xkb — Linux keyboard remapping tools; not available on macOS
  • AutoHotkey — Windows-only scripting tool for keyboard and mouse automation
  • Kinto — Cross-platform key remapper focused on making macOS shortcuts work like Windows/Linux

FAQ

Q: Does Karabiner-Elements work on Apple Silicon Macs? A: Yes, it supports Apple Silicon natively since version 14.0.

Q: Will it slow down my keyboard input? A: No. The virtual keyboard driver processes events in microseconds, and the modification daemon adds negligible latency.

Q: Can I use different mappings per application? A: Yes. Complex rules support frontmost_application conditions so mappings only activate in specific apps.

Q: Is the kernel extension safe? A: The DriverKit-based virtual HID device runs in user space on modern macOS, avoiding traditional kernel extension risks. The project is auditable as open source.

Sources

Fil de discussion

Connectez-vous pour rejoindre la discussion.
Aucun commentaire pour l'instant. Soyez le premier à partager votre avis.

Actifs similaires