Privacy and permissions
githq talks to GitHub from your device, with your own token. It has no server that stores your work, and it never sees your issues, pull requests, code or who you are. It does count sign-ins, token renewals, sign-outs, downloads and visits to its public pages anonymously, and you can turn that off: see Usage statistics.
Updated 10 min read
What githq asks GitHub for
githq is a GitHub OAuth App. When you sign in, it asks for three scopes and needs all of them:
| Scope | What githq uses it for |
|---|---|
repo | Read and edit issues and pull requests, and read the code they change, in private repositories too. |
project | Read and edit your GitHub Projects and their fields. |
read:org | List your organisations, to filter by owner and to tell which ones hide their private data from githq. |
GitHub has no narrower scope for issues and pull requests in private repositories, so its consent screen reads as full access to your repositories. githq only touches issues, pull requests and the code they change, projects, and, if you turn on saving your settings, its own githq-settings repository.
If you grant less than all three, githq says it didn't get the access it needs and doesn't sign you in. The same goes for your organisation's own app, which asks for the same three.
Why not a GitHub App
A GitHub App only reaches repositories where someone has installed it, can't see projects you own personally, and can't comment in other people's open-source repositories. My work would have holes you'd only find after signing in. An OAuth App sees what you see on GitHub.
Where your token is kept
- In the browser, the token is kept in the browser's
localStoragefor githq.dev. It is shared by every githq tab in that browser. - In the desktop app, the token is kept in your system's credential store: Keychain on macOS, Credential Manager on Windows, the Secret Service on Linux. If the app can't reach it, the token stays in memory and you sign in again at the next launch.
Once you are signed in, the token goes only to GitHub, apart from its renewal and the moment you sign out (see below). githq.dev also sets a cookie, githq_signed_in=1, while you are signed in, so that githq.dev opens the app rather than the landing page. It holds no token and nothing that identifies you.
The one server: sign-in and tokens
GitHub's sign-in in a browser needs a secret that a web page can't keep. So githq runs one small, stateless service on githq.dev, next to the app's files, that does only this:
- sends you to GitHub's consent screen when you choose Sign in with GitHub;
- trades the one-time code GitHub sends back for your token, and hands it to your browser or the desktop app;
- renews your token: GitHub's tokens expire after 8 hours, so githq trades the refresh token GitHub issued with it for new ones;
- revokes your token at GitHub when you sign out;
- opens GitHub's page where you request an organisation's approval of githq;
- passes on the two requests of a sign-in through your organisation's own app, which GitHub doesn't answer from a web page.
It has no database and keeps no record of you. It handles the code and the token in memory and logs neither: its logs carry only statuses and error codes. Cloudflare's own request logs still record that a request happened. It never sees your issues, pull requests or projects. When a sign-in, a renewal of your token or a sign-out goes through it, it adds one to an anonymous count, unless you turned usage statistics off.
The desktop app opens GitHub's consent screen in your browser. GitHub sends the browser back to the app, to an address on your own computer (127.0.0.1) that the app listens on only while you sign in, and the browser tab then shows a githq.dev page saying you can close it. The app has the service trade the code, along with a one-time secret only the app knows (PKCE), so a code caught on the way is useless to anyone else. Your token passes through the service once, as it does in the browser. The service also renews the token every 8 hours and revokes it when you sign out of the desktop app.
Your organisation's own app
An organisation can create an OAuth App of its own for githq, and you sign in through it with its client ID (how to set it up). GitHub lets an app the organisation owns see its private data with no approval. githq gets the client ID, which is public, and never the app's client secret.
The sign-in uses GitHub's device code: githq shows a code, and you enter it on GitHub. GitHub doesn't answer those requests from a web page, so in the browser githq's sign-in service passes two of them on: the one that asks GitHub for a code, with the client ID, and the one that asks whether you have entered and approved it. The second one's answer carries your token, which passes through the service once on its way to your browser, as it does when you sign in through githq's own app. The service never has the app's secret, stores nothing, and logs neither the code nor the token; it counts the sign-in like any other, unless you turned usage statistics off. The desktop app asks GitHub directly for a sign-in through your organisation's app, and githq.dev takes no part.
Without the app's secret, githq can neither renew nor revoke such a token:
- the token must not expire, so githq refuses an app whose tokens do, and says how to change that on the app;
- signing out deletes the token on your device but doesn't revoke it on GitHub. Settings → Account says so and links to the app's page in your GitHub settings, where you can revoke it. GitHub keeps up to 10 tokens per person and app, and an eleventh sign-in revokes the oldest.
The organisation ends everyone's access by deleting the app. githq then signs you out and says the app stopped working.
Where your data goes
Your issues, pull requests, projects and code travel between your device and GitHub only:
api.github.com, for reading your data and for every change you make, with your token;- GitHub's image hosts, such as
avatars.githubusercontent.com, for avatars and images in issues; - in the desktop app,
github.comfor signing in and for checking for and downloading updates from githq's GitHub Releases.
What GitHub does with these requests is covered by the GitHub General Privacy Statement.
What stays on your device
- The copy of your GitHub data that screens open from, described in GitHub is the source of truth.
- The contents of the files of pull requests you reviewed, until you sign out.
- What you track, and how your views look: layout, sort, filter.
If you turn on Save my settings to my GitHub account, what you track and a few display choices are also written to a private githq-settings repository in your own GitHub account, so another computer can load them. None of it goes to githq. See Save what you track to GitHub.
Usage statistics
githq never collects your GitHub login, your token, or anything about your repositories, issues, pull requests or projects. It sets no cookie for statistics and keeps no profile of anyone.
What it does count, so we know how many people use githq: the sign-in service adds one to a count in Cloudflare Workers Analytics Engine for each of these, and Cloudflare keeps the counts for three months.
| Event | When | What it holds |
|---|---|---|
token_created | You sign in on githq.dev or in the desktop app. | The event, and whether it came from the web or the desktop app. |
token_refreshed | githq renews your token, which GitHub makes expire after 8 hours, on githq.dev or in the desktop app. | The event, and whether it came from the web or the desktop app. |
token_revoked | You sign out, and githq asks GitHub to revoke your token. | The event, and whether it came from the web or the desktop app. |
installer_download | Someone downloads the desktop app from githq.dev. | The event, and which installer, such as macos-silicon or windows. |
A count holds nothing about who made it: no IP address, browser, device or country. Two sign-ins by you and one each by two other people look the same. Signing in to the desktop app through your organisation's own app goes straight to GitHub, so it is never counted.
On githq.dev's landing page and on these docs, githq also loads Cloudflare Web Analytics, which counts page visits without cookies and stores nothing in your browser. Like any page you load, it reaches Cloudflare with your IP address and browser; Cloudflare shows githq only totals, such as visits per page, country and browser, and no visitor's own trail. It is never loaded in the app, whose addresses name your repositories, nor in the desktop app.
Turning it off
Open Settings → Privacy and turn off Share usage statistics; it is on until you do. Then githq stops counting your sign-ins, token renewals and sign-outs, and stops loading Web Analytics on that browser.
The choice is kept with your other settings, so with Save my settings to my GitHub account on, it follows you to your other computers. Your browser also remembers it on githq.dev, so the landing page, these docs and your next sign-in honour it after you sign out. If you never chose but this browser has it off, githq takes the browser's choice.
One limit: on a new computer or browser, githq can't know your choice before it has loaded your saved settings, so the first sign-in there is counted. Downloads of the desktop app are always counted, since nobody is signed in to say no; they carry nothing more than Cloudflare's own request logs would.
Organisations that restrict apps
An organisation can let only the OAuth Apps it has approved see its private data. This is GitHub's OAuth App access restriction, on by default for new organisations. Until an owner approves githq:
- the organisation's private repositories and projects are hidden from githq;
- githq can read its public repositories, but can't change anything there.
Nothing is broken, and nothing is missing on GitHub. To fix it, open Settings → Account: under Organisations, each one that hides its data has Request approval, which opens GitHub's page for it. Once an owner approves githq, its repositories appear with the next refresh.
If the organisation would rather not approve a third-party app, it can create its own OAuth App for githq instead: GitHub lets an organisation's own app in without approval, and you sign in through it.
Signing out and revoking access
Signing out deletes the copy kept on your device, including the contents of reviewed files, and removes the token: from the browser's storage, or from the credential store in the desktop app. githq also asks GitHub to revoke the token, so it can't be used again. Nothing changes on GitHub. Signed in through your organisation's own app, githq can't revoke the token, so it stays valid on GitHub until you revoke it there.
You can also revoke githq's access yourself at any time, on GitHub under Settings → Applications → Authorized OAuth Apps (GitHub's guide). The next time githq asks GitHub for anything, GitHub refuses the token, and githq signs you out and says so.