Skip to content
Sarj Long Running Agent

Setup

You need access to an LRA VM with the matching connection runtime, uv, and the Google Cloud CLI. Your administrator prepares the VM.

Install

Terminal window
git clone https://github.com/sarj-ai/long-running-agent.git
cd long-running-agent
uv tool install --editable ./packages/long-running-agent

VM details

Set this once in ~/.config/long-running-agent/config.toml. Your administrator provides the VM details.

account = "you@example.com"
project = "your-project"
instance = "your-vm"
zone = "us-central1-a"

Connect your account

Terminal window
gcloud auth login you@example.com
lra vm setup
sarj-connect terminal

Setup configures SSH and your VM user’s terminal runtime. See connection commands.

Reconnect

Close or detach the terminal to leave work running. Run sarj-connect terminal to return.

If Google asks you to sign in again, run gcloud auth login you@example.com --force, then reconnect.