# qBittorrent in your Mac’s menu bar

See what qBittorrent is downloading without opening its Web UI: how far along each torrent is, which ones have stalled or lost their files, and how much room is left on the disk. Stop, start or remove a torrent from its row.

## What you’ll see

- **Health:** in Details, whether qBittorrent is connected and to how many DHT nodes. A torrent with an error or missing files turns the health card orange, with its name and how many others there are, and sends a notification. It turns red when qBittorrent reports no network connection, or once qBittorrent stops answering. Firewalled (no incoming connections) is shown but never counts as a problem, since many setups run that way on purpose.
- **qBittorrent:** free space in your download folder, the speed limits in force, what this session has downloaded and uploaded, how many torrents there are, and the version. The turtle in the corner switches qBittorrent’s alternative speed limits on and off, as the turtle in its status bar does. While they’re on, the limits row starts with Alternative.
- **Download and Upload:** the speed over the last few hours, a reading every 5 minutes, with the newest on top. qBittorrent keeps no history of its own, so Legato keeps these readings on your Mac, and the charts start empty.
- **Downloads:** torrents with an error or missing files first, then everything still downloading in qBittorrent’s queue order, each with how much of its size is done. A row says Stalled, Stopped, Queued or Checking when it’s one of those. Under its bar are its category, then its speed and time left while it’s moving. The card shows 8; any more, and torrents still getting their metadata (which have no size yet), are counted under it. Point at a row for its buttons:
  - **Stop** or **Start**, whichever fits.
  - **Remove** takes the torrent out of qBittorrent and leaves its files on disk.
  - **Delete files** takes it out and deletes what it downloaded. Both ask first.
- **Finished:** a closed section at the end with the four torrents that finished most recently, each with its size and share ratio. Its heading says when the newest finished.

### Status

- Orange while a torrent has an error or its files are missing.
- Red when qBittorrent has no network connection.
- Red once qBittorrent stops answering.
- Firewalled never counts as a problem.
- Notifies you when it turns orange or red.

## How it connects

The page reads qBittorrent’s Web API with your API key, sent as `Authorization: Bearer`. It needs qBittorrent 5.3 (October 2026) or later: API keys came in 5.2, and the free space request in 5.3.

| Request | When | What it supplies |
| --- | --- | --- |
| `GET /api/v2/transfer/info` | Every minute | Speeds, this session’s totals, the speed limits in force, connection status and DHT nodes. |
| `GET /api/v2/transfer/speedLimitsMode` | Every minute | Whether the alternative speed limits are on. |
| `GET /api/v2/torrents/count` | Every minute | How many torrents there are. |
| `GET /api/v2/app/version` | Every minute | qBittorrent’s version. |
| `GET /api/v2/app/getFreeSpaceAtPath?path=/downloads` | Every minute | Free space where you download. |
| `GET /api/v2/app/defaultSavePath` | Every minute | Where qBittorrent saves, to check the folder you named. |
| `GET /api/v2/torrents/info?filter=errored&sort=added_on&limit=10` | Every minute | Torrents with an error or missing files. |
| `GET /api/v2/torrents/info?filter=downloading&sort=priority&limit=30` | Every minute | What’s downloading, stalled, stopped or queued, in queue order. |
| `GET /api/v2/torrents/info?filter=completed&sort=completion_on&reverse=true&limit=4` | Every 5 minutes | The four that finished most recently. |
| `POST /api/v2/transfer/setSpeedLimitsMode` | When you press the turtle | Turns the alternative speed limits on or off. |
| `POST /api/v2/torrents/stop`, `/start` | When you press Stop or Start | Stops or starts that torrent. |
| `POST /api/v2/torrents/delete` | When you press Remove or Delete files | Removes that torrent, with `deleteFiles` false or true. |

