MCPcopy Index your code
hub / github.com/aGallea/homerun

github.com/aGallea/homerun @v0.8.4

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.8.4 ↗ · + Follow
1,313 symbols 3,571 edges 124 files 116 documented · 9% updated 2mo agov0.8.4 · 2026-05-02★ 3612 open issues

Browse by type

Functions 1,101 Types & classes 212
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

HomeRun

HomeRun

One-click GitHub Actions self-hosted runners for macOS & Windows

README Architecture Self-Hosted Runners

CI Coverage License: MIT Latest Release Rust macOS 13+ Windows 10+


HomeRun replaces the manual GitHub self-hosted runner setup process with a unified desktop app and terminal UI. Authenticate with GitHub once, pick a repository, and launch runners with a single click. HomeRun handles download, registration, process management, log streaming, and resource monitoring — everything the official docs make you do by hand.

HomeRun runs on macOS and Windows, with Linux support planned.

Features

  • One-click runner setup — no shell scripts, no copy-pasting tokens
  • Device Flow authentication — log in with your GitHub account via browser; no PAT required
  • Batch runner creation — spin up multiple runners for the same repo in one step with live progress
  • Unified dashboard — monitor all runners across all repos in one place
  • Live log streaming — tail runner output in real time from the runner detail view
  • Job tracking — current job progress with step-by-step status, estimated completion, and full job history per runner
  • Real-time metrics — CPU/RAM per runner via live WebSocket updates
  • Two run modes — app-managed (daemon child) or background service (launchd)
  • Auto-restart — crashed runners recover automatically (up to 3 attempts)
  • Smart repo discovery — scan local workspace directories or your GitHub account for repos that use self-hosted runners
  • Terminal UI — k9s-inspired TUI with info header, context-sensitive keybindings (F1-F4 tabs), repo search, and in-app login via Device Flow
  • CLI mode — scriptable homerun --no-tui commands with colored output for automation
  • Cross-platform — macOS (launchd auto-start, native notifications) and Windows (Task Scheduler auto-start, named pipe IPC)
  • Pre-commit hooks — enforces cargo fmt, cargo clippy, conventional commits, and Prettier on every commit

Architecture

┌──────────────┐    ┌─────────┐
│  Tauri App   │    │   TUI   │     (thin clients)
└──────┬───────┘    └────┬────┘
       └────────┬────────┘
                │ IPC (REST + SSE + WebSocket)
       ┌────────┴────────┐
       │   homerund      │     (daemon — Unix socket or Windows named pipe)
       └────────┬────────┘
                │ spawns / monitors
      ┌─────────┼─────────┐
      │         │         │
   ┌──┴──┐   ┌──┴──┐   ┌──┴──┐
   │Run 1│   │Run 2│   │Run N│   (GitHub Actions runner processes)
   └─────┘   └─────┘   └─────┘

Runners are native child processes of the daemon — not Docker containers. Each runner is an instance of the official GitHub Actions runner binary. All GitHub communication is outbound HTTPS. No inbound ports needed.

For the full architecture deep-dive (runner lifecycle, state machine, process management, auth flow), see docs/ARCHITECTURE.md.

New to self-hosted runners? See How Self-Hosted Runners Work for a primer on runner communication, permissions, security considerations, and what HomeRun automates.

Quick Start

Install (macOS — DMG)

  1. Download the latest .dmg for your architecture from Releases:
  2. Apple Silicon (M1/M2/M3/M4): HomeRun_<version>_aarch64.dmg
  3. Intel: HomeRun_<version>_x86_64.dmg
  4. Open the .dmg and drag HomeRun to Applications
  5. Remove the macOS quarantine flag (required because the app is not yet code-signed):

sh xattr -cr /Applications/HomeRun.app

  1. Launch HomeRun — go to Settings > Startup > "Launch at login" to auto-start the daemon

The .dmg bundles the homerund daemon inside the app. Releases are automated via release-please — every merge to master with conventional commits triggers a Release PR with version bumps and changelog.

Install (macOS — Homebrew)

brew tap aGallea/homerun

# CLI tools (homerun + homerund)
brew install homerun

# Desktop app (not code-signed — remove quarantine after install)
brew install --cask homerun
xattr -cr /Applications/HomeRun.app

Install (Windows — MSI)

  1. Download HomeRun_<version>_x64-setup.msi from Releases
  2. Run the installer — it installs HomeRun and the homerund daemon
  3. Launch HomeRun from the Start Menu — go to Settings > Startup > "Launch at login" to auto-start the daemon via Task Scheduler

Build from Source

Prerequisites: Rust 1.75+ (rustup.rs), Node.js 20+. On macOS: Xcode Command Line Tools (xcode-select --install). On Windows: Visual Studio Build Tools with C++ workload.

git clone https://github.com/aGallea/homerun.git
cd homerun

macOS:

make setup        # checks prerequisites, builds daemon + TUI, installs frontend deps

Windows:

# Daemon + TUI (release binaries)
cargo build --release -p homerund -p homerun

# MSI installer (copies the daemon sidecar, builds the frontend, and packages the MSI)
copy target\release\homerund.exe apps\desktop\src-tauri\binaries\homerund-x86_64-pc-windows-msvc.exe
cd apps\desktop
npm install
npx tauri build
# Output: apps\desktop\src-tauri\target\release\bundle\msi\HomeRun_<version>_x64_en-US.msi

