Skip to main content
npm install -g openlinear

Launch

openlinear [args...]
The launcher searches for the desktop binary in the following order:
PlatformSearch paths
macOS~/Applications/OpenLinear.app, ~/.openlinear/OpenLinear.app
Linux~/.openlinear/openlinear, ~/.openlinear/openlinear.AppImage
On Linux, the launcher applies environment flags for X11/Wayland compatibility and passes all arguments through to the app. If the binary is not found:
OpenLinear desktop app not found.

Install it from npm:
  npm install -g openlinear

Or download the latest desktop release:
  https://github.com/kaizen403/openlinear/releases/latest

GitHub Commands

All GitHub auth commands use local-only flows. No hosted callback server is required.
CommandDescription
openlinear github loginAuthenticate with GitHub (auto-selects best method)
openlinear github login --browserForce browser-based OAuth flow
openlinear github login --deviceForce device flow (for headless environments)
openlinear github statusShow current auth status
openlinear github whoamiDisplay authenticated GitHub username
openlinear github logoutRemove stored credentials
See GitHub Authentication for detailed flow documentation.

Post-Install Behavior

When you run npm install -g openlinear, the postinstall script runs automatically:
1

Platform detection

Identifies macOS (Apple Silicon / Intel) or Linux x64.
2

Binary download

Downloads the latest desktop release from GitHub Releases.
3

Installation

  • macOS: Places OpenLinear.app in ~/Applications/
  • Linux: Places the AppImage in ~/.openlinear/ and registers a .desktop entry at ~/.local/share/applications/openlinear.desktop

Library API

The openlinear package also exports TypeScript utilities for programmatic use:
Entry pointContents
openlinearRe-exports everything below
openlinear/typesZod schemas, validation functions for execution metadata
openlinear/validationPayload sanitization and forbidden-field utilities
openlinear/configFeature flag parsing and execution mode helpers
See Library Overview for full API documentation.