labs Quark

Install Quark

Quark builds from source with Cargo. You need Rust stable and Git.

Set up your system

Steps for

Install the graphics and font libraries GPUI builds against.

Debian and Ubuntu:

sudo apt install pkg-config libfontconfig-dev libxkbcommon-x11-dev libx11-xcb-dev libwayland-dev libvulkan1 mesa-vulkan-drivers

Fedora:

sudo dnf install pkgconf-pkg-config fontconfig-devel libxkbcommon-x11-devel libxcb-devel wayland-devel vulkan-loader mesa-vulkan-drivers

Arch:

sudo pacman -S pkgconf fontconfig libxkbcommon-x11 libxcb wayland vulkan-icd-loader

Can't install packages? Set RUST_FONTCONFIG_DLOPEN=1 before building and Quark finds fontconfig at runtime instead.

Install Xcode from the App Store and open it once, then:

xcode-select --install
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer

Install the Visual Studio Build Tools with the "Desktop development with C++" workload. It includes the MSVC compiler and a Windows SDK.

Install

cargo install --git https://github.com/anxkhn/quark --locked

This puts quark in ~/.cargo/bin. The first build compiles GPUI and takes a few minutes.

To work on the code instead:

git clone https://github.com/anxkhn/quark
cd quark
cargo run --release

Sign in

Quark looks for credentials in this order and uses the first it finds:

  1. ~/.pi/agent/auth.json, the file pi writes after /login
  2. ~/.local/share/opencode/auth.json, if you have signed in through OpenCode
  3. COPILOT_GITHUB_TOKEN, OPENAI_API_KEY, or OPENROUTER_API_KEY

If none of those exist yet, sign in once with pi or OpenCode, or export one of the variables.

Check it works

quark --version
quark -p --no-session "reply with OK"

The second command should print OK. Then run quark to open the window.

Uninstall

cargo uninstall quark

Sessions stay in ~/.pi/agent/sessions/. Delete that folder too if you want them gone, but pi reads the same folder.

View this page's source on GitHub