Command line

gitroots in your terminal.

Approvals, branch rules, push checks, audit and your agent sessions, right where you already push code. Open a session and type / to pick a command.

curl -fsSL https://gitroots.com/cli/install.sh | bash

A single binary, no Node needed. It installs to ~/.local/bin and every download is checked against SHA256SUMS. Read the script first →

Latest 0.6.8 · macOS (Apple silicon, Intel) · Linux (x64, arm64) · Windows (x64) · SHA256SUMS · manifest · Homebrew formula

Quick start

From install to your first checked push.

Four steps. Your workspace's rules come with you, so nothing new to configure on the command line.

  1. 01
    gitrootsOpens a gitroots session in your terminal. Type / to pick a command.
  2. 02
    /loginApprove the sign-in in your browser. Your workspace, approvals, audit and agents load from gitroots.
  3. 03
    /hooks installRun it inside a repository. Every git push is then checked against your workspace's branch rules and scanned for secrets before it leaves.
  4. 04
    /agentsYour Claude Code and Codex sessions, on your machines and this computer. Approve, message, stop or resume them.
❯ gitroots
gitroots
v0.6.8 · code governance and agent sessionsSecure it to the root, scale with confidence.
✓ Signed in · workspace rules in sync

❯ gitroots hooks install
✓ Push checks installed for odoo-erp

❯ git push origin main
→ gitroots · checking policy for dev-01
✕ REJECTED main is protected. dev-01 may push to
  feature/* only — open a pull request instead.

❯ git push origin feature/inventory
✓ Allowed · branch rules and secret scan passed
Sample output · sample workspace
What's inside

The same rules as the dashboard. One keystroke away.

Status

/status shows what needs you, your workspace's posture and your agents.

Push checks

Protected branches, protected paths, secrets, authors and migrations, checked on every git push.

Approvals

/approvals to review merge and access requests, then approve, decline or request changes.

Audit

/audit and /pushes: who did what, when, and which pushes were blocked.

Agent sessions

/watch and /attach follow live Claude Code and Codex sessions. Approve with y, deny with n.

Scriptable

Every command also runs on its own, such as gitroots status --json, for scripts and CI.

gitroots

Your rules, enforced at git push.

Install the CLI, sign in once, and every push is checked before it leaves your machine.

Install the CLI Start free