Forqen is a native GitHub client for Linux that puts local git and github.com in one GTK4 application, without a bundled web engine.
GitHub Desktop has no official Linux build, and the alternatives each miss something: the community fork and GitKraken are Electron apps that use hundreds of megabytes of memory, Lazygit is terminal only and has no pull request review, and gitg covers local git only. Forqen aims to replace GitHub Desktop on Linux, and to cover the parts of github.com you use every day: pull request review, issues, Actions and notifications.
It is written in Rust with GTK4 and libadwaita. A core design goal is a flat memory curve: scrolling the entire history of a large repository should cost about the same as scrolling a short one. On git.git (82,154 commits), scrolling the whole history adds about 1.6 MB of resident memory.
Forqen is for Linux developers who want a fast desktop git client that also handles their GitHub work, and who care about how much memory their tools use.
- Windowed history: The History page shows the full commit list of any repository, but only keeps a few hundred rows in memory at a time. A commit-graph file is written in the background the first time you open a repository that has none, which makes walking history much faster.
- Line-level staging: The Changes page shows staged and unstaged files with an interactive diff. You can stage, unstage and discard whole files, single hunks or individual lines.
- Commit box: Commits run your hooks, respect your signing configuration and support co-author trailers.
- Branches: Create, switch, rename and delete branches. Switching is guarded so you cannot lose uncommitted changes.
- Sync with progress: Fetch, pull and push show live progress. Force pushes use
--force-with-lease.
- Three-way conflict resolver: When a merge stops on conflicts, a resolver shows base, ours and theirs side by side, read from the git index. The merged pane is editable, so you can combine pieces of both sides.
- Stash browser: Push, pop, apply and drop stashes, with a diff preview of each one.
- Pull requests: List open PRs, read their changed files and diffs, draft inline comments anchored to a line, submit them as one review (comment, approve or request changes), merge, and check a PR out into a local
pr/<n> branch. Checkout works for PRs from forks, including forks that have since been deleted.
- Notifications inbox: An account-wide inbox where review requests and mentions sort above other activity. Press
e to mark read and u to unsubscribe.
- Issues: List, read, comment on, close and reopen issues. Pull requests are filtered out so they do not appear twice.
- Actions: See workflow runs, their jobs, steps and logs. The first failing run and job are preselected, and each job names its failing step. You can re-run failed jobs and cancel running ones.
- Interactive rebase editor: Reorder commits with the keyboard and choose pick, reword, edit, squash, fixup or drop for each one. Invalid plans are refused before git starts.
- Worktree manager: Create, list and remove extra checkouts, so you can review another branch without stashing your work.
- Reflog browser: See every position HEAD has held and restore any of them. Resets, rebases and merges are shown by default.
- Blame with pull requests: Blame attributes each line to a commit and, when the repository has a GitHub remote, names the pull request that introduced it.
- Command palette: Reach every command by typing. Initials work, so
ir finds "Interactive rebase".
- Repository search: Search file contents, file names and commit messages, with results grouped by kind.
.gitignore is respected.
- Releases and gists: Browse releases with notes and asset sizes, create a release from an existing tag, and list or create gists (prefilled from the file open on the Changes page).
- Repository settings view: A read-only view of visibility, default branch, licence, collaborators and branch protection.
- Three themes: Forge, Lane and Ledger, each with its own palette, corner radius and type pairing. IBM Plex Sans and Plex Mono are bundled.
- Multiple accounts: Sign in to several accounts on several hosts, including GitHub Enterprise Server.
- Session restore: Forqen remembers your window size and the page you were on.
Forqen is pre-release. There are no published builds yet, so for now you build it from source. The repository includes a Flatpak manifest and a snap recipe if you prefer a sandboxed install.
Install the build dependencies (Debian, Ubuntu and Pop!_OS package names shown):
sudo apt install libgtk-4-dev libadwaita-1-dev meson flatpak-builder
Then build and run from the repository root:
cargo build --workspace
cargo run --bin forqen -- /path/to/repo
For an optimised binary, use cargo build --release --bin forqen.
Meson wraps Cargo and also installs the desktop entry, AppStream metadata, GSettings schema and icons. It has one option, profile, which is debug or release (default debug):
meson setup build --prefix=/usr -Dprofile=release
meson compile -C build
sudo meson install -C build
flatpak-builder --user --install --force-clean \
build build-aux/space.daystack.Forqen.yml
flatpak run space.daystack.Forqen
The Flatpak bundles git itself, because the GNOME runtime does not ship it.
The snap recipe in snap/snapcraft.yaml builds for amd64 on core24 with strict confinement, and bundles git and git-lfs. Build it with snapcraft from the repository root.
Run forqen with a path to open that repository:
forqen /path/to/repo
With no path, Forqen opens your most recent repository. When nothing is open, the start page lists every repository you have opened before. Once a repository is open, click the repository and branch title to get a popover for switching to another one.
- Press
Ctrl+O to open a local repository.
- Press
Ctrl+Shift+O to clone. The Clone dialog has two tabs: pick from repositories your signed-in account can access, or paste any URL.
You have two ways to sign in.
Adopt your gh CLI login. If you already use the GitHub CLI, run:
forqen login
This reads the token gh holds, checks it against the API to learn your login name, and stores it in your keyring. It needs no display, so it also works over SSH. For an Enterprise Server host, add --host:
forqen login --host git.example.com
Sign in with a browser. Choose "Sign in to GitHub" in the app. Forqen uses the OAuth device flow: it shows a code, opens github.com, and waits while you approve it. This only works in builds compiled with a GitHub App client id (see Configuration).
To manage accounts from the terminal:
forqen accounts # list signed-in accounts
forqen logout <login> [--host HOST] # remove an account and its keyring entry
The History page is the default page (Ctrl+1). Scroll freely: rows outside the visible window are dropped and re-read when needed. Select a commit to see its details.
- Go to the Changes page (
Ctrl+2).
- Unstaged files are listed below staged files. Select a file to see its diff on the right.
- In the diff pane, stage, unstage or discard a whole file, a hunk, or selected lines.
- Write your message in the commit box under the staged list and commit. Only what is in the staged list is committed.
| Action |
Shortcut |
| Fetch all remotes |
Ctrl+R |
| Pull from origin |
Ctrl+Shift+P |
| Push to origin |
Ctrl+P |
Progress is shown live while git runs.
When a merge stops on conflicts, the Conflicts page appears. For each file you see base, ours and theirs. Take one side with a button, or edit the merged pane to combine them. The page only appears while a merge is stopped.
The Pull Requests page (Ctrl+3) appears only when the repository has a GitHub remote and you are signed in.
- Select a PR to see its changed files and diffs.
- Click a line to draft an inline comment on it.
- Submit all your draft comments as one review: comment, approve, or request changes.
- Merge the PR, or check it out into a local
pr/<n> branch to try it.
- Issues (
Ctrl+4): read, comment on, close and reopen issues.
- Actions (
Ctrl+5): open the page to see what broke. The failing run, job and step are selected for you. Re-run failed jobs or cancel running ones.
- Inbox (
Ctrl+6): triage notifications with e (mark read) and u (unsubscribe). The inbox only polls while the page is open.
| Tool |
Shortcut |
What it does |
| Stashes |
Ctrl+Shift+S |
Push, pop, apply, drop and preview stashes |
| Interactive rebase |
Ctrl+Shift+R |
Reorder and edit commits, then continue, skip or abort when git stops |
| Worktrees |
Ctrl+Shift+W |
Create, list and remove extra checkouts |
| History of HEAD |
Ctrl+Shift+Z |
Browse the reflog and restore any earlier state |
| Blame this file |
Ctrl+Shift+B |
Line-by-line authorship, with the PR that introduced each line |
| Search |
Ctrl+F |
Search file contents, file names and commit messages |
Releases, Gists and Repository settings have no default shortcut. Reach them from the toolbar or the command palette.
Press Ctrl+Shift+P or Ctrl+Shift+K to open the command palette. Type a command name or its initials, move with the arrow keys, and press Enter. The palette lists every toolbar command and every page.
| Shortcut |
Command |
Ctrl+1 to Ctrl+7 |
History, Changes, Pulls, Issues, Actions, Inbox, Conflicts |
Ctrl+O |
Open a repository |
Ctrl+Shift+O |
Clone a repository |
Ctrl+Shift+P / Ctrl+Shift+K |
Command palette |
Ctrl+, |
Preferences |
Ctrl+R / Ctrl+Shift+P / Ctrl+P |
Fetch / Pull / Push |
e / u |
Inbox: mark read / unsubscribe |
Note that Ctrl+Shift+P is bound both to the palette and to pull. Use Ctrl+Shift+K if you want the palette without ambiguity.
Open Preferences with Ctrl+,. Changes apply immediately, so the window restyles behind the open dialog.
- Theme: Forge (default, cold metal with one copper accent), Lane (dark-first, colour only identifies branches) or Ledger (warm paper, near-square corners).
- Typeface: IBM Plex (bundled, always available), Atkinson Hyperlegible (offered only when installed) or the system font.
- Density: how tightly list rows are packed, applied to every list.
Settings live under the schema space.daystack.Forqen.
| Key |
Default |
Description |
theme |
forge |
forge, lane or ledger |
ui-font |
plex |
plex, atkinson or system |
density |
default |
tight, default or roomy |
commit-row-budget |
512 |
Commit rows kept in memory (64 to 8192). Higher means fewer re-reads on long scrolls |
cache-max-age-days |
14 |
Days to keep cached API responses (0 to 365, 0 disables) |
diff-side-by-side |
false |
Side-by-side rather than unified diffs |
last-page |
history |
Page shown at startup |
recent-repositories |
[] |
Paths of recently opened repositories |
window-width / window-height |
1200 / 800 |
Window size |
window-maximized |
false |
Maximized state |
For example:
gsettings set space.daystack.Forqen commit-row-budget 1024
| Variable |
Purpose |
FORQEN_CLIENT_ID |
Read at build time. Your GitHub App client id, which enables browser sign-in |
MALLOC_ARENA_MAX |
Set to 2 by the desktop entry, Flatpak and snap to keep glibc memory overhead down |
RUST_LOG |
Log filter. Default is forqen=info,warn |
GSK_RENDERER |
GTK's renderer. cairo uses much less memory than the default GL renderer |
To build with browser sign-in enabled:
FORQEN_CLIENT_ID=<your-app-id> cargo build --release
Forqen is a Cargo workspace split into six crates:
git: history, refs, status, diff, staging, commit, branches, stash, rebase, blame and more.
github: the REST and GraphQL client, with ETag revalidation and rate limiting.
auth: device flow, keyring storage, gh import and multiple accounts.
db: a SQLite database with the account list and an HTTP response cache.
ui: the GTK4 widgets and view models.
app: the forqen binary and its subcommands.
The git, github, auth and db crates never depend on GTK, so they can be tested without a display.
Two git backends. Reads (history, objects, refs, status, diff, blame) use gitoxide (gix) in-process. Rebase, commits that run hooks or sign, and fetch, pull and push run the real git binary. This keeps git's exact behaviour for hooks, filters, signing and LFS, and the child process's memory is freed when it exits.
Holding memory flat. The history list keeps two structures. The "spine" is a list of every commit id (20 bytes each) that gives instant access anywhere in the history. "Realized rows", which hold the strings you see, are capped at 512 and evicted by distance from the viewport rather than by age, so scrolling back up stays fast. GTK only asks for rows it is about to draw, so the list can report a million rows while holding a few hundred. A CI test scrolls a 20,000-commit history in both directions and fails the build if memory grows by more than 64 MB.
Threading. Widgets are only touched on the GTK main loop. Git work runs on a thread pool, network calls on a single small async runtime, and transfers on their own threads, with results sent back over channels.
GitHub API. Forqen talks to GitHub with conditional requests. A 304 Not Modified response does not count against your rate limit, which is why the notifications inbox can poll every minute cheaply. It honours GitHub's X-Poll-Interval. Responses are cached in SQLite, and entries older than the cache limit are pruned at startup. Review threads come from GraphQL, so resolved and outdated states are accurate.
Authentication. Browser sign-in uses the OAuth device flow against a GitHub App. Only a public client id is built in, never a secret. Tokens are stored in the freedesktop Secret Service (GNOME Keyring, KWallet or similar), keyed by host and login. There is no plaintext fallback. Git transport uses ssh-agent for SSH remotes and your token for HTTPS.
- Linux with a Wayland or X11 desktop.
- GTK 4.12 or newer and libadwaita 1.5 or newer.
- The
git binary on your PATH (bundled in the Flatpak and snap).
- A Secret Service provider (GNOME Keyring, KWallet or equivalent) to sign in.
- To build: Rust 1.85 or newer (the repository pins 1.97.0), Cargo and, optionally, Meson 1.0 or newer.
- Snap builds target
amd64 only.
The Flatpak requests access to your home directory, the network, the ssh-agent socket and the Secret Service. The snap requests home, network, removable-media, password-manager-service, and read access to ~/.gitconfig, ~/.config/git and ~/.ssh.
Problem: "Sign in with a browser" is greyed out. Your build has no GitHub App client id. Rebuild with FORQEN_CLIENT_ID=<id>, or run forqen login to adopt your gh CLI token instead.
Problem: forqen login says there is no GitHub CLI token. Run gh auth login first, then try again. Use --host for an Enterprise Server host.
Problem: Sign-in fails because no keyring is available. Forqen refuses to store tokens in plain files. Install and unlock a Secret Service provider such as GNOME Keyring. In the snap, make sure the password-manager-service interface is connected.
Problem: Pushing to an SSH remote fails inside the Flatpak or snap. Check that your ssh-agent is running and SSH_AUTH_SOCK is set. The Flatpak needs the ssh-auth socket and the snap needs the dot-ssh interface.
Problem: The log warns that MALLOC_ARENA_MAX is unset. You launched the binary directly. Start it from the desktop entry, or run MALLOC_ARENA_MAX=2 forqen, to avoid extra memory from glibc's per-thread arenas.
Problem: Memory use looks high on an empty window. Most of it is GTK's GL renderer and GPU driver buffers. Try GSK_RENDERER=cairo forqen, which roughly halves the baseline.
Problem: Switching branches is refused. You have uncommitted changes that would be lost. Commit or stash them first.
Problem: The Pull Requests page is missing. It only appears when the repository has a GitHub remote and you are signed in.
Problem: Forqen says the path does not exist. forqen takes at most one argument, the path to a repository, and it must exist.
The following items are planned and not yet implemented:
- Diff viewer improvements: syntax highlighting, word-level intra-line diffs and a whitespace toggle.
- Commit amend, file history and
.gitignore editing.
- Pull requests: filters and search, timelines, multi-line comments, suggested changes, creating PRs from the current branch, squash and rebase merges, drafts, and reviewer and assignee management.
- Issues: creating and editing, labels, milestones, assignees and a markdown editor with preview.
- Actions: live log tailing and artifact downloads. A read-only Projects board.
- Cherry-pick, revert, a bisect assistant, submodules, Git LFS lock status, and patch import and export.
- GitHub code search, editing releases and gists, and repository health tools.
- More CLI commands (
forqen open, forqen pr checkout <n>) and a git credential helper sharing the app's keyring entry.
- Hardening: parser fuzzing, an accessibility pass, translations, and a Flathub release.
Forqen is licensed under the GNU General Public License v3.0 or later.
It bundles the IBM Plex Sans and IBM Plex Mono typefaces under the SIL Open Font License. It builds on gitoxide, GTK and libadwaita, and the git binary.