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
fix(install): launch from the installer-resolved path (#1782)
Call Whited659e1fc2384
diff --git a/README.md b/README.mdindex 8367084f5..c3a8d40c1 100644--- a/README.md+++ b/README.md@@ -41,7 +41,7 @@ Claude Code, Codex, OpenCode are incredible. But:**One command turns your own machine into the home your AI partner lives in.** You drive the *official* Claude Code, Codex, and OpenCode — from a browser or any chat app — while your code and keys stay on your machine, and avibe.bot never sees your data.```bash-curl -fsSL https://avibe.bot/install.sh | bash && vibe+bash -o pipefail -c 'curl -fsSL https://avibe.bot/install.sh | bash -s -- --launch'```The browser opens, you follow a short wizard, and your machine becomes an Agent OS you can reach from anywhere.diff --git a/README_ZH.md b/README_ZH.mdindex ccdf5fc61..e047926a3 100644--- a/README_ZH.md+++ b/README_ZH.md@@ -41,7 +41,7 @@ Claude Code、Codex、OpenCode 都很能打。但是:**一条命令,把你自己的机器变成 AI 伙伴的家。** 你驱动的是*官方*的 Claude Code、Codex、OpenCode——从浏览器或任意聊天软件——而代码与密钥都留在你的机器上,avibe.bot 也看不到你的数据。```bash-curl -fsSL https://avibe.bot/install.sh | bash && vibe+bash -o pipefail -c 'curl -fsSL https://avibe.bot/install.sh | bash -s -- --launch'```浏览器自动打开,跟着简短向导走完,你的机器就成了一个随处可达的 Agent OS。diff --git a/install.sh b/install.shindex d3798c26c..fa03b189e 100755--- a/install.sh+++ b/install.sh@@ -1,6 +1,6 @@#!/usr/bin/env bash# Avibe Installation Script-# Usage: curl -fsSL https://avibe.bot/install.sh | bash+# Usage: bash -o pipefail -c 'curl -fsSL https://avibe.bot/install.sh | bash -s -- --launch'## Prerequisites: None! uv will be installed automatically and manages Python for you.@@ -20,6 +20,8 @@ NODE_MINIMUM_REQUIREMENT="20.19+ or 22.12+"VIBE_BIN_PATH=""VIBE_TOOL_BIN_DIR=""VIBE_CANDIDATE_BIN_PATH=""+LAUNCH_AFTER_INSTALL=""+AVIBE_LAUNCHED=""ORIGINAL_PATH="$PATH"if [ -n "${AVIBE_HOME:-}" ]; thenAVIBE_RUNTIME_HOME="${AVIBE_HOME/#\~/$HOME}"@@ -731,6 +733,22 @@ pair_remote_access() {success "Avibe service started"}+launch_vibe() {+ if [ "${LAUNCH_AFTER_INSTALL:-}" != "1" ] || [ "${REMOTE_ACCESS_PAIRED:-}" = "1" ]; then+ return 0+ fi++ local vibe_cmd="${VIBE_BIN_PATH:-}"+ if [ -z "$vibe_cmd" ] || [ ! -x "$vibe_cmd" ]; then+ error "Cannot launch Avibe because the verified vibe command is not available."+ fi++ info "Launching Avibe with $vibe_cmd..."+ "$vibe_cmd"+ AVIBE_LAUNCHED="1"+ success "Avibe launched"+}+print_uninstall_commands() {echo " avibe_home=\"\${AVIBE_HOME:-\$HOME/.avibe}\""echo ' avibe_home="${avibe_home/#\~/$HOME}"'@@ -784,7 +802,20 @@ print_next_steps() {returnfi- if is_vibe_immediately_available; then+ if [ "${AVIBE_LAUNCHED:-}" = "1" ]; then+ if is_vibe_immediately_available; then+ echo " 1. Finish setup in the browser"+ echo " 2. Choose your chat platform and agent backend"+ echo " 3. Enable a channel or DM and send your first task"+ echo " 4. Optional: run 'vibe remote' to open the Web UI from another device"+ else+ echo " 1. Finish setup in the browser"+ echo " 2. Run 'export PATH=\"${vibe_dir}:\$PATH\"' for future terminal commands"+ echo " 3. Choose your chat platform and agent backend"+ echo " 4. Enable a channel or DM and send your first task"+ echo " 5. Optional: run 'vibe remote' to open the Web UI from another device"+ fi+ elif is_vibe_immediately_available; thenecho " 1. Run 'vibe' to open the setup wizard"echo " 2. Choose your chat platform and agent backend"echo " 3. Enable a channel or DM and send your first task"@@ -820,6 +851,14 @@ main() {print_bannerREMOTE_ACCESS_PAIRING_KEY="${AVIBE_PAIRING_KEY:-}"unset AVIBE_PAIRING_KEY++ local arg+ for arg in "$@"; do+ case "$arg" in+ --launch) LAUNCH_AFTER_INSTALL="1" ;;+ *) error "Unsupported installer option: $arg" ;;+ esac+ donelocal osos=$(detect_os)@@ -857,6 +896,10 @@ main() {# verified absolute vibe path, not PATH, so it works even when the installer# put the command into a fallback tool bin directory.pair_remote_access++ # The public pipe-to-shell flow cannot update its parent shell's PATH.+ # Launch through the verified absolute path while this process still owns it.+ launch_vibe# Doneprint_next_stepsdiff --git a/tests/e2e/test_install_command.py b/tests/e2e/test_install_command.pyindex c3732480f..9fc7a39b1 100644--- a/tests/e2e/test_install_command.py+++ b/tests/e2e/test_install_command.py@@ -3,6 +3,7 @@from __future__ import annotationsimport os+import shleximport shutilimport subprocessimport sys@@ -14,6 +15,9 @@ import pytestREPO_ROOT = Path(__file__).resolve().parents[2]BASE_IMAGE = os.environ.get("VIBE_INSTALL_TEST_IMAGE", "debian:trixie-slim")+PUBLIC_INSTALL_COMMAND = (+ "bash -o pipefail -c 'curl -fsSL https://avibe.bot/install.sh | bash -s -- --launch'"+)def _resolve_install_wheel(fixtures_dir: Path) -> Path:@@ -48,21 +52,42 @@ def _docker_available() -> bool:@pytest.mark.integration-def test_install_command_starts_vibe_in_fresh_container():+def test_install_command_starts_vibe_for_new_user_without_local_bin_on_path():+ for readme in (REPO_ROOT / "README.md", REPO_ROOT / "README_ZH.md"):+ assert PUBLIC_INSTALL_COMMAND in readme.read_text(encoding="utf-8")+if not _docker_available():pytest.skip("Docker is not available")with tempfile.TemporaryDirectory(prefix="vibe-install-fixtures-") as tmpdir:fixtures_dir = Path(tmpdir)wheel_path = _resolve_install_wheel(fixtures_dir)+ fixtures_dir.chmod(0o755)+ wheel_path.chmod(0o644)container_name = f"vibe-install-smoke-{os.getpid()}"+ local_install_command = PUBLIC_INSTALL_COMMAND.replace(+ "curl -fsSL https://avibe.bot/install.sh",+ "cat /work/install.sh",+ )+ install_as_user = (+ "set -euo pipefail; "+ "export PATH=/usr/bin:/bin; "+ "export VIBE_INSTALL_SKIP_NODE=1; "+ "export VIBE_INSTALL_SKIP_SHOW_RUNTIME=1; "+ f"export AVIBE_INSTALL_PACKAGE_SPEC=/fixtures/{wheel_path.name}; "+ f"{local_install_command}; "+ 'test "$PATH" = /usr/bin:/bin; '+ "! command -v vibe; "+ "/home/installer/.local/bin/vibe version; "+ "sleep 2; "+ "/home/installer/.local/bin/vibe status"+ )command = ("apt-get update >/dev/null && "- "apt-get install -y --no-install-recommends curl ca-certificates bash procps >/dev/null && "- f"cat /work/install.sh | env VIBE_INSTALL_SKIP_SHOW_RUNTIME=1 AVIBE_INSTALL_PACKAGE_SPEC=/fixtures/{wheel_path.name} bash && "- "vibe version && "- "vibe && sleep 2 && vibe status"+ "apt-get install -y --no-install-recommends curl ca-certificates bash procps passwd >/dev/null && "+ "useradd -m -s /bin/bash installer && "+ f"su - installer -s /bin/bash -c {shlex.quote(install_as_user)}")try:@@ -92,8 +117,10 @@ def test_install_command_starts_vibe_in_fresh_container():subprocess.run(["docker", "rm", "-f", container_name], capture_output=True)assert result.returncode == 0, result.stdout + result.stderr- assert "Installing vibe command into" in result.stdout+ assert "Installing vibe command into /home/installer/.local/bin" in result.stdoutassert "avibe-os installed successfully (from custom package spec)" in result.stdout+ assert "Launching Avibe with /home/installer/.local/bin/vibe" in result.stdout+ assert "Avibe launched" in result.stdoutassert "avibe-os " in result.stdoutassert "Web UI:" in result.stdoutassert '"running": true' in result.stdoutdiff --git a/tests/test_install_script.py b/tests/test_install_script.pyindex 7a4b09e5f..fe2d310c7 100644--- a/tests/test_install_script.py+++ b/tests/test_install_script.py@@ -10,6 +10,9 @@ from pathlib import PathREPO_ROOT = Path(__file__).resolve().parents[1]INSTALL_SCRIPT = REPO_ROOT / "install.sh"INSTALL_POWERSHELL = REPO_ROOT / "install.ps1"+PUBLIC_INSTALL_COMMAND = (+ "bash -o pipefail -c 'curl -fsSL https://avibe.bot/install.sh | bash -s -- --launch'"+)def _write_executable(path: Path, content: str) -> None:@@ -142,6 +145,9 @@ def _write_fake_uv(path: Path, uv_log: Path) -> None:fiprintf 'start\\n' >> "${{VIBE_TEST_CALL_LOG:-/dev/null}}"echo "Web UI:"+ elif [ "$#" -eq 0 ]; then+ printf 'launch\\n' >> "${{VIBE_TEST_CALL_LOG:-/dev/null}}"+ echo "Web UI:"elseecho "started"fi@@ -536,6 +542,69 @@ def test_install_script_pairs_and_starts_with_verified_vibe_path(tmp_path):]+def test_pipe_to_shell_launch_uses_verified_vibe_path(tmp_path):+ home_dir = tmp_path / "home"+ home_dir.mkdir()+ uv_bin = tmp_path / "uv-bin"+ uv_bin.mkdir()+ call_log = tmp_path / "vibe-calls.log"+ uv_log = tmp_path / "uv-tool-bin-dir.txt"++ _write_fake_uv(uv_bin / "uv", uv_log)+ _write_executable(+ uv_bin / "curl",+ """\+ #!/usr/bin/env bash+ cat "$VIBE_TEST_INSTALL_SCRIPT"+ """,+ )+ uv_bin.chmod(0o555)++ env = os.environ.copy()+ env["HOME"] = str(home_dir)+ env["PATH"] = os.pathsep.join([str(uv_bin), "/usr/bin", "/bin"])+ env["VIBE_INSTALL_SKIP_NODE"] = "1"+ env["VIBE_INSTALL_SKIP_SHOW_RUNTIME"] = "1"+ env["VIBE_TEST_INSTALL_SCRIPT"] = str(INSTALL_SCRIPT)+ env["VIBE_TEST_CALL_LOG"] = str(call_log)++ for readme in (REPO_ROOT / "README.md", REPO_ROOT / "README_ZH.md"):+ assert PUBLIC_INSTALL_COMMAND in readme.read_text(encoding="utf-8")++ install_result = _run(PUBLIC_INSTALL_COMMAND, cwd=tmp_path, env=env)+ version_result = _vibe_version(env, cwd=tmp_path)+ uv_bin.chmod(0o755)++ expected_vibe = home_dir / ".local" / "bin" / "vibe"+ assert install_result.returncode == 0, install_result.stdout + install_result.stderr+ assert f"Launching Avibe with {expected_vibe}" in install_result.stdout+ assert "Avibe launched" in install_result.stdout+ assert install_result.stdout.index("Avibe launched") < install_result.stdout.index("Installation complete!")+ assert call_log.read_text(encoding="utf-8").splitlines() == ["launch"]+ assert version_result.returncode != 0+++def test_public_install_command_propagates_download_failure(tmp_path):+ fake_bin = tmp_path / "bin"+ fake_bin.mkdir()+ _write_executable(+ fake_bin / "curl",+ """\+ #!/usr/bin/env bash+ exit 22+ """,+ )++ env = os.environ.copy()+ env["HOME"] = str(tmp_path / "home")+ env["PATH"] = os.pathsep.join([str(fake_bin), "/usr/bin", "/bin"])++ result = _run(PUBLIC_INSTALL_COMMAND, cwd=tmp_path, env=env)++ assert result.returncode == 22, result.stdout + result.stderr+ assert not (tmp_path / "home" / ".local" / "bin" / "vibe").exists()++def test_install_script_stops_when_remote_pair_cannot_start_tunnel(tmp_path):home_dir = tmp_path / "home"home_dir.mkdir()