KX2-to-Anyrig - Remote contesting with the KX2 as front panel
My TS-590SG lives in the shack, but in winter I’d rather sit in the living room with a laptop. Typical remote setups use a mouse and a software VFO knob, and never felt right to me. But there is a KX2 lying around here anyway: a real VFO knob, real buttons, a nice little front panel. So why not use it as the remote control head for the big rig?
That’s what KX2-to-Anyrig does. It’s a Python tool with two parts:
- kx2-local runs on the PC with the KX2. It talks to the KX2 via CAT and provides virtual COM ports for Win-Test (running in Wine under Linux), including a WinKeyer emulation for CW.
- anyrig-remote runs on the shack PC next to the transceiver. It controls the rig via CAT, keys CW via DTR (or the rig’s own KY command) and streams the receiver audio back to the operator using the Opus codec.
Turning the KX2 VFO knob moves the TS-590SG within about 10-30 ms, and changes made on the TS-590SG itself are mirrored back to the KX2 (the remote rig is always the master, so there’s no ping-pong). Filter, ATT, PRE, NB, NR, notch and AGC follow the KX2 controls, and the AF gain knob sets the volume of the audio stream. The rest is handled by a small web UI. Audio latency from the TS-590SG speaker to the laptop is about 100 ms on my LAN, which is perfectly fine for running and S&P. For safety, the remote side stops transmitting immediately if the connection drops, e.g. when the WiFi goes away in the middle of a CQ.
Note that there is no authentication on the control connection. For operation over the internet use a VPN (I use WireGuard) and don’t open any ports on your router.
Currently only the Kenwood driver (TS-590SG) is implemented, but the remote side is designed to be rig-independent: a driver per protocol family plus a small YAML profile per model. Yaesu, Icom CI-V, Elecraft and a Hamlib fallback are on the list. If you own a KX2 and a different home rig and would like to help, please get in touch!
You can find the description, configuration examples and the source code (GPL-3.0) here: https://github.com/dk5tx/kx2-to-anyrig/
Any questions or suggestions are welcome! Let me know via email.

KX2-to-Anyrig Web User Interface