VIRGO

Install and update an additional Host

Source
docs/website/additional-host.md
Pinned at
67d3fb3e1d28a6b49441135920b92b1bea1c6a0e
sha256
716aee7ed5680235dd47c5f7564dd2c160079288003fcba2a65b7a3f20a4607c

This guide is published from the pinned source above. Its English text is reproduced exactly; only its presentation is added.

Diagrams are drawn as static images when the site is built. The same flow is written out as text under each one, so nothing depends on a script.

Install and update an additional Host

An additional Host connects a machine running Claude or Codex conversations to an existing Hub. It does not install local Hub databases. This guide targets the published macOS Apple Silicon release and uses the same official virgo entrypoint as local Hub installation.

Acquire Virgo and prepare the connection

Follow official acquisition before running these commands. The ordinary acquisition must establish virgo on PATH; using an interpreter or copying a release CLI path is not an equivalent journey. Provider sign-in, required OS consent and Hub enrollment are separate inputs.

On the existing Hub, its installation owner provisions an enrollment credential for the exact Account and machine:

virgo --directory <hub-installation> hub enrollment provision \
  --account <account> --machine <new-machine> \
  --credential-output <absolute-private-enrollment-file>
virgo --directory <hub-installation> hub address --network tailscale

Deliver the generated file through your existing private custody route. On the new Host it must be a regular owner-only file with mode 0600. Pass its path, never its value. An identical provisioning retry retains the credential; it is not a single-use token. Artifact downloads need no GitHub login. Enrollment does not grant permission for every native conversation to claim a Seat.

Install and verify the Host

The official entrypoint selects the verified current release; no metadata decoding or executable extraction is required. The published launcher verifies release selection; Host connection and native delivery still require the checks below.

virgo install --mode host --root <absolute-root> --machine <new-machine> --instance host \
  --hub-url <existing-HTTPS-Hub> --account <account> \
  --network local --advertised-url http://127.0.0.1:58612/ --api-port 58612 \
  --enrollment-credential-file <absolute-private-enrollment-file>

The advertised loopback listener is local to this Host; its Hub connection is outbound HTTPS. Choose an available port. Require exit zero and ok:true with state.outcome.state:"active". Retain the returned installationDirectory, release and plan. Read the directory from the receipt; no JSON script or encoded path construction is necessary. Retry the identical install after interruption; use upgrade, rather than a second install, for a new release.

virgo --directory <returned-host-installation> host status

Require the expected machine/release, a PID, process.protocol:"responding", hub.state:"connected", and hub.associated:true/hub.fresh:true. Retain value.hub.hostId. Historical association is not a fresh connection, and this management read does not establish native provider delivery.

Authorize common Claude claims at the Hub

The Hub administrator uses the actual Host ID and the same Account/machine. The current common-native policy selector supports Claude; Codex uses its module-owned adapter/principal path.

virgo --directory <hub-installation> hub native-session policy status \
  --account <account> --machine <new-machine> --host-id <returned-host-id> --provider claude
virgo --directory <hub-installation> hub native-session policy set \
  --account <account> --machine <new-machine> --host-id <returned-host-id> --provider claude \
  --claim-vsp <canonical-same-account-VSP> --send-to any --receive-external false \
  --expected-revision <returned-revision>

Repeat --claim-vsp for each Seat in the complete replacement list; successive one-Seat writes would discard earlier grants. --send-to any permits qualified outbound destinations, not claims to another Account's Seats. Use account if that restriction is intended and select external ingress according to your policy. Retain the submitted grant, returned revision and digest. Status does not return its content. After a conflict, reconcile the retained grant rather than silently substituting a newer revision. A reconnect under the same Host ID retains policy; a new Host ID needs its own grant. The Host cannot grant authority to itself.

Add the Seat through its provider module

Sign in to the chosen provider on this machine, then run:

virgo --directory <host-installation> agent add <canonical-VSP> \
  --provider claude --model <selected-model> --workspace <absolute-existing-workspace>
virgo --directory <host-installation> agent status <canonical-VSP>

Use --provider codex and its selected model for Codex. Add composes provider setup, session provisioning, MCP, native Memory and hook transactions. A per-Seat setup file is not required. It does not submit an initial task or grant Hub policy. Select --executable or --backend only when discovery reports real ambiguity.

Repeat the same add after a temporary failure. If provider allocation is unknown, retain its public session ID and repeat with --session <that-session> rather than allocating another. If a legacy producer needs selection, preparation reports its exact command digest; repeat with the reported --legacy-hook-sha256 SESSION:SHA[,SESSION:SHA...]. Unrelated hooks remain intact.

Claude 2.1.283 requires confirmation for Virgo's server:virgo development channel on each launch/resume. Complete the provider's displayed confirmation and repeat the same add if needed; its receipt preserves allocation. A process waiting at that prompt is not channel readiness. See the provider's development-channel documentation.

Verify in the actual provider: current exact Seat/session, delivery available, one fresh internal message/reply, and a native Memory capture/search/get when Memory is enabled. Process success alone does not complete this journey.

Move an existing managed conversation

virgo --directory <source-host> agent handoff <canonical-VSP> \
  --output <absolute-private-handoff-file>
virgo --directory <destination-host> agent add \
  --handoff <absolute-private-handoff-file> --workspace <absolute-restored-workspace>

Handoff releases and stops the source and preserves its module-owned model and permissions. Codex checks its existing thread is idle. Copy the generated metadata alongside the already-preserved provider history and workspace through your existing backup/restore route; the handoff contains neither transcript nor login credentials. Leave the source stopped. Missing history asks for restoration, not a new conversation. Retry the same destination command after interruption. Verify actual delivery/Memory before retiring source custody. Restarting the source cancels the handoff; export a new one after stopping it again.

Update and recover the same installation

Update the same instance to the verified official current release, or roll back only the retained plan:

virgo upgrade --mode host --root <absolute-root> --machine <machine> --instance host
virgo --directory <host-installation> host status
virgo rollback --mode host --root <absolute-root> --machine <machine> --instance host \
  --plan-id <retained-upgrade-plan-id>

Update preserves the Hub, Account, key, association and unrelated provider configuration. Preserve the original plan; identical release retry does not replace it with an empty plan. An interrupted native-hook update continues its recorded profiles. Drift after a completed update is a conflict, not permission to overwrite.

Rollback restores the exact plan's predecessor and leaves the Host stopped. To reactivate only that restored release, use the newer verified entrypoint with the receipt's restored release, then verify a fresh connection with the same Host ID:

virgo upgrade --mode host --root <absolute-root> --machine <machine> --instance host \
  --release <restored-release-from-rollback-receipt> --github-repository virgo-codes/virgo-release
virgo --directory <host-installation> host status

When the old Hub is unavailable, a supported successor can first stage an upgrade with --activate false, requiring activation:"deferred" and loadedRelease:null. Then reconnect the same Host:

virgo --directory <host-installation> host hub retarget \
  --hub-url <new-HTTPS-Hub> --enrollment-credential-file <absolute-private-file>

Retarget journals connection/association preimages and resumes exact enrollment retries without contacting the old Hub or creating another machine identity. Preserve incomplete receipts. Only explicitly intended provider lifecycle actions may restart a session; a Host update is not permission to replace conversations. Preserved old connector paths remain valid only when their bytes and ownership match the selected release. Changed connector bytes require supported same-session recovery and fresh native capture evidence at the authorized boundary.

Lower-level prepared-session/native-hook transactions remain available in the current command reference. They are not additional mandatory steps in ordinary add. Finish with operations and verification.