That’s about 490 requests an hour while your Mac is awake, mostly small. A torrent takes about 2 KB in a list, so the largest answer, 30 downloads, is about 60 KB. qBittorrent’s commands take their values as a form, so the buttons send them that way. qBittorrent’s [WebUI API documentation](https://github.com/qbittorrent/qBittorrent/wiki) covers each request.

An API key can do anything you can do in the Web UI, including changing qBittorrent’s settings: qBittorrent has no read-only keys. The page never reads qBittorrent’s preferences, which hold the key itself. qBittorrent also reports your public IP address. The page doesn’t show it, but **Preview Source** shows qBittorrent’s answers as they came, the address included.

[Sources and buttons](https://legatobar.com/docs/sources.md) explains each part of a page.

## Set it up

1. **Make an API key.** In qBittorrent’s Web UI, open **Tools → Options → Web UI**. Under **API Key**, press **Generate API key** (the two curved arrows), then the copy button beside the key.
2. **Save it in Legato.** In Settings → Secrets, save the key under `qbittorrent`, bound to your qBittorrent’s address. You can also link a [1Password reference](https://legatobar.com/docs/1password.md).
3. **Add the page.** Paste the prompt into your agent, or download the page and run `/Applications/Legato.app/Contents/Helpers/legato set qbittorrent qbittorrent.json`.
4. **Point it at qBittorrent.** Change `http://qbittorrent.local:8080` to your qBittorrent’s address on both sources. The Web UI’s port is 8080 unless you changed it.
5. **Name your download folder.** Free space is measured in `/downloads`, where most Docker setups save. If yours saves elsewhere, change `/downloads` to that folder everywhere it appears on the page. Use the path as qBittorrent sees it: inside its container, if it runs in Docker. Any folder on the same disk gives the same answer. If qBittorrent saves somewhere outside that folder, the Free space row says where, so you know to change it.

If qBittorrent sits behind a reverse proxy at a path, such as `https://media.example.com/qbittorrent`, set each source’s `url` to `https://media.example.com` and add `"base": "/qbittorrent"`. If you gave qBittorrent its own certificate, Legato can trust a self-signed one only at an IP address or a `.local` name.

The cards fill within a minute. A mistyped key is the usual reason they don’t: qBittorrent answers it with HTTP 403, and the cards say qBittorrent didn’t allow it with this secret.

### Prompt for your agent

```prompt
Add a Legato page for qBittorrent, starting from https://legatobar.com/examples/qbittorrent.json.

Add the page as it is and change http://qbittorrent.local:8080 on both sources to my qBittorrent's address. If qBittorrent saves somewhere other than /downloads, change /downloads to that folder everywhere it appears on the page. I’ll save my API key as qbittorrent in Settings → Secrets myself.

Use the local Legato MCP tools or /Applications/Legato.app/Contents/Helpers/legato.
Use list_pages first and choose an unused page ID. Do not overwrite an existing page. If I explicitly ask to update one, read its full body with get_page, preserve unrelated cards and settings, and use if_match with that version. On version_mismatch, read again before merging.
Ask me only for non-secret setup details that are missing. Never ask me to paste a password, token or API key into chat, page JSON or command arguments. Tell me to save it in Settings → Secrets for the service host, or link it from 1Password there.
Use the downloadable page, not the illustration’s sample data. Never invent readings. Fix any invalid_page paths and verify that the page loads. Do not press buttons that change the service or real devices to test it.
```

### Download the page

```json
{
  "$schema": "./.schemas/page.schema.json",
  "title": "qBittorrent",
  "icon": "arrow.down.circle",
  "sources": {
    "qbittorrent": {
      "url": "http://qbittorrent.local:8080",
      "secret": "qbittorrent",
      "every": "1m",
      "requests": {
        "transfer": "/api/v2/transfer/info",
        "mode": {
          "path": "/api/v2/transfer/speedLimitsMode",
          "format": "text"
        },
        "count": {
          "path": "/api/v2/torrents/count",
          "format": "text"
        },
        "version": {
          "path": "/api/v2/app/version",
          "format": "text"
        },
        "free": {
          "path": "/api/v2/app/getFreeSpaceAtPath?path=/downloads",
          "format": "text"
        },
        "save_path": {
          "path": "/api/v2/app/defaultSavePath",
          "format": "text"
        },
        "errored": "/api/v2/torrents/info?filter=errored&sort=added_on&limit=10",
        "downloading": "/api/v2/torrents/info?filter=downloading&sort=priority&limit=30"
      },
      "derive": [
        {
          "name": "queue",
          "value": {
            "each": "downloading",
            "sort": {
              "by": [
                "priority",
                "added_on"
              ]
            },
            "fields": {
              "hash": "hash",
              "name": "name",
              "state": "state",
              "size": "size",
              "amount_left": "amount_left",
              "progress": "progress",
              "category": "category",
              "priority": "priority",
              "added_on": "added_on",
              "dlspeed": "dlspeed",
              "eta": "eta",
              "num_seeds": "num_seeds",
              "save_path": "save_path"
            }
          }
        },
        {
          "name": "rows",
          "value": {
            "each": [
              "errored",
              "queue"
            ],
            "where": {
              "path": "size",
              "gt": 0
            },
            "limit": 8,
            "fields": {
              "hash": "hash",
              "name": "name",
              "detail": {
                "if": {
                  "path": "category",
                  "not": ""
                },
                "then": {
                  "if": {
                    "path": "state",
                    "in": [
                      "downloading",
                      "forcedDL"
                    ]
                  },
                  "then": {
                    "if": {
                      "path": "eta",
                      "lt": 8640000
                    },
                    "then": {
                      "template": "{category} · {dlspeed|bytes}/s · {eta|duration} left"
                    },
                    "else": {
                      "template": "{category} · {dlspeed|bytes}/s"
                    }
                  },
                  "else": {
                    "if": {
                      "path": "state",
                      "equals": "queuedDL"
                    },
                    "then": {
                      "template": "{category} · Queue position {priority|raw}"
                    },
                    "else": {
                      "if": {
                        "path": "state",
                        "equals": "stalledDL"
                      },
                      "then": {
                        "if": {
                          "path": "num_seeds",
                          "gt": 0
                        },
                        "then": {
                          "template": "{category} · {num_seeds} seeds connected · {progress|percent:0}"
                        },
                        "else": {
                          "template": "{category} · No seeds connected · {progress|percent:0}"
                        }
                      },
                      "else": {
                        "if": {
                          "path": "state",
                          "equals": "missingFiles"
                        },
                        "then": {
                          "template": "{category} · Not found in {save_path|clip:60}"
                        },
                        "else": {
                          "template": "{category} · {progress|percent:0}"
                        }
                      }
                    }
                  }
                },
                "else": {
                  "if": {
                    "path": "state",
                    "in": [
                      "downloading",
                      "forcedDL"
                    ]
                  },
                  "then": {
                    "if": {
                      "path": "eta",
                      "lt": 8640000
                    },
                    "then": {
                      "template": "{dlspeed|bytes}/s · {eta|duration} left"
                    },
                    "else": {
                      "template": "{dlspeed|bytes}/s"
                    }
                  },
                  "else": {
                    "if": {
                      "path": "state",
                      "equals": "queuedDL"
                    },
                    "then": {
                      "template": "Queue position {priority|raw}"
                    },
                    "else": {
                      "if": {
                        "path": "state",
                        "equals": "stalledDL"
                      },
                      "then": {
                        "if": {
                          "path": "num_seeds",
                          "gt": 0
                        },
                        "then": {
                          "template": "{num_seeds} seeds connected · {progress|percent:0}"
                        },
                        "else": {
                          "template": "No seeds connected · {progress|percent:0}"
                        }
                      },
                      "else": {
                        "if": {
                          "path": "state",
                          "equals": "missingFiles"
                        },
                        "then": {
                          "template": "Not found in {save_path|clip:60}"
                        },
                        "else": {
                          "template": "{progress|percent:0}"
                        }
                      }
                    }
                  }
                }
              },
              "state_word": {
                "path": "state",
                "values": {
                  "downloading": "",
                  "forcedDL": "Forced",
                  "metaDL": "Getting metadata",
                  "forcedMetaDL": "Getting metadata",
                  "stalledDL": "Stalled",
                  "stoppedDL": "Stopped",
                  "queuedDL": "Queued",
                  "checkingDL": "Checking",
                  "checkingResumeData": "Checking",
                  "moving": "Moving",
                  "missingFiles": "Files missing",
                  "error": "Error",
                  "uploading": "Seeding",
                  "stalledUP": "Seeding",
                  "stoppedUP": "Finished",
                  "queuedUP": "Queued",
                  "checkingUP": "Checking",
                  "forcedUP": "Seeding"
                },
                "default": ""
              },
              "state": "state",
              "unit": {
                "if": {
                  "path": "size",
                  "lt": 1048576
                },
                "then": {
                  "template": "KB"
                },
                "else": {
                  "if": {
                    "path": "size",
                    "lt": 1073741824
                  },
                  "then": {
                    "template": "MB"
                  },
                  "else": {
                    "template": "GB"
                  }
                }
              },
              "done": {
                "if": {
                  "path": "size",
                  "lt": 1048576
                },
                "then": {
                  "subtract": [
                    "size",
                    "amount_left"
                  ],
                  "scale": 0.0009765625
                },
                "else": {
                  "if": {
                    "path": "size",
                    "lt": 1073741824
                  },
                  "then": {
                    "subtract": [
                      "size",
                      "amount_left"
                    ],
                    "scale": 9.5367431640625e-07
                  },
                  "else": {
                    "subtract": [
                      "size",
                      "amount_left"
                    ],
                    "scale": 9.313225746154785e-10
                  }
                }
              },
              "total": {
                "if": {
                  "path": "size",
                  "lt": 1048576
                },
                "then": {
                  "path": "size",
                  "scale": 0.0009765625
                },
                "else": {
                  "if": {
                    "path": "size",
                    "lt": 1073741824
                  },
                  "then": {
                    "path": "size",
                    "scale": 9.5367431640625e-07
                  },
                  "else": {
                    "path": "size",
                    "scale": 9.313225746154785e-10
                  }
                }
              }
            }
          }
        },
        {
          "name": "drawn",
          "value": {
            "count": "rows",
            "default": 0
          }
        },
        {
          "name": "errors",
          "value": {
            "count": "errored",
            "default": 0
          }
        },
        {
          "name": "sized",
          "value": {
            "count": "downloading",
            "where": {
              "path": "size",
              "gt": 0
            },
            "default": 0
          }
        },
        {
          "name": "sizeless",
          "value": {
            "count": "downloading",
            "where": {
              "path": "size",
              "lte": 0
            },
            "default": 0
          }
        },
        {
          "name": "read",
          "value": {
            "count": "downloading",
            "default": 0
          }
        },
        {
          "name": "undrawn",
          "value": {
            "subtract": [
              {
                "add": [
                  "errors",
                  "sized"
                ]
              },
              "drawn"
            ],
            "default": 0
          }
        },
        {
          "name": "errors_more",
          "value": {
            "subtract": [
              "errors",
              1
            ],
            "default": 0
          }
        },
        {
          "name": "first_error",
          "value": {
            "first": "name",
            "of": "errored"
          }
        },
        {
          "name": "first_error_state",
          "value": {
            "first": "state",
            "of": "errored"
          }
        },
        {
          "name": "version_number",
          "value": {
            "path": "version",
            "match": "^v?(.+)$"
          }
        },
        {
          "name": "down_mb",
          "value": {
            "path": "transfer.dl_info_speed",
            "scale": 9.5367431640625e-07,
            "round": 1
          }
        },
        {
          "name": "up_kb",
          "value": {
            "path": "transfer.up_info_speed",
            "scale": 0.0009765625,
            "round": 0
          }
        },
        {
          "name": "first_error_word",
          "value": {
            "path": "first_error_state",
            "values": {
              "missingFiles": "Files missing",
              "error": "Error"
            },
            "default": "Error"
          }
        },
        {
          "name": "errors_others",
          "value": {
            "if": {
              "path": "errors",
              "gte": 10
            },
            "then": {
              "template": "and at least {errors_more} more"
            },
            "else": {
              "template": "and {errors_more} more"
            }
          }
        },
        {
          "name": "prefix",
          "value": {
            "if": {
              "path": "mode",
              "equals": "1"
            },
            "then": {
              "template": "Alternative · "
            },
            "else": {
              "template": ""
            }
          }
        },
        {
          "name": "prefix_none",
          "value": {
            "if": {
              "path": "mode",
              "equals": "1"
            },
            "then": {
              "template": "Alternative · none"
            },
            "else": {
              "template": "None"
            }
          }
        },
        {
          "name": "up_limit",
          "value": {
            "if": {
              "path": "transfer.up_rate_limit",
              "gt": 0
            },
            "then": {
              "template": "{transfer.up_rate_limit|bytes}/s ↑"
            },
            "else": {
              "template": "no limit ↑"
            }
          }
        },
        {
          "name": "empty_text",
          "value": {
            "if": {
              "path": "sizeless",
              "gt": 0
            },
            "then": {
              "template": "{sizeless} getting metadata"
            },
            "else": {
              "template": "Nothing downloading"
            }
          }
        },
        {
          "name": "card_detail",
          "value": {
            "if": {
              "any": [
                {
                  "path": "read",
                  "gte": 30
                },
                {
                  "path": "errors",
                  "gte": 10
                }
              ]
            },
            "then": {
              "template": "More in qBittorrent"
            },
            "else": {
              "if": {
                "path": "undrawn",
                "gt": 0
              },
              "then": {
                "if": {
                  "path": "sizeless",
                  "gt": 0
                },
                "then": {
                  "template": "{undrawn} more · {sizeless} getting metadata"
                },
                "else": {
                  "template": "{undrawn} more in qBittorrent"
                }
              },
              "else": {
                "if": {
                  "path": "sizeless",
                  "gt": 0
                },
                "then": {
                  "if": {
                    "path": "drawn",
                    "gt": 0
                  },
                  "then": {
                    "template": "{sizeless} getting metadata"
                  },
                  "else": {
                    "template": ""
                  }
                },
                "else": {
                  "template": ""
                }
              }
            }
          }
        }
      ]
    },
    "finished": {
      "url": "http://qbittorrent.local:8080",
      "secret": "qbittorrent",
      "every": "5m",
      "requests": {
        "recent": "/api/v2/torrents/info?filter=completed&sort=completion_on&reverse=true&limit=4"
      },
      "derive": [
        {
          "name": "newest",
          "value": {
            "first": "completion_on",
            "of": "recent"
          }
        },
        {
          "name": "finished_count",
          "value": {
            "count": "recent",
            "default": 0
          }
        }
      ]
    }
  },
  "cards": [
    {
      "id": "health",
      "type": "status",
      "placement": "page_info",
      "label": "qBittorrent",
      "state": "unknown",
      "width": "full",
      "source": {
        "ref": "qbittorrent",
        "map": {
          "state": {
            "if": {
              "path": "transfer.connection_status",
              "equals": "disconnected"
            },
            "then": {
              "template": "critical"
            },
            "else": {
              "if": {
                "path": "errors",
                "gt": 0
              },
              "then": {
                "template": "warning"
              },
              "else": {
                "template": "ok"
              }
            }
          },
          "detail": {
            "if": {
              "path": "transfer.connection_status",
              "equals": "disconnected"
            },
            "then": {
              "template": "No network connection"
            },
            "else": {
              "if": {
                "path": "errors",
                "gt": 1
              },
              "then": {
                "template": "{first_error_word} · {first_error|clip:60} · {errors_others}"
              },
              "else": {
                "if": {
                  "path": "errors",
                  "equals": 1
                },
                "then": {
                  "template": "{first_error_word} · {first_error|clip:90}"
                },
                "else": {
                  "if": {
                    "path": "transfer.connection_status",
                    "equals": "firewalled"
                  },
                  "then": {
                    "template": "Firewalled · {transfer.dht_nodes} DHT nodes"
                  },
                  "else": {
                    "template": "Connected · {transfer.dht_nodes} DHT nodes"
                  }
                }
              }
            }
          }
        },
        "failed": {
          "state": "critical",
          "detail": "qBittorrent isn't answering",
          "after": 3
        }
      }
    },
    {
      "id": "facts",
      "type": "facts",
      "items": [
        {
          "key": "Free space",
          "value": "—"
        },
        {
          "key": "Speed limits",
          "value": "—"
        },
        {
          "key": "This session",
          "value": "—"
        },
        {
          "key": "Torrents",
          "value": "—"
        },
        {
          "key": "Version",
          "value": "—"
        }
      ],
      "actions_placement": "corner",
      "actions": [
        {
          "label": "Use alternative speeds",
          "icon": "tortoise",
          "path": "/api/v2/transfer/setSpeedLimitsMode",
          "form": {
            "mode": "1"
          },
          "when": {
            "path": "mode",
            "equals": "0"
          }
        },
        {
          "label": "Use normal speeds",
          "icon": "tortoise.fill",
          "path": "/api/v2/transfer/setSpeedLimitsMode",
          "form": {
            "mode": "0"
          },
          "when": {
            "path": "mode",
            "equals": "1"
          }
        }
      ],
      "source": {
        "ref": "qbittorrent",
        "map": {
          "items[0].value": {
            "if": {
              "path": "save_path",
              "contains": "/downloads"
            },
            "then": {
              "template": "{free|bytes} in /downloads"
            },
            "else": {
              "template": "{free|bytes} in /downloads · saves to {save_path|clip:40}"
            }
          },
          "items[1].value": {
            "if": {
              "path": "transfer.dl_rate_limit",
              "gt": 0
            },
            "then": {
              "template": "{prefix}{transfer.dl_rate_limit|bytes}/s ↓ · {up_limit}"
            },
            "else": {
              "if": {
                "path": "transfer.up_rate_limit",
                "gt": 0
              },
              "then": {
                "template": "{prefix}{transfer.up_rate_limit|bytes}/s ↑"
              },
              "else": {
                "template": "{prefix_none}"
              }
            }
          },
          "items[2].value": {
            "template": "{transfer.dl_info_data|bytes} ↓ · {transfer.up_info_data|bytes} ↑"
          },
          "items[3].value": "count",
          "items[4].value": {
            "template": "{version_number}"
          }
        }
      }
    },
    {
      "id": "down",
      "type": "sparkline",
      "width": "half",
      "label": "Download",
      "unit": "MB/s",
      "points": [],
      "change": false,
      "source": {
        "ref": "qbittorrent",
        "map": {
          "points": {
            "history": "down_mb",
            "every": "5m",
            "keep": 60
          }
        }
      }
    },
    {
      "id": "up",
      "type": "sparkline",
      "width": "half",
      "label": "Upload",
      "unit": "KB/s",
      "points": [],
      "change": false,
      "source": {
        "ref": "qbittorrent",
        "map": {
          "points": {
            "history": "up_kb",
            "every": "5m",
            "keep": 60
          }
        }
      }
    },
    {
      "id": "downloads",
      "type": "pacing",
      "label": "Downloads",
      "unit": "GB",
      "items": [],
      "source": {
        "ref": "qbittorrent",
        "empty": {
          "text": "{empty_text}",
          "when": {
            "path": "drawn",
            "equals": 0
          }
        },
        "map": {
          "items": {
            "each": "rows",
            "fields": {
              "key": "hash",
              "label": "name",
              "state": "state_word",
              "detail": "detail",
              "value": "done",
              "target": "total",
              "unit": "unit"
            }
          },
          "detail": {
            "template": "{card_detail}"
          }
        }
      },
      "row_actions_shown": "always",
      "row_actions": [
        {
          "label": "Stop",
          "icon": "stop.fill",
          "path": "/api/v2/torrents/stop",
          "form": {
            "hashes": "{hash}"
          },
          "when": {
            "path": "state",
            "not_in": [
              "stoppedDL",
              "stoppedUP",
              "error",
              "missingFiles"
            ]
          }
        },
        {
          "label": "Start",
          "icon": "play.fill",
          "path": "/api/v2/torrents/start",
          "form": {
            "hashes": "{hash}"
          },
          "when": {
            "path": "state",
            "in": [
              "stoppedDL",
              "stoppedUP",
              "error",
              "missingFiles"
            ]
          },
          "alternate": true
        },
        {
          "label": "Remove",
          "icon": "xmark",
          "path": "/api/v2/torrents/delete",
          "form": {
            "hashes": "{hash}",
            "deleteFiles": "false"
          },
          "confirm": {
            "message": "Remove {name} from qBittorrent? Its files stay on disk.",
            "button": "Remove"
          }
        },
        {
          "label": "Delete files",
          "icon": "trash",
          "path": "/api/v2/torrents/delete",
          "form": {
            "hashes": "{hash}",
            "deleteFiles": "true"
          },
          "confirm": {
            "message": "Delete {name} and its downloaded files? This can't be undone.",
            "button": "Delete"
          }
        }
      ]
    },
    {
      "id": "finished-section",
      "type": "heading",
      "text": "Finished",
      "collapsed": true,
      "cards": [
        "finished"
      ],
      "source": {
        "ref": "finished",
        "when": {
          "path": "finished_count",
          "gt": 0
        },
        "map": {
          "detail": {
            "template": "Last {newest|ago}"
          }
        }
      }
    },
    {
      "id": "finished",
      "type": "list",
      "label": "Recently finished",
      "max_items": 4,
      "items": [],
      "source": {
        "ref": "finished",
        "empty": {
          "text": "Nothing finished yet",
          "when": {
            "path": "finished_count",
            "equals": 0
          }
        },
        "map": {
          "items": {
            "each": "recent",
            "fields": {
              "key": "hash",
              "text": "name",
              "subtitle": {
                "if": {
                  "path": "category",
                  "not": ""
                },
                "then": {
                  "template": "{category} · {size|bytes} · ratio {ratio|round:2}"
                },
                "else": {
                  "template": "{size|bytes} · ratio {ratio|round:2}"
                }
              },
              "detail": {
                "template": "{completion_on|ago}"
              }
            }
          }
        }
      }
    }
  ]
}
```

## Questions

### Why does it need qBittorrent 5.3?

Before 5.2, the only way into qBittorrent’s Web API was signing in with your username and password, which gives back a cookie, and Legato can’t sign in with a cookie. 5.2 added API keys, and 5.3 added the request that measures free space in a folder. Update qBittorrent to use the page.

### Why aren’t the seeding torrents listed?

Many people seed hundreds or thousands of torrents, and a list that long would be slow to read and hard to scan. The facts card counts every torrent, Finished lists the four newest, and qBittorrent’s Web UI has the rest.

### What does Stalled mean?

qBittorrent is ready to download the torrent but nobody is sending it anything right now, usually because there are no seeds. The row says how many seeds are connected and how much is done.

### What does Files missing mean?

qBittorrent knew the torrent as downloaded, but its files aren’t where it saved them: the drive wasn’t mounted, or the files were moved or deleted. Put them back and press Start, and qBittorrent checks them again.

### Does Delete files ask first?

Yes. Remove and Delete files both name the torrent and ask before anything is sent. Delete files can’t be undone.

### Does it work with Sonarr and Radarr?

Yes. The [Sonarr](https://legatobar.com/services/sonarr) and [Radarr](https://legatobar.com/services/radarr) pages show their own queues, including what they’ve sent to qBittorrent, and this page shows everything qBittorrent is downloading, whoever added it.

Legato is independent and isn’t affiliated with or endorsed by the qBittorrent project.

## Verification

The page’s rules were checked against qBittorrent 5.3.0’s answers on 15 Nov 2026, on a server with two Debian ISOs and three Blender open films downloading, made-up private torrents seeding, one with its files moved away, one stalled with no seeds, one stopped and one still getting metadata. Through Legato, the turtle was pressed both ways, Stop and Start were pressed on a download, Remove was pressed on one torrent (its files stayed) and Delete files on another (its files went). Illustrations use made-up torrents, folders and numbers, beside the names of the freely licensed downloads the server really had. See the [service index](https://legatobar.com/services/) for other examples.
