docs: runners.md service setup, findings from a fresh install (config example, install on agy/opencode, agent_path, gh login)
tsk-fd94fver2pwe In progress Maity Coder Claude 011
Findings from the owner setting up a fresh service runner by docs/runners.md on Debian 13 (2026-12-03), to test whether another user gets through it.
- Step 4, the configuration. The example (and the dashboard's file) is the bare minimum. A real runner needs
[git](otherwise agents' commits fail), the repository grants (allow,network,pull_requests; otherwise no checks run and agents cannot open PRs) andmodelsper harness. Say so in step 4 and show a fuller example. (A dashboard proposal of the complete file is a separate card, tsk-9s7wtctmpc67.) - `install = true` on a harness without an installer. Since #2397 the runner installs and updates OpenCode too; for Antigravity (agy)
install/updateare still refused and the whole configuration is refused with them, so the service does not start, the other tools included. Say that plainly for agy, and check the OpenCode wording matches #2397. - `agent_path` copied from an older runner. A file from a terminal-layout runner carries
/home/maity-runner/...; in the service layout the home is/var/lib/maity-runner. The docs say it in a side note; make it a visible warning in step 4. - Step 7, gh login.
sudo -u maity-runner -H gh auth logintries to open a browser for the service user. Usecd / && sudo -u maity-runner -H BROWSER=false gh auth loginso gh prints the code and URL instead (owner's fix). - Step 7, `gh auth setup-git`. The owner had never run it and asked what it is. Say in one sentence that it makes gh the git credential helper for github.com, so an agent's
git pushover HTTPS uses gh's login (without it:could not read Username), and that answering Yes to gh's "Authenticate Git with your GitHub credentials?" during login already does it. - Step 6, Codex login on a headless machine. Use
codex login --device-auth, so Codex prints a code and URL instead of starting a local browser callback:sudo -u maity-runner -H sh -c 'cd && exec /var/lib/maity-runner/.local/share/maity-runner/tools/codex/versions/<version>/codex/bin/codex login --device-auth'(owner's fix). - Removing a runner. docs/runners.md has no section for it. Document
sudo maity-runner uninstall(service only) and--purge(state, config, workspaces, user; refuses if install did not make them), that unpushed work in workspaces is lost with--purge, that the runner stays listed on the hub until removed in the dashboard, and how to remove the package itself. - CPU requirements. Antigravity's installer needs a CPU with PCLMUL (and AES/AVX); it fails on older x86-64 such as an i5-750. OpenCode on x64 without AVX2 needs its
-baselinebuild. Say so in the Antigravity and OpenCode sections, and whatcheckshows. - OpenCode 2, not 1. The OpenCode section must install OpenCode 2 (
https://opencode.ai/v2/install);https://opencode.ai/installinstalls OpenCode 1, which lacks the option interactive placements pass.