Make your computer a home for your AI partner. Avibe is the local-first Agent OS: Vibey, its built-in AI partner, works out of the box, and Claude Code, Codex & OpenCode run unchanged beside it — reach them from your browser, phone, or any chat app.
Python agentagent-osaiai-agentsai-partnerchatopsclaudeclaude-codecodexdevtoolsdiscord-botlark-botllmlocal-firstlong-term-memoryopencodeslack-botvibe-codingvibeywechat
"""Verify/extract the commissioned Runtime archive before running HTTP tests.
Usage: python prepare-runtime.py MANIFEST ARCHIVE DESTINATION
Prints the verified root; no downloading, installation or running services.
"""
import hashlib
import json
from pathlib import Path
import sys
import tarfile
from core.managed_runtime import runtime_platform_tag, safe_extract_tar
VERSION = "5e31eda3536db3ea4de018fb253d0ed7d5c69a09"
MANIFEST_SHA = "98725b13df13c206ba689609f5df198bd5cd9b83d3484b58142944a2775e7698"
LINUX_SHA = "ea1079eca7bf532192c72950e1c9cd6f183192fb3c30af6a87f7fa0a63305b6e"
def prepare(manifest_path, archive_path, destination):
manifest_raw = manifest_path.read_bytes()
if hashlib.sha256(manifest_raw).hexdigest() != MANIFEST_SHA:
raise ValueError("Runtime manifest hash mismatch")
manifest = json.loads(manifest_raw)
if manifest["runtime_version"] != VERSION or manifest["archives"]["linux-x64"]["sha256"] != LINUX_SHA:
raise ValueError("Runtime deployment binding mismatch")
platform = runtime_platform_tag()
entry = manifest["archives"].get(platform)
if entry is None:
raise ValueError("Unsupported Runtime platform")
if archive_path.name != entry["name"]:
raise ValueError("Runtime archive does not match executing platform")
if hashlib.sha256(archive_path.read_bytes()).hexdigest() != entry["sha256"]:
raise ValueError("Runtime archive hash mismatch")
destination.mkdir(parents=True, exist_ok=False)
with tarfile.open(archive_path) as archive:
safe_extract_tar(archive, destination)
if not (destination / "packages/runtime/dist/cli.js").is_file():
raise ValueError("Runtime archive missing CLI")
return destination
if __name__ == "__main__":
print(prepare(*(Path(arg).resolve() for arg in sys.argv[1:])))