π‘ Control Logitech Litra lights from the command line, Model Context Protocol (MCP) clients and Rust applications
Fork notice. This repository is a personal fork of
timrogers/litra-rs. It tracks upstream but adds two GUI front-ends on top of the library and CLI:
- A native macOS menubar application (
litra-menubarbinary, behind themenubarcargo feature) - see macOS Menubar Application below.- A KDE Plasma 6 plasmoid for Linux - see
tray-plasmoid/and KDE Plasma Plasmoid (Linux) below.Everything else in this README reflects upstream behavior. The fork may lag behind upstream; for the canonical project see the upstream repo. See
CLAUDE.mdfor a full list of fork changes.
With this tool, you can:
- π‘ Turn your light on and off
- π Check if the light is on or off
- ποΈ Set, get, increase and decrease the brightness of your light
- π‘οΈ Set, get, increase and decrease the temperature of your light
- π Control the colorful back side of the Litra Beam LX, turning it on and off, setting the brightness and switching colors
Tip
π²οΈ Want to automatically turn your Litra on and off when your webcam turns on and off? Check out litra-autotoggle!
The following Logitech Litra devices, connected via USB, are supported:
macOS or Linux via Homebrew
- Install the latest version by running
brew install litra. - Run
litra --helpto check that everything is working and see the available commands.
Note
If you installed Litra via Homebrew before January 30 2026, you will have installed from the timrogers/homebrew-tap tap. litra is now available through homebrew-core. You should reinstall the tool by running brew uninstall litra && brew install litra.
macOS, Linux or Windows via Cargo, Rust's package manager
- Install Rust on your machine, if it isn't already installed.
- Install the
litracrate by runningcargo install litra. - Run
litra --helpto check that everything is working and see the available commands.
- Download the latest release for your platform. macOS, Linux and Windows devices are supported.
- Add the binary to
$PATH, so you can execute it from your shell. For the best experience, call itlitraon macOS and Linux, andlitra.exeon Windows. - Run
litra --helpto check that everything is working and see the available commands.
On most Linux operating systems, you will need to manually configure permissions using udev to allow non-root users to access and manage Litra devices.
To allow all users that are part of the video group to access the Litra devices, copy the 99-litra.rules file into /etc/udev/rules.d.
Next, reboot your computer or run the following commands as root:
# udevadm control --reload-rules
# udevadm trigger
The following commands are available for controlling your devices:
litra on: Turn your Logitech Litra device onlitra off: Turn your Logitech Litra device offlitra toggle: Toggles your Logitech Litra device on or offlitra brightness: Sets the brightness of your Logitech Litra device, using either--value(measured in lumens) or--percentage(as a percentage of the device's maximum brightness). The brightness can be set to any value between the minimum and maximum for the device returned by thedevicescommand.litra brightness-up: Increases the brightness of your Logitech Litra device, using either--value(measured in lumens) or--percentage(with a number of percentage points to add to the device's brightness)litra brightness-down: Decreases the brightness of your Logitech Litra device, using either--value(measured in lumens) or--percentage(with a number of percentage points to subtract from the device's brightness)litra temperature: Sets the temperature of your Logitech Litra device, using a--valuemeasured in kelvin (K). The temperature can be set to any multiple of 100 between the minimum and maximum for the device returned by thedevicescommand.litra temperature-up: Increases the temperature of your Logitech Litra device, using a--valuemeasured in kelvin (K). The value must be a multiple of 100.litra temperature-down: Decreases the temperature of your Logitech Litra device, using a--valuemeasured in kelvin (K). The value must be a multiple of 100.litra back-on: Turn on the colorful backlight on your Logitech Litra Beam LX devicelitra back-off: Turn off the colorful backlight on your Logitech Litra Beam LX devicelitra back-toggle: Toggles the colorful backlight on your Logitech Litra Beam LX device on or offlitra back-brightness: Sets the brightness of the colorful backlight on your Logitech Litra Beam LX device, using--percentage(as a percentage of the maximum brightness)litra back-brightness-up: Increases the brightness of the colorful backlight on your Logitech Litra Beam LX device, using--percentage(with a number of percentage points to add to the backlight's brightness)litra back-brightness-down: Decreases the brightness of the colorful backlight on your Logitech Litra Beam LX device, using--percentage(with a number of percentage points to subtract from the backlight's brightness)litra back-color: Sets the color of the colorful backlight on your Logitech Litra Beam LX device, using--color(a named color) or--value(a hexadecimal color code, e.g.FF0000for red). You can optionally target a specific zone with--zone(numbered 1 to 7 from left to right).
By default, these commands target all connected Litra devices, but this can be filtered down using one of the following device targeting options:
--serial-number/-s: Specify the device to target by its serial number--device-path/-p: Specify the device path to target (useful when devices don't have serial numbers)--device-type/-t: Specify the type of device to target:glow,beam, orbeam_lx(not available forback-*commands which only support Litra Beam LX devices)
The following commands are also included:
litra devices: List Logitech Litra devices connected to your computer. This will be returned in human-readable format by default, or you can get JSON output with the--jsonflag.
Each CLI command can also be called with --help for more detailed documentation.
The CLI automatically checks for updates once per day. If a new version is found, it will print details on how to upgrade.
You can disable this behavior by setting the LITRA_DISABLE_UPDATE_CHECK environment variable.
Running the litra mcp command starts a local Model Context Protocol (MCP) server, exposing tools to allow you to control your Litra devices from AI applications and agents.
To use the MCP server with Claude Desktop:
- From the Claude app, open the "Developer" menu, then click "Open App Config File...".
- Add the MCP server to the
mcpServerskey in your config:
{
"mcpServers": {
"litra": {
"command": "litra",
"args": [
"mcp"
]
}
}
}- Back in the Claude app, open the "Developer" menu, then click "Reload MCP Configuration".
- To check that the MCP server is running, start a chat, then click the "Search and tools" button under the chat input, and check for a "litra" item in the menu.
The following tools are available:
litra_devices: List available Logitech Litra deviceslitra_on: Turn your Logitech Litra device onlitra_off: Turn your Logitech Litra device offlitra_toggle: Toggles your Logitech Litra device on or offlitra_brightness: Sets the brightness of your Logitech Litra device to either a specific value measured in lumens (lm) or a percentage of the device's maximum brightness. The brightness can be set to any value between the minimum and maximum for the device returned by thelitra_devicestool.litra_brightness_up: Increases the brightness of your Logitech Litra device, using either a specific value (measured in lumens) or a percentage of the device's maximum brightnesslitra_brightness_down: Decreases the brightness of your Logitech Litra device, using either a specific value (measured in lumens) or a percentage of the device's maximum brightnesslitra_temperature: Sets the temperature of your Logitech Litra device to a specific value measured in kelvin (K). The temperature can be set to any multiple of 100 between the minimum and maximum for the device returned by thelitra_devicestool.litra_temperature_up: Increases the temperature of your Logitech Litra device, using a specific value measured in kelvin (K). The value must be a multiple of 100.litra_temperature_down: Decreases the temperature of your Logitech Litra device, using a specific measured in kelvin (K). The value must be a multiple of 100.litra_back_on: Turn on the back light on your Logitech Litra Beam LX devicelitra_back_off: Turn off the back light on your Logitech Litra Beam LX devicelitra_back_toggle: Toggles the back light on your Logitech Litra Beam LX device on or offlitra_back_brightness: Sets the brightness of the back light on your Logitech Litra Beam LX device to a specific percentage of the maximum brightnesslitra_back_brightness_up: Increases the brightness of the back light on your Logitech Litra Beam LX device by a specified number of percentage pointslitra_back_brightness_down: Decreases the brightness of the back light on your Logitech Litra Beam LX device by a specified number of percentage pointslitra_back_color: Sets the color of the back light on your Logitech Litra Beam LX device to a specific hexadecimal color code. Can target a specific zone (1-7) or all zones.
A native macOS menubar application provides quick access to your Litra devices from the system menu bar.
Features:
- System tray icon with click-to-show popup window
- Device selection from multiple connected Litra devices
- Real-time power, brightness, and temperature controls
- Positioned popup window below the menubar icon
Building and running:
# Build the menubar application
cargo build --bin litra-menubar --features menubar --release
# Run from the build directory
./target/release/litra-menubarFor easier access, you can optionally create a macOS .app bundle to add to your Applications folder or run at login.
A native KDE Plasma 6 plasmoid (QML widget) lives in tray-plasmoid/. It plugs into the panel or system tray, gets popup positioning for free from Plasma, and shells out to the litra CLI.
Features:
- Native Plasma 6 system tray integration with proper popup anchoring
- Real-time brightness and temperature control via
litra - Custom lightbulb icon (lit when on, outline when off)
Install (Arch via the bundled PKGBUILD):
makepkg -si # builds litra CLI + udev rule + installs plasmoid system-wideThen add the widget: right-click panel/system tray > Add or Manage Widgets > search Litra Glow Control.
Manual install (development / non-Arch):
cd tray-plasmoid && ./install.sh
kquitapp6 plasmashell && (setsid plasmashell &) >/dev/null 2>&1The litra crate includes functions for interacting with Litra devices from your Rust applications.
To see the full API, check out the documentation on Docs.rs or read through src/lib.rs.