···11+---
22+title: Terminal User Interface
33+description: Guide to the experimental terminal user interface for Switchyard.
44+---
55+66+Switchyard has an experimental terminal user interface (TUI) available on both Linux and macOS. It works more or less as the Adwaita GUI does, but from your terminal, with the limtiations that entails.
77+88+
99+1010+The TUI was built for internal testing and porting to macOS, but is feature-complete and uses the same backend that the GUI does. You can use it to launch links, including `switchyard://` URLs, from your terminal or from a scripting language of your choice.
1111+1212+## Usage
1313+1414+Clone the [repo](https://github.com/alyraffauf/switchyard), then build the TUI binary from the `cmd/sw` directory:
1515+1616+```bash
1717+go run ./cmd/sw
1818+```
1919+2020+Or, just use Nix:
2121+2222+```bash
2323+nix run .#sw
2424+```
2525+2626+You may pass your URL as a command line argument:
2727+2828+```bash
2929+sw https://switchyard.aly.codes
3030+```
+2-2
website/src/content/docs/using.md
···44order: 10
55---
6677-Switchyard is a rules-based browser launcher for Linux. Once it is set as your default browser, clicked links pass through Switchyard first. It can then open the link in a specific browser, ask you which browser to use, or rewrite the URL before opening it.
77+Switchyard is a powerful, rules-based browser launcher. Once it is set as your default browser, clicked links pass through Switchyard first. It can then open the link in a specific browser, ask you which browser to use, or rewrite the URL before opening it.
8899-Use it when different parts of your life belong in different browsers: work links in Chrome, personal links in Firefox, video links in Brave, or privacy-friendly redirects before anything opens.
99+Use it when different parts of your life live in different browsers: work links in Chrome, personal links in Firefox, video links in Brave, or to add privacy-friendly redirects before anything opens.
10101111The basic flow is:
1212