keylightctl is a CLI tool that allows you to control your Elgato/Corsair Key Light via the command line. It lets you set the brightness and the temperature without opening the Elgato Control Center app.
To install keylightctl you need Go v1.20 or higher. Then run:
go install github.com/andrewslotin/keylightctl@latestThis will install the keylightctl binary into your $GOPATH/bin directory.
keylightctl performs a discovery to find the first Key Light on your network. If you have multiple Key Lights, you can specify the IP addresses of those you want to control as arguments in following format: <ip:port>. The default port is 9123.
The following command would set the brightness to 50% and the color temperature to 4500K:
keylightctl -b 50 -k 4500Any of the flags can be omitted, in which case the corresponding setting will not be changed. For example, the following command would only set the brightness to 50% while leaving the color temperature unchanged:
keylightctl -b 50To turn the light off, set the brightness to 0 by running:
keylightctl -b 0To turn the light on, set the brightness to a value greater than 0.
To see all available flags, run:
keylightctl -hkeylightctl is licensed under the MIT license. See the LICENSE file for details.