Skip to content
344 linesCodeBlameRaw
1---
2title: The desktop app
3description: g1t in a window of its own, for Windows, macOS and Linux, with notifications from your system, a badge on the icon, g1t:// links, a runner for your workspace's jobs, and updates that install themselves.
4---
5
6The desktop app is g1t in a window of its own. Everything in it is the
7site, [g1t.sh](https://g1t.sh), loaded live: chat, agents, artifacts and
8code, exactly as in a browser, so every change to g1t reaches the app the
9moment it is deployed. What the app adds is what a browser cannot do:
10
11- **Notifications from your system**, for a message to you, a mention or
12 an agent finishing something, while the window is behind another.
13- **A badge on the icon**, with what is waiting for you, and a tray icon
14 that keeps g1t running when the window is closed.
15- **`g1t://` links**, which open a page in the app from anywhere on your
16 computer.
17- **Updates that install themselves**, signed by g1t, in the background.
18- **Your own g1t**, if you [run one](/guides/self-hosting/): the app points
19 at any server.
20- **A runner for your workspace**, started with the app, so your
21 computer runs the workspace's `runs-on: self-hosted` jobs while g1t is
22 open, with nothing to install or register. See [the runner](#the-runner).
23- **Settings of its own**: opening when you sign in to your computer,
24 what closing the window does, notifications, the badge, zoom, updates
25 and the runner.
26
27Get it at [g1t.sh/download](https://g1t.sh/download), or from your account
28menu, **Get the desktop app**.
29
30## Install
31
32| Platform | What you get | Notes |
33| --- | --- | --- |
34| **Windows** 10 and 11 | An installer, `g1t-<version>-windows-x64-setup.exe` | Installs for your account alone; no administrator needed. Uses the WebView2 runtime Windows already has, and fetches it if a machine lacks it. |
35| **macOS** 11 and later | A disk image, Apple silicon or Intel | Drag g1t to Applications. The app is not yet notarized with Apple: the first time, right-click it and choose **Open**. |
36| **Linux** | An AppImage, a `.deb` or an `.rpm` | The AppImage runs anywhere once made executable (`chmod +x`). It needs WebKitGTK 4.1, which the packages install for you. |
37
38Every file's SHA-256 is in `SHA256SUMS` beside it, at
39`https://g1t.sh/downloads/desktop/<version>/`.
40
41The app opens on g1t.sh's sign-in page, not the site's landing page: it
42is for using g1t, not for reading about it. It keeps you signed in like a
43browser does, and signing out brings you back to the sign-in page.
44Signing in with GitHub goes to github.com and comes back inside the
45window.
46
47## Notifications and the badge
48
49Inside the app, the **Desktop notifications** switch in
50[Settings → Notifications](/guides/notifications/#settings) is on and the
51app shows them itself: while the window is behind another or hidden, a
52message to you shows as a notification from your system, under the same
53rules as in a browser: [what you chose to be told about](/guides/chat/#notifications),
54never while [Do not disturb](/guides/chat/#sounds-and-do-not-disturb) is
55on, never for a muted conversation. With the window in front, the pop-up
56in the corner shows instead, as on the site. Clicking a notification
57brings the app forward; opening the conversation it is about from the
58notification is coming.
59
60The icon carries a badge with what is waiting for you: the count on macOS
61and Linux, a lavender dot on Windows. The tray icon's hover text says the
62number everywhere. With a notification, the taskbar icon flashes on
63Windows and the dock icon bounces on macOS, while the window is not in
64front. [The app's settings](#settings) turn off each of these: the
65notifications, the flash and the badge.
66
67[Chat sounds](/guides/chat/#sounds-and-do-not-disturb) play as on the
68site, through the app's own audio.
69
70## The window and the tray
71
72Closing the window hides it; g1t keeps running in the tray (the menu bar
73on macOS) so notifications still arrive. Click the tray icon, or its
74**Open g1t**, to bring the window back; on macOS the dock icon does too.
75**Quit g1t** in the tray menu ends it. The window remembers its size and
76place. To have closing the window quit instead, turn off **Keep g1t
77running when the window closes** in [the app's settings](#settings).
78
79The tray menu also holds **Settings…**, **Check for updates…**, **Use
80another g1t…** and, when an update is downloaded, **Restart to update**.
81
82### The title bar
83
84g1t draws its own title bar, as Slack and Discord do, so the whole window
85is g1t and looks the same on Windows, macOS and Linux. It takes the
86colours of g1t's rail, in light and dark.
87
88| Part | What it does |
89| --- | --- |
90| **☰** (Windows and Linux) | Opens the app's [menu](#the-menu). |
91| **← →** | Back and forward through the pages you have been on. |
92| **Search** | In the middle: searches your workspace, as **Ctrl+K** or **⌘K** does. Before you are signed in, it shows the page's title. |
93| **Minimize, maximize, close** (Windows and Linux) | At the right. Close keeps g1t in the tray unless [the settings](#settings) say it quits. On macOS the window's own buttons sit at the left of the bar. |
94
95Drag the bar to move the window, and double-click it to maximize or
96restore it. The bar is there on every page the window shows, signing in
97with GitHub included, and the page sits below it, never under it.
98
99To have the system's title bar instead, turn on **Use the system's title
100bar** in [the settings](#settings). On Windows and Linux the menu bar
101comes back under it. g1t restarts to change it: the settings window offers
102**Restart now**.
103
104### The menu
105
106The app has the menus a desktop app has: under **☰** at the left of the
107title bar on Windows and Linux, or under the system's title bar if you
108use it, and at the top of the screen on macOS. Their shortcuts work
109either way.
110
111| Menu | What is in it |
112| --- | --- |
113| **File** (**g1t** on macOS) | **Settings** (Ctrl+, or ⌘,), **Use another g1t…**, **Close window** (Ctrl+W), **Quit g1t** (Ctrl+Q or ⌘Q) |
114| **Edit** | Undo, redo, cut, copy, paste and select all |
115| **View** | **Reload** (Ctrl+R), **Actual size** (Ctrl+0), **Zoom in** (Ctrl+=), **Zoom out** (Ctrl+-), full screen |
116| **Go** | **Back** (Alt+Left, or ⌘[), **Forward** (Alt+Right, or ⌘]), **Home**, **Notifications** |
117| **Window** | Minimize and maximize |
118| **Help** | **Desktop app guide** and **g1t.sh status**, in your browser; **Check for updates…**; **Restart to update**, once one is downloaded; **About g1t** |
119
120
121## Settings
122
123The app's own settings are in a window of their own: **Settings** in the
124File menu (the g1t menu on macOS), **Settings…** in the tray, or **Desktop
125app settings** in your account menu on g1t. Each change takes effect at
126once and is kept on this computer. Your account's settings, which things
127notify you among them, stay on g1t, in [your settings](/guides/notifications/#settings).
128
129| Setting | Default | What it does |
130| --- | --- | --- |
131| **Open g1t when you sign in** | Off | Starts g1t with your computer. The system keeps this: a login item on macOS, a startup entry on Windows, an autostart entry on Linux. |
132| **Start in the tray** | On | Opened at sign-in, g1t waits in the tray without opening its window. Opening it yourself always shows the window. |
133| **Keep g1t running when the window closes** | On | Closing the window leaves g1t in the tray for notifications. Off, closing the window quits. |
134| **Show notifications** | On | Notifications from your system. Off, nothing pops up from the app, whatever your account's settings say. |
135| **Flash the taskbar icon** (**Bounce the dock icon** on macOS) | On | Asks for your attention with a notification while the window is not in front. |
136| **Show a badge on the icon** | On | The count, or the dot on Windows. Off, the icon stays clean; the tray's hover text still counts. |
137| **Use the system's title bar** | Off | The system's title bar in place of [g1t's own](#the-title-bar), with the menu bar under it on Windows and Linux. Takes effect when g1t restarts. |
138| **Zoom** | 100% | How large g1t is drawn, from 67% to 200%. The View menu changes it too. |
139| **Download updates by themselves** | On | Off, the app never checks on its own; **Check for updates** still does. The runner's updates follow it too. |
140| **Run jobs on this computer while g1t is open** | On | Starts [the runner](#the-runner) a few seconds after the window. Off, nothing runs. |
141| **How jobs run** | Sandboxed | Sandboxed, in Docker, or directly on this computer. See [how jobs run](#how-jobs-run). |
142| **Workspace** | The one you were in when it first registered | The workspace whose jobs the runner runs. Lists the workspaces you own. |
143
144The settings window also shows the app's version and whether it is up to
145date, with **Check for updates** (see [Updates](#updates)), and the server it opens, with **Change…** to [use another
146g1t](#your-own-g1t).
147
148## The runner
149
150The app runs a [self-hosted runner](/guides/self-hosted-runners/) for
151you while it is open: your workspace's jobs that ask for `self-hosted`
152run on your computer, at no cost, and nothing has to be downloaded,
153registered or started by hand. It starts a few seconds after the window
154opens, and stops when g1t quits. Time on it is free, as on any of your
155runners.
156
157To stop it, press **Stop** in the settings window's Runner section, or
158**Stop running jobs** in the tray; it starts again with **Start**, or the
159next time g1t opens. To keep it off, turn off **Run jobs on this computer
160while g1t is open** in [the settings](#settings).
161
162A job still runs only on a runner with every label it names. The app's
163runner has `self-hosted`, its OS and architecture (`linux` for a runner
164whose jobs run in containers, whatever the computer is), and `desktop`.
165It is named after your computer, and a new registration from the same
166computer takes the place of the old one.
167
168### How jobs run
169
170**How jobs run** in the settings decides what a job on your computer can
171reach. The app never changes it by itself: when the one you chose cannot
172start, it says why and runs nothing.
173
174| Choice | How | [Isolation](/guides/self-hosted-runners/#isolation) | What a job can reach |
175| --- | --- | --- | --- |
176| **Sandboxed** (the default) | The runner in a sandbox of its own, and each job in a container inside that. On Linux, the runner's image under [Sysbox](https://github.com/nestybox/sysbox), through your Docker, without its socket. On Windows and macOS, a small virtual machine the app makes, once that is released; until then it says *a sandbox isn't available on this computer yet*. | `nested-container` | Its own container. Not your computer. |
177| **In Docker** | `g1t-runner` on your computer, driving your Docker. Each job is a container of its own. | `container` | Its own container; but the runner controls your Docker, which can reach your files (Docker Desktop shares your home folder with its VM), so this is not a sandbox. |
178| **Directly on this computer** | `g1t-runner` on your computer, each job a process in a folder of its own. For jobs that need the system itself, such as building a Windows installer. | `host` | Everything your account can: your files, your keys, what an earlier job left. Not a sandbox. Never given a public repository's work. |
179
180On Linux, the sandboxed runner is this container, which the app starts,
181replaces and stops itself:
182
183```sh
184docker run -d --name g1t-desktop-runner --runtime=sysbox-runc \
185 -v g1t-desktop-runner:/data \
186 -e G1T_RUNNER_URL -e G1T_RUNNER_NAME -e G1T_RUNNER_LABELS=desktop … \
187 g1t.sh/flagon-io/g1t-runner:latest register-and-run
188```
189
190Its registration is kept on the `g1t-desktop-runner` volume. For the
191other two choices the app keeps `g1t-runner` in its data folder
192(`%APPDATA%\sh.g1t.desktop\runner` on Windows,
193`~/Library/Application Support/sh.g1t.desktop/runner` on macOS,
194`~/.local/share/sh.g1t.desktop/runner` on Linux), with each choice's
195registration beside it.
196
197### Registering
198
199The first time, and whenever you change the workspace or how jobs run,
200the app registers your computer with the workspace. It needs you signed
201in to g1t in the app as an owner of the workspace, since only owners add
202runners: the page you are on makes a registration token, which lasts an
203hour, and hands it to the app, which gives it to the runner once. The
204token is never shown, and is not kept. From then on the runner starts
205from its registration, signed in or not.
206
207The workspace is the one you were in when it first registered; choose
208another under **Workspace** in the settings. Changing it, or how jobs
209run, waits for a job that is running to end, then removes the old
210registration and makes a new one.
211
212### Keeping it up to date
213
214The app keeps the runner up to date: soon after it starts and every six
215hours, while the runner has no job, it looks for a newer `g1t-runner` in
216`g1t.sh/downloads/runner/latest.json` (or a newer image, for the
217sandbox), downloads it, checks it against the release's SHA-256, and puts
218it in place. A job is never cut short for an update, and one that fails
219leaves the runner as it was. Turning off **Download updates by
220themselves** turns these off too.
221
222### Seeing it
223
224| Where | What it shows |
225| --- | --- |
226| The tray | A row with what the runner is doing, *Runner: Waiting for jobs*, which opens the settings; **Stop running jobs** or **Start running jobs** under it. The icon's hover text says it too. |
227| The settings window | What it is doing; when it isn't running, why and how to fix it, with the fix's buttons; how jobs run; the workspace; your computer's name and the runner's version; **View on g1t**; and the runner's recent log, with **Open the whole log**. |
228| The workspace's [Runners page](/guides/self-hosted-runners/#the-runners-page) | **Desktops**: every computer with the app in the workspace, with what each is doing, or why it isn't running and the fix, in the same words. Inside the app, this computer comes first, live, with its buttons. A computer whose g1t is closed says *g1t is closed on* its name. |
229
230### When it isn't running
231
232Each state says why, and how to fix it, in the same words in the tray,
233the settings and the Runners page.
234
235| It says | Why | What to do |
236| --- | --- | --- |
237| *Waiting for jobs* | It is registered and listening. | Nothing. |
238| *Running* a job | It is running that job. | Nothing; the Runners page links to its run. |
239| *Starting*, *Registering with* a workspace, *Updating* | It is on its way. | Wait a few seconds. |
240| *Not running: turned off* | **Run jobs on this computer while g1t is open** is off. | **Turn on**. |
241| *Not running: stopped* | You pressed **Stop**. | **Start**, or open g1t again. |
242| *Not running: signed out* | It isn't registered yet, and registering needs you signed in. | **Sign in**, as an owner of the workspace. |
243| *Not running: no workspace to run jobs for* | You don't own a workspace, and only owners add runners. | Ask an owner, or **Create a workspace**. |
244| *Couldn't register with* a workspace: *only its owners can* | You aren't an owner of it. | Ask an owner to make you one, or **Choose workspace**. |
245| *Couldn't register with* a workspace, with g1t's reason | g1t refused the registration, such as for too many tokens in an hour. | **Retry**; it also tries again by itself. |
246| *Not running: Docker isn't running* | Running jobs in Docker, or the sandbox on Linux, needs Docker, and it isn't running or isn't installed. | **Open Docker** (Docker Desktop), or **Get Docker**. It starts by itself once Docker answers. |
247| *Not running: a sandbox isn't available on this computer yet* | The sandbox for Windows and macOS isn't released. | Wait for it, or **Choose how jobs run**: in Docker or directly on this computer, neither of which is a sandbox. |
248| *Not running: Sysbox isn't installed* | The sandbox on Linux needs Sysbox in your Docker. | **Install Sysbox**. |
249| *Offline:* the server *unreachable* | Your computer can't reach g1t. | Check the connection; it carries on by itself. **Retry** tries now. |
250| *Update failed* | A new version couldn't be downloaded, or its SHA-256 wasn't the release's. | It keeps running the version it has. **Retry**, or **Report** it. |
251| *Runner stopped (exit code* N*)* | The runner ended by itself, with the reason from its log. | It starts again by itself, waiting longer each time. **Restart** now, or **View log**. |
252| *g1t is closed on* a computer | Seen on the Runners page: g1t hasn't been open on that computer for ten minutes. | Open g1t there. |
253
254## Links
255
256A **`g1t://` link** opens a page in the app: `g1t://acme/-/chat/dm/chn_1`
257is `g1t.sh/acme/-/chat/dm/chn_1`. The installer registers the scheme; a
258link opened while the app is running moves it to the page without a
259reload, and one opened while it is not starts it there. Scripts, launchers
260and other apps on your computer can use it.
261
262A link to another site opens in the browser your system uses; the window
263stays on g1t. That includes this documentation and the status page. So do
264g1t's own pages for reading about g1t rather than using it: pricing, the
265policies, security, support and the downloads. Links on g1t that would
266open a new tab open in the window instead, as it has no tabs. Signing in
267with GitHub is the one trip outside g1t that stays in the window.
268
269## Updates
270
271The app asks `g1t.sh/downloads/desktop/latest.json` for a newer version
272shortly after it starts and every six hours, and downloads one in the
273background. It never installs under you: a notification and the tray's
274**Restart to update** say it is ready, and the restart, or quitting,
275installs it.
276
277To see where your copy stands, choose **Check for updates…** in the Help
278menu or the tray, or **Check for updates** in [the settings](#settings).
279The menu and the tray open the settings window at its Updates section,
280which checks and says the answer there:
281
282- **Up to date. Last checked today at 10:42.** You have the newest version.
283- **Version 0.2.0 is downloaded and installs when g1t restarts.** A
284 **Restart now** button beside it installs it and opens the new version,
285 as **Restart to update** in the Help menu and the tray do.
286- **Could not reach g1t.sh to check.** Try again once you are online.
287
288A check finds and downloads a new version in one go, so the answer can
289take a moment on a slow connection. The automatic checks and yours are the
290same check: a version the background found is shown as downloaded when
291you look. To stop the app checking on its own, turn off
292**Download updates by themselves** in [the settings](#settings).
293
294Every release is signed with g1t's key, whose public half is built into
295the app; a download whose signature does not check out is thrown away.
296Because the window shows the site itself, most changes to g1t need no
297update at all: the app updates when something native changes.
298
299## Your own g1t
300
301If you [run g1t yourself](/guides/self-hosting/), point the app at it:
302**Use another g1t…** in the tray or the File menu, or **Change…** in [the
303settings](#settings), then your server's address, such as
304`https://g1t.example.com`. The app keeps it and opens there from then on;
305**Use g1t.sh** on the same page goes back. Only that server's pages can
306talk to the app, whichever it is, and updates still come from g1t.sh.
307
308## What's not there yet
309
310- **The sandbox on Windows and macOS.** Until it is released, the runner
311 there runs jobs only if you choose Docker or this computer itself; see
312 [how jobs run](#how-jobs-run).
313- **Agents on your desktop.** The runner takes workflow jobs, and agent
314 work only if the workspace [sends it to its runners](/guides/self-hosted-runners/#agents-on-your-runners).
315- **Opening the conversation from a notification.** Clicking one brings
316 the app forward; the page it is about is coming.
317- **A page of its own while offline.** If the network goes away while a
318 page is open, the window shows the web view's own error until it is
319 back; starting without a network shows the app's own page, with a retry.
320- **Notarization on macOS**, so the first open needs no right-click.
321- **A phone app.** It is being built: see [the phone app](/guides/mobile/).
322
323## For operators: releasing the app
324
325The app lives in `apps/desktop` in [g1t's repository](https://g1t.sh/flagon-io/g1t):
326a Tauri shell in Rust under `src-tauri`, and a launcher page it bundles.
327A release is a tag `desktop-v<version>`, where the version is the one in
328`apps/desktop/src-tauri/Cargo.toml`: push it, and the `Desktop release`
329workflow builds the installers, signs the updater's files, publishes the
330release to the `g1t-downloads` bucket and points `latest.json` at it.
331`scripts/desktop-release.mjs` does the same by hand, and its header lists
332the files a release holds.
333
334| What | Where |
335| --- | --- |
336| The updater's signing key | `node scripts/desktop-release.mjs keygen`, once. The private key is the repository secret `DESKTOP_SIGNING_KEY`; the public key is `plugins.updater.pubkey` in `tauri.conf.json`. Losing the private key means every installed app stops updating: keep it. |
337| Linux builds | g1t's own Linux machines, in every release. |
338| Windows builds | Either a Windows machine registered as a [self-hosted runner](/guides/self-hosted-runners/) with the labels `self-hosted` and `windows` (Rust, Node and the Visual Studio build tools on it) and the repository variable `DESKTOP_WINDOWS_RUNNER` set to `true`; or, with no Windows machine, `DESKTOP_WINDOWS_FROM_LINUX` set to `true`, which cross-builds on Linux with `cargo-xwin` and NSIS and needs `aka.ms` and `download.visualstudio.microsoft.com` among the project's [workflow-only domains](/guides/guardrails/#workflow-only-domains) for `desktop-release.yml` in `production`, where the MSVC runtime is fetched from. |
339| macOS builds | A Mac, registered as a self-hosted runner with the labels `self-hosted` and `macos`, and the repository variable `DESKTOP_MACOS_RUNNER` set to `true`. |
340| A platform with no machine | Its job is skipped and the release goes out with the rest; the download page says which platforms a release lacks, and the next release fills them in. |
341| Where releases are served | `g1t.sh/downloads/desktop/<version>/<file>`, from the same bucket as the runner's and the CLI's releases. |
342
343A self-hosted g1t does not serve the app's releases: the app always
344updates from g1t.sh, and `g1t.sh/download` is where to send people.