@viravideos/install
@viravideos/install is the public, dependency-free Vira Free Beta bootstrap. It contains only installer logic and public protocol hooks. It does not contain proprietary Vira payloads, provider credentials, OAuth tokens, or private signing keys.
The installation has four distinct layers, and the installer never blurs them:
| Layer |
What it is |
Where it comes from |
| Bootstrap |
This small npm package |
npm |
| Signed runtime |
vira.exe plus the host plugin payload (host/) |
Private release, delivered after sign-in and verified (Ed25519 manifest, SHA-256, size) |
| Host integration |
The plugin registered in Codex, Claude, or Hermes |
The hosts' own marketplace or skill-install commands, run by the installer |
| Optional dependencies and providers |
FFmpeg, transcription, narration tools, and OpenRouter, ElevenLabs, Fish Audio, HeyGen |
Vira's setup command and each provider's own account |
Setup is only reported as complete when the receipt says success and complete: true, which requires the applicable host activation, workspace, and doctor results.
Platforms
The signed runtime is published for Windows x64, macOS (Apple silicon and Intel), and Linux x64 (ids windows-x64, macos-arm64, macos-x64, linux-x64). Linux arm64 and Windows arm64 are not published; the installer says so before it asks you to sign in. macOS runtimes are cross-built and signature-checked but have not yet been run on a real Mac, and Linux is only run-tested on Ubuntu: treat macOS and Linux as unverified until the owner's clean-machine results are recorded. On Linux, Vira keeps your sign-in in the system keyring (never a plaintext file). The installer checks that the keyring really works by saving, reading back, and deleting a throwaway secret; if secret-tool is missing it offers to install libsecret-tools and gnome-keyring with sudo apt-get (Ubuntu/Debian only; other distributions get the exact command to run). It asks first, sudo asks for your password itself and Vira never sees it, and an unattended run only does this with --install-system-packages and root or passwordless sudo. A keyring needs a running desktop session (or a D-Bus session on a server); if it still cannot store secrets the receipt says so.
Usage
Run it in a terminal with no options and it walks you through everything:
npx -y @viravideos/install
It lists the AI apps it found (Claude, Codex, Hermes), lets you tick the ones you want, asks where to put your workspace, whether to install the media tools, and which optional AI services to connect, then shows a summary and asks before it starts. Passing a flag answers that question for you, and --yes, --json, --dry-run, or a non-terminal (an AI app running the command) skips the questions entirely.
npx -y @viravideos/install
npx -y @viravideos/install --client claude --workspace "C:\Users\me\Documents\Vira Workspace" --yes
npx -y @viravideos/install --all-clients --yes --json
npx -y @viravideos/install --client codex --dry-run --json
npx -y @viravideos/install doctor [--workspace <folder>] [--json]
npx -y @viravideos/install log [--print]
| Option |
Meaning |
--client <codex\|claude\|hermes\|antigravity> |
Install for one host |
--all-clients |
Plan or install for every supported host explicitly |
--workspace <folder> |
Create, or reuse, a Vira workspace in this folder |
--display-name <name> |
Name of the first channel (default: the folder name) |
--use-existing-folder |
Allow a non-empty folder that contains none of the files Vira creates |
--providers <list> |
Offer provider setup: openrouter,elevenlabs,fish,heygen |
--skip-provider-setup |
Do not offer provider setup |
--install-system-packages |
Linux: install the missing system keyring packages without a prompt (root or passwordless sudo) |
--install-cli-tools |
Desktop app found but its command-line tool is not: install that tool the official way automatically, so Vira can finish activation itself with no menus |
--setup-tools[=<transcription,narration>] |
Run Vira's tool setup: always installs the required FFmpeg and HyperFrames CLI; add a value to also fetch local transcription and/or local narration (large, separate downloads) |
--no-browser |
Print the sign-in link instead of opening a browser |
--yes |
Do not ask for confirmation |
--dry-run |
Detect and plan without network access or writes |
--json |
One redacted JSON receipt on stdout (progress and the sign-in link stay on stderr) |
With no --client and no terminal, the installer selects every detected host that has an automated integration (Codex, Claude, Hermes). Antigravity is only used when named explicitly, and is reported honestly as unsupported (see below).
Node.js 20 or newer is required for the bootstrap. Vira's own tools (workspace creation, setup, the plugin doctor, Hermes install) need Node.js 22 or newer and Git; with an older Node the runtime still installs and the receipt lists the exact remaining step. The package does not add a package manager, invoke sudo, or write provider keys.
The guided flow
- Checks. Node.js, platform, and supported hosts are detected. Nothing is written yet.
- Sign-in. The installer opens the Vira sign-in page in the browser (Microsoft Edge first on Windows) and always prints a manual link as well. New users choose Create account, confirm their e-mail, and the same authorization continues; existing users just sign in. The local callback listens only on
127.0.0.1, verifies state, uses PKCE, and waits up to ten minutes. Declining in the browser is reported as AUTH_DENIED.
- Verification. The installer registers a random reusable installation identity, fetches the Ed25519-signed manifest, downloads the artifact, and checks signature, size, and SHA-256. A failure here ends the run before any host, workspace, or install directory is touched.
- Runtime and host. The archive is extracted (traversal, links, ZIP64, encryption, and duplicate names are rejected) into a versioned directory, then each selected host is activated with its real mechanism:
- Claude:
claude plugin marketplace add <dir> then claude plugin install vira@vira-local -s user -y, verified with claude plugin list --json. Claude asks for hook approval itself.
- Codex:
codex plugin marketplace add <dir> then codex plugin add vira@vira-local-source, verified with codex plugin list --json. Codex does not run plugin hooks until the user reviews them, so the receipt always lists the /hooks trust step as required; it is never bypassed.
- Hermes: the delivered provider CLI's
hermes-install (skills plus guard wiring).
- Desktop-only apps (Claude Desktop or the ChatGPT desktop app found, but no command-line tool): the Code tab and Codex app share
~/.claude and ~/.codex with their CLIs for detection, but a plugin can still only be added by actually running that CLI, so a chat/Cowork tab (or a Code tab with no claude/codex binary on PATH or in its usual install locations) cannot be activated by running a command that is not there. With --install-cli-tools, the installer installs that command-line tool itself the official way (winget install Anthropic.ClaudeCode, brew install --cask claude-code, or the curl install.sh script for Claude; npm install -g @openai/codex for Codex) and retries, finishing activation with no menus. Without that flag, or if the automatic install does not finish, the receipt lists the exact in-app steps as a required follow-up and never reports the app as done. Command-line tools are found on PATH and in their usual install locations (Homebrew, ~/.local/bin, npm global, Windows shims).
- Antigravity: no verified automated mechanism exists yet, so only the runtime is installed and the receipt says Antigravity cannot use Vira yet.
A marketplace that Vira did not create is never removed; one that points at an older Vira install is replaced.
- Workspace. With
--workspace, an existing Vira workspace is reused untouched, a new or empty folder is initialized through Vira's own init, and a non-empty folder is refused unless --use-existing-folder is given and none of AGENTS.md, CLAUDE.md, vira.json, videos/, channels/ exist. The home folder, drive roots, and ~/.vira are refused. The receipt gives the exact command to open the workspace in each chosen app; the installer does not silently open or trust a project.
- Doctor. The installed runtime's read-only
doctor --json and the plugin's doctor are run and summarized. Required gaps become remaining items with exact commands.
- Providers (optional).
--providers lists what to connect; the receipt explains what each is for, what it needs, and that it can cost money. In an interactive terminal the provider CLI's own secure prompt runs; otherwise the receipt prints the command to run in a private terminal. Keys are never accepted as options, prompts, logs, or receipts.
- Tool setup (optional,
--setup-tools). When given, the plugin's own setup always provisions FFmpeg and the HyperFrames CLI first and retries each once on failure, since Vira cannot create a video without them; a value (transcription, narration, or both) also fetches that large, separate download. Nothing here is ever reported as finished while a required tool is still missing.
Diagnostic log
Every real run (success, failure, cancellation, partial success, and failures before sign-in) writes a redacted JSON Lines log to ~/.vira/logs/install-<UTC time>-<run id>.jsonl and prints its location. It records the installer version, OS and architecture, selected hosts, stages reached with timestamps, safe error codes, outcomes, and recovery guidance. It never records passwords, API keys, tokens, OAuth codes, cookies, signing keys, e-mail addresses, the user name, or absolute paths.
npx -y @viravideos/install log prints the latest log's location; log --print prints its (re-redacted) contents, ready to paste.
- If the log cannot be written, the installer says so and prints a redacted summary to copy instead.
--dry-run, doctor, --help, --version, and log write no log. Logging is independent of installation: a log failure never changes the outcome, and an authentication or integrity failure installs nothing.
- The newest 20 logs are kept.
Receipt
--json prints one redacted receipt: status (success, action-required, partial-success, failed, cancelled, dry-run), complete, per-host activation (activated, needs-approval, payload-missing, failed, unsupported), workspace, doctor, providers, remaining[] (each with severity, action, and an optional command), diagnostics.logPath, and, for the person running the installer, locations with the exact runtime, plugin CLI, and workspace paths. ~/.vira/install/receipts/ keeps a fully redacted copy.
Exit code 1 is used for failed, partial-success, and blocked. action-required exits 0 because the install itself worked; read remaining.
Production edge and trust
The published package uses Vira's authorized production edge by default. Set VIRA_INSTALL_EDGE_URL only when a release operator supplied another authorized origin. --dry-run and doctor never contact the edge.
The manifest signature is Ed25519 over canonical JSON with the signing member removed. The package ships the current and previous release public keys; VIRA_INSTALL_SIGNING_KEYS is an optional JSON override for a separately authorized staging key set. The package never accepts a private key. A missing trust key, malformed manifest, checksum or size mismatch, invalid signature, unsupported platform, unsafe URL, or an installer older than the manifest's minimum_bootstrap_version aborts before extraction.
On Windows, a successful install persists the production edge as the user's VIRA_EDGE_URL; open a new terminal afterwards. Installed files live under ~/.vira/install/<client>/<version>/; current.json is written after the files are extracted and before the host plugin is activated.
Lifecycle
vira-cli update --check --channel stable
vira-cli update
vira-cli rollback
vira-cli repair --client codex
vira-cli uninstall --client codex --yes
update --check is read-only. uninstall is explicit, client-scoped, and does not remove workspaces, profiles, credentials, or shared tools. Re-running this installer is the reinstall path.
vira-cli update updates every installed client in place: it signs in through your default browser as the device this installer registered, downloads the signed release for your platform, verifies its size and SHA-256, extracts it into a new <client>/<version>/ directory with the installer's own archive rules, activates the host plugin from it, and only then switches that client's current.json. If a host cannot be activated, that client keeps its previous version. vira-cli rollback switches back to an installed version and re-points the plugin, and /vira:update runs the same update from inside an agent. Versions before the first release that contains the updater cannot update themselves: re-run this installer once to reach it.