Any platform (manual build):

# Daemon + TUI
cargo build --release -p homerund -p homerun

# Desktop app (requires Node.js — builds DMG on macOS, MSI + NSIS on Windows)
cargo build --release -p homerund
cp target/release/homerund$(rustc -vV | grep host | cut -d' ' -f2 | sed 's/^/-/') apps/desktop/src-tauri/binaries/
cd apps/desktop && npm install && npx tauri build

Run

# Start the daemon (required by both the TUI and desktop app)
make dev                # or: ./target/release/homerund

# Launch the TUI (in another terminal)
make tui                # or: ./target/release/homerun

# Launch the desktop app (in another terminal)
make desktop            # or: cd apps/desktop && npm run tauri dev

# CLI mode (no interactive UI — useful for scripts)
homerun --no-tui list

On Windows (PowerShell):

.\target\release\homerund.exe         # start daemon
.\target\release\homerun.exe          # launch TUI
.\target\release\homerun.exe --no-tui list   # CLI mode

Note: The desktop app release bundles the daemon inside the app (DMG on macOS, MSI on Windows). When building from source, start the daemon separately before launching the desktop app.

Run make help (macOS) to see all available commands.

Screenshots

Desktop App

Runners dashboard — monitor all runners with live status, CPU, and job progress

Runners dashboard — live status, CPU usage, and job progress at a glance

Repository scanning — discover repos using self-hosted runners

Repository scanning — find repos that use self-hosted runners across local and remote sources

Runner detail — job steps, logs, and history

Runner detail — live job steps, log streaming, and full job history

Daemon view — process management and live logs

Daemon view — child processes, resource usage, and live daemon logs

Menu Bar & Mini View

Menu bar — quick status and controls      Mini view — compact runner status overlay

Menu bar with runner status  |  Mini view for quick monitoring

Terminal UI

TUI — keyboard-driven runner management with job details

TUI — k9s-inspired keyboard-driven interface with runner details and job history

CLI Usage

The --no-tui flag disables the interactive terminal UI and prints plain text output instead. This is useful for scripting, automation, and quick status checks.

# List all runners with status, mode, and CPU usage
homerun --no-tui list

# Show overall status (daemon, auth, runner counts, system metrics)
homerun --no-tui status

# Scan a local workspace for repos using self-hosted runners
homerun --no-tui scan ~/workspace

# Scan your GitHub repos remotely (requires authentication)
homerun --no-tui scan --remote

# Combine local and remote scanning
homerun --no-tui scan ~/workspace --remote

# Manage the daemon
homerun --no-tui daemon start
homerun --no-tui daemon stop
homerun --no-tui daemon restart

Tech Stack

Component Technology
Daemon Rust + Axum (async HTTP/SSE/WebSocket over Unix socket / Windows named pipe)
TUI / CLI Rust + Ratatui + Clap
Desktop app Tauri 2.0 + React + TypeScript
Process management tokio::process + sysinfo
GitHub API octocrab crate
Auth token storage File-based (~/.homerun/auth.json)
Log streaming Server-Sent Events (SSE)
Real-time updates WebSocket
Auto-start macOS launchd / Windows Task Scheduler
Notifications macOS native (mac-notification-sys)

Roadmap

Feature Description Issue
Live log streaming Capture runner step logs locally for fully real-time job progress #44
Docker runners Run runners inside containers — isolated environments, resource limits, ephemeral mode #84
Kubernetes backend Manage runners as pods in a K8s cluster #89
Cross-platform (Linux) Extend to Linux (systemd auto-start, packaging) #112
Organization-level runners Manage runners at the GitHub org level, not just per-repo

Priorities depend on user interest — if a feature would be useful to you, drop a thumbs-up on the issue.

Requirements

macOS:

  • macOS 13+ (Ventura or later)
  • ARM64 or Intel Mac

Windows:

  • Windows 10 or later
  • x64

Both platforms:

  • A GitHub account

FAQ / Troubleshooting

Daemon won't start / "socket already exists"

macOS/Linux: A stale socket file may exist from a previous crash. Remove it and try again:

rm ~/.homerun/daemon.sock
homerund

Windows: Named pipes are cleaned up automatically when the process exits. If the daemon reports the pipe is active, another instance may still be running. Check with tasklist | findstr homerund.

Authentication fails / "token expired"

Re-authenticate by running the

Extension points exported contracts — how you extend this code

Core symbols most depended-on inside this repo

Shape

Function 862
Method 239
Class 148
Interface 48
Enum 16

Languages

Rust87%
TypeScript13%

Modules by API surface

crates/daemon/src/runner/mod.rs112 symbols
apps/desktop/src-tauri/src/client.rs81 symbols
crates/tui/src/client.rs69 symbols
crates/daemon/src/github/mod.rs52 symbols
apps/desktop/src-tauri/src/commands.rs51 symbols
crates/tui/src/app.rs50 symbols
crates/daemon/src/auth/mod.rs38 symbols
crates/daemon/src/runner/history.rs34 symbols
crates/daemon/src/scanner/mod.rs33 symbols
apps/desktop/src/api/types.ts32 symbols
crates/daemon/src/runner/steps.rs30 symbols
crates/tui/src/ui/runners.rs28 symbols

For agents

$ claude mcp add homerun \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page