Introduction
QSP lets you operate your own amateur radio transceiver from a web browser: tune, change mode and band, and hear the band live, from wherever you are.
This documentation has two parts.
- User guide. For radio amateurs who want to put their station on QSP. It walks you through installing and running the QSP agent next to your rig, then operating from your browser. Start with How QSP works, then follow Getting started.
- Advanced. For people who want to understand the pieces or run their own QSP instance: the architecture, a self-hosting quick start and a developer guide.
Status of the hosted service
The hosted QSP service is not open to the public yet. The user guide describes how things will work with the hosted service, and some steps, such as getting an account, are provisional and done by hand for now. Nothing here means you can already sign up. If you would like to run your own instance in the meantime, see the self-hosting quick start.
What you need to know first
- The QSP agent runs on Linux only. The guide uses a Raspberry Pi with 64-bit Raspberry Pi OS as its reference setup, but any Debian-based Linux on amd64 or arm64 works the same way.
- Your radio is controlled through Hamlib, so it must be supported by Hamlib.
How QSP works
QSP has two ends that matter to you:
- Your browser, wherever you are.
- The QSP agent, a small program that runs next to your rig (for example on a Raspberry Pi), talks to your transceiver and listens to its audio.
Your browser and the agent talk to each other directly. Audio and radio control travel over a direct, two-way, peer-to-peer connection (WebRTC) between the two. They do not go through a QSP server.
The QSP services are only used to sign you in and to introduce your browser and your agent to each other, so that they can open that direct connection. After the introduction, the audio and control never pass through them.
What this means for you
- Your audio does not pass through QSP servers. It goes straight between your browser and your agent.
- Both ends must be able to reach each other. Most home connections allow this without any setup, but some networks do not. QSP has no relay server today, so if the direct connection cannot be made, you will not get audio. See Troubleshooting.
- The agent only makes outgoing connections to the QSP services. You do not need to open a port on your router for the sign-in and introduction step.
For the technical details, see the Architecture page.
Getting started
This section takes you from nothing to operating your radio from a browser. The steps are:
- Check the requirements.
- Register your station with the QSP operator.
- Install the agent on the computer next to your rig.
- Configure the agent with your station credentials and your radio.
- Run it as a service so it starts by itself.
- Operate from your browser.
Service address. The QSP service is at
qspradio.top. It is not open to the public yet (see the status).
The hosted QSP service is not open to the public yet. These steps describe how it will work. If you run your own instance, see the self-hosting quick start and use your own address as the service address.
Requirements
A computer next to your rig
The QSP agent runs on Linux only. The reference setup in this guide is a Raspberry Pi running 64-bit Raspberry Pi OS. Any Debian-based Linux on a 64-bit ARM (arm64) or Intel/AMD (amd64) machine works the same way.
The computer must be on all the time you want your station to be reachable, and it needs an internet connection. It only makes outgoing connections, so no port forwarding is needed for signing in.
A radio Hamlib can control
The agent controls your transceiver through Hamlib. Check that your radio is in the Hamlib list and note its Hamlib model number (rigctl --list shows them; install the tool first with sudo apt install libhamlib-utils, or browse the list of radios supported by Hamlib). You also need a way to connect it to the computer, typically a USB or serial CAT cable.
Audio
The agent listens to the transceiver audio through the computer’s default audio input device. Connect your radio’s audio output to a sound card input (a USB audio interface, or the radio’s own USB audio) and make sure that is the default input.
A QSP account and station
You need an agent ID and secret for your station. See Register your station.
A modern browser
To operate, use a current desktop or mobile browser with WebRTC support.
Register your station
Service address. The QSP service is at
qspradio.top. It is not open to the public yet (see the status).
Provisional process. The hosted QSP service is not open to the public yet, and registration is done by hand for now. It is planned to become self-service later, and this page will then change.
Today, the procedure is:
- Ask the QSP operator for an account on the service.
- The operator creates your station and an agent for it in the service.
- The operator gives you two values:
- the agent ID, which identifies your agent;
- the agent secret, which proves it is really your agent.
Keep the agent secret private, like a password. Anyone who has it can connect an agent as your station.
You will put these two values, and the service address, in the agent’s configuration file in Configure the agent.
Install the agent
Status. The hosted QSP service is not open yet. To use the agent you need an account from a service operator (see Register your station) or your own self-hosted instance.
The agent is shipped as a .deb package for Debian-based Linux, including Raspberry Pi OS and Ubuntu, for 64-bit ARM (arm64) and Intel/AMD (amd64). There are three ways to install it. Use the APT repository unless you have a reason not to: apt then installs the agent’s dependencies and brings every new version with apt upgrade.
Check your architecture first. On a Raspberry Pi with 64-bit Raspberry Pi OS this prints arm64:
dpkg --print-architecture
Option 1: APT repository (recommended)
Add the repository and its signing key once:
curl -fsSL https://f4fez.github.io/f4fez-apt-repo/pubkey.gpg \
| sudo gpg --dearmor -o /usr/share/keyrings/f4fez-apt-repo.gpg
echo "deb [signed-by=/usr/share/keyrings/f4fez-apt-repo.gpg] https://f4fez.github.io/f4fez-apt-repo stable main" \
| sudo tee /etc/apt/sources.list.d/f4fez-apt-repo.list
sudo apt update
Then install the agent:
sudo apt install qsp-agent
New releases are published to the repository automatically. To update later:
sudo apt update && sudo apt upgrade
To install a specific version, list them with apt-cache madison qsp-agent and run sudo apt install qsp-agent=VERSION.
Use version 0.1.1 or later. The 0.1.0 package lacks some of its dependencies and fails to start on a clean system.
apt install qsp-agentpicks the newest version, which is fine.
Option 2: download the package
Without the repository, download the .deb for your architecture from the qsp-agent releases page (use the latest release) and install it. Replace the file name with the one you downloaded; the leading ./ makes apt read a local file and fetch the dependencies:
sudo apt install ./qsp-agent_VERSION_arm64.deb
You have to repeat this by hand for every new version.
Option 3: build from the sources
Use this for another architecture, a distribution that is not Debian-based, or to test a change. You need Rust 1.91 or later (install it with rustup) and the build dependencies. On Debian or Ubuntu:
sudo apt install --no-install-recommends \
build-essential cmake git libasound2-dev libclang-dev libhamlib-dev pkg-config
Get the sources and build the release binary:
git clone https://github.com/Ham-QSP/qsp-agent.git
cd qsp-agent
cargo build --release --locked
The binary is target/release/qspd. On Debian-based systems you can turn it into the same package as the releases, and install that:
package/build-deb.sh
sudo apt install ./dist/qsp-agent_*.deb
Without a package, run the binary directly with target/release/qspd --config config.toml (see Configure the agent). You then manage the configuration file, the service user and the service yourself. The package does it for you.
What the package installs
| What | Where |
|---|---|
| The program | /usr/bin/qspd |
| The configuration file | /etc/qsp-agent/config.toml |
| The systemd service | qsp-agent.service |
It also creates a dedicated system user and group named qsp-agent, which the service runs as.
Check the installation with qspd --version.
Next: Configure the agent.
Configure the agent
Service address. The QSP service is at
qspradio.top. It is not open to the public yet (see the status).
The agent reads /etc/qsp-agent/config.toml. Edit it as root:
sudoedit /etc/qsp-agent/config.toml
Name and description
name = "My Station"
description = "Remote HF station"
Connection to the QSP service
Put the service address, and the agent ID and secret from Register your station, in the [signaling_server] section:
[signaling_server]
url = "wss://qspradio.top/signaling/server/session"
agentId = "YOUR_AGENT_ID"
agentSecret = "YOUR_AGENT_SECRET"
For another QSP service, such as your own instance, replace qspradio.top with its address.
TLS. The agent does not support
wss://yet, only plainws://. Until it does, an agent can only reach a service overws://, which the TLS-only address above does not offer. This page shows the URL of the hosted service as it will be once the agent supports it.
If the agent loses its connection, it retries by itself with growing delays, so you do not need to restart it.
Your transceiver
[transceiver]
model = 1
[transceiver.port]
rig_pathname = "/dev/ttyUSB0"
serial_speed = "115200"
modelis the Hamlib model number of your radio (rigctl --listshows them, aftersudo apt install libhamlib-utils; or see the list of supported radios). The value1is Hamlib’s dummy radio, which is handy to test the connection without a real rig.rig_pathnameis the serial device of your CAT cable andserial_speedits speed. These entries are passed straight to Hamlib, so use the parameters Hamlib documents for your radio and connection type.
Audio
The agent uses the system’s default audio input device.
Permissions for the serial port
The service runs as the qsp-agent user. If your radio shows up as /dev/ttyUSB0 or under /dev/serial/, that user may need to be in the dialout group to open it, and in the audio group to capture sound:
sudo usermod -aG dialout,audio qsp-agent
Then continue with Run as a service.
Run as a service
The package installs a systemd service, qsp-agent.service. It runs the agent in the foreground as the qsp-agent user, with --config /etc/qsp-agent/config.toml, and restarts it if it fails.
Start it now and at every boot:
sudo systemctl enable --now qsp-agent.service
Check that it is running:
systemctl status qsp-agent.service
Read the logs:
journalctl -u qsp-agent.service
Add -f to follow the logs live. After you change /etc/qsp-agent/config.toml, restart the service:
sudo systemctl restart qsp-agent.service
Do not add the --daemon option to the service: systemd runs the agent in the foreground.
Next: Operate from your browser.
Operate from your browser
Service address. The QSP service is at
qspradio.top. It is not open to the public yet (see the status).
Once your agent is running and connected, you operate your station from the QSP web client in any browser.
- Open the QSP web client at the address of the service,
https://qspradio.top, and sign in with your QSP account. - Your station appears in the list of available agents when its agent is connected. Select it.
- Your browser and your agent open their direct connection. You hear the band live and can tune, change mode and band.
If your station does not appear in the list, check that the agent is running (systemctl status qsp-agent.service) and read its logs. See Troubleshooting.
Remember that you are the operator: a remote station is still your station, with the same licence conditions and responsibilities.
Troubleshooting
Start by reading the agent logs:
journalctl -u qsp-agent.service
The agent does not start
- The service expects
/etc/qsp-agent/config.tomlto exist and to be valid TOML. Check the logs for the first error message. - Only one agent can run with a given configuration at a time (it keeps a lock file). Make sure you are not also running it by hand.
The agent cannot connect to the service
- Check
url,agentIdandagentSecretin[signaling_server]. For the hosted service the URL has the formwss://qspradio.top/signaling/server/session. For a self-hosted instance it isws://HOST:PORT/signaling/server/session: the agent does not supportwss://today, so the hosted-service form works only once the agent supports TLS. - Check that the computer has internet access and can reach the service.
- The agent keeps retrying with growing delays, so it will reconnect by itself when the service is back.
The radio does not respond
- Check the Hamlib
model,rig_pathnameandserial_speed, and that your radio’s CAT settings match. - Permission denied on the serial port: add the
qsp-agentuser to thedialoutgroup (see Configure the agent) and restart the service.
No audio
- The agent uses the system’s default audio input device. Check that this is the one your radio is connected to, and that the
qsp-agentuser is in theaudiogroup.
The station is connected but there is no audio or control in the browser
Your browser and your agent talk to each other directly (see How QSP works). That means both ends must be able to reach each other, and QSP has no TURN relay server today to carry the traffic when they cannot.
The direct connection typically fails when:
- one side is behind a symmetric NAT;
- a restrictive firewall blocks UDP traffic, as in some company, school or public networks;
- one side is behind CGNAT (carrier-grade NAT), as on many mobile and some home internet connections, where you share one public address with other customers.
What you can try:
- Connect your browser from another network (for example a different Wi-Fi, or mobile data instead of Wi-Fi), to find out which side is the problem.
- Check the router and firewall at the station: it must allow outgoing UDP traffic.
- Ask your internet provider whether you are behind CGNAT, and whether they can give you a public address.
Architecture
QSP is made of a few small components, each in its own repository under github.com/Ham-QSP. This page is a map: each repository’s README is the reference for that component, and is the place to look for build, configuration and API details.
The big picture is the one in How QSP works: the browser and the agent exchange audio and control directly over WebRTC, and the services only sign users in and introduce the two to each other.
| Component | Role | README |
|---|---|---|
| qsp-agent | Rust daemon that runs next to the rig. Controls the transceiver through Hamlib, captures audio, connects to the signaling server and opens WebRTC sessions with browsers. | Ham-QSP/qsp-agent |
| qsp-signaling-server | Introduces browsers and agents to each other: stations, agents and the WebSocket signaling used to set up WebRTC. | Ham-QSP/qsp-signaling-server |
| qsp-authentication | Signs users in (OpenID Connect) and issues the tokens the web client and signaling server use. | Ham-QSP/qsp-authentication |
| qsp-web | The web client you operate from in your browser. | Ham-QSP/qsp-web |
| qsp-proto-files | Shared Protocol Buffers definitions for the messages between components. | Ham-QSP/qsp-proto-files |
The umbrella repository, Ham-QSP/Qsp, holds this documentation, the homepage and the self-hosting example.
How a session starts
- The agent connects to the signaling server (outgoing connection) and identifies itself with its agent ID and secret.
- You sign in to the authentication server from the web client and get a token.
- The web client asks the signaling server for the available agents and picks yours.
- The signaling server relays the WebRTC negotiation between the browser and the agent.
- The browser and the agent are now connected directly. Audio and control flow between them, not through the services.
There is no TURN relay in QSP today, so both ends must be able to reach each other (see Troubleshooting).
Self-hosting quick start
You can run a complete QSP instance on one machine with Docker Compose: PostgreSQL, the authentication server, the signaling server and the web client, behind one nginx reverse proxy.
This is a trial setup, not a production one. It uses a single shared database with the PostgreSQL superuser, default passwords, a default admin account and plain HTTP. See Before you expose it.
The example lives in the self-hosting/ folder of the repository, with its own README. This page is the short tour; the README has the details and the exact commands.
You need Docker with the Compose plugin.
1. Start the stack
From the self-hosting/ folder:
cp .env.example .env # edit QSP_HOST / QSP_PORT if needed
docker compose up -d
QSP_HOST and QSP_PORT are the public address that browsers and agents use to reach the instance. Use a name or address that they can actually reach. Then open http://QSP_HOST:QSP_PORT (by default http://localhost:8080).
2. Sign in as the admin
The authentication server seeds an admin user with a default development password. The default password and how to change it are in the README section Before first use: the admin account. Change it before anyone else can reach the instance.
3. Create a station and an agent
Until the web client has a screen for it, a station and its agent are created through the signaling server’s REST API. In short:
- Get an access token for
admin. - Create a station with your callsign, owned by your user.
- Register an agent on that station.
- Generate the agent’s secret.
The README has a complete copy-and-paste walkthrough with curl: Create a station and an agent. At the end you have an agent ID and an agent secret.
4. Point an agent at your instance
Install the agent as for the hosted service, then in /etc/qsp-agent/config.toml use your instance’s address. The self-hosted example is plain HTTP, so the agent URL uses ws://:
[signaling_server]
url = "ws://HOST:PORT/signaling/server/session"
agentId = "THE_AGENT_ID"
agentSecret = "THE_AGENT_SECRET"
HOST:PORT is the QSP_HOST:QSP_PORT from your .env. Then run the agent as a service.
5. Operate
Open http://HOST:PORT in your browser and sign in. Your station appears once its agent is connected. As always, the audio goes directly between your browser and the agent (see How QSP works): the proxy only carries sign-in and signaling traffic.
Stop the stack with docker compose down (add -v to also delete the database).
Before you expose it
Before anyone outside a trusted network can reach the instance:
- Set strong passwords in
.envinstead of the defaults. - Change the admin password.
- Use dedicated database roles per service instead of the PostgreSQL superuser.
- Put TLS in front of the proxy for browsers (
https://). Note that the agent does not supportwss://yet: agents must still reach the signaling server over plainws://, so keep a plain-HTTP path or port for/signaling/server/sessionreachable to your agents (for example on a trusted network) until TLS support lands in the agent. - Remember that a station is managed by the users in its
grants(the creator is itsOWNER), but the signaling server does not look at the roles of the auth server. - Without a TURN server, peers behind strict NAT may not be able to connect (see Troubleshooting).
Developer guide
Each component is developed in its own repository, and each README is the reference for building, testing and configuring it:
- qsp-agent: Rust workspace (
cargo build --workspace --locked,cargo test --workspace --locked), Debian packaging underpackage/. - qsp-signaling-server
- qsp-authentication
- qsp-web
- qsp-proto-files: shared message definitions; changes here affect several components.
The umbrella repository, Ham-QSP/Qsp, contains a CLAUDE.md that describes the overall architecture and the conventions used across the repositories. Read it, and the README of the repository you are changing, before you start. Check each repository for contribution notes before opening a pull request.
To get a complete instance to develop against, use the self-hosting example.