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(authorization): make remote Model Hub source reads local-only
Max3c426ac9bb77
diff --git a/tests/test_ui_remote_access_auth.py b/tests/test_ui_remote_access_auth.pyindex 1a815e047..13f1c7c5e 100644--- a/tests/test_ui_remote_access_auth.py+++ b/tests/test_ui_remote_access_auth.py@@ -1639,6 +1639,7 @@ def test_remote_diagnostics_and_legacy_system_helpers_are_blocked_before_local_a[("/api/models/runtime/start", "vibe.ui_server._model_hub_service"),("/api/models/agents/codex/probe", "vibe.ui_server._model_hub_service"),+ ("/api/models/sources", "vibe.ui_server._model_hub_service"),("/api/backend/codex/restart", "vibe.api.restart_backend"),("/api/backend/codex/auth/test", "vibe.api.test_backend_auth_async"),],@@ -1752,8 +1753,9 @@ def test_remote_show_page_public_link_mutations_are_blocked_before_store_access([("/api/models/runtime/status", False),("/api/models/agents", False),+ ("/api/models/sources", True),("/api/backend/codex/runtime", True),- ("/api/backend/codex/auth", True),+ ("/api/backend/codex/auth", True),],)def test_remote_model_and_backend_reads_follow_execution_safety_policy(path, local_only):diff --git a/vibe/authorization.py b/vibe/authorization.pyindex 2e1cc34ca..6bab27e82 100644--- a/vibe/authorization.py+++ b/vibe/authorization.py@@ -364,6 +364,12 @@ _REMOTE_LOCAL_ONLY_HTTP_RULES = tuple(("GET", r"^/api/harness/(?:runs|bootstrap|runs/[^/]+)$"),("GET", r"^/api/vault/(?:pubkey|agent/pubkey|sandbox/root-metadata|vmk)$"),("GET", r"^/api/global-prompts$"),+ # Model Hub source listing returns credential metadata+ # (credential_ref, masked_credential, account_label, custom base_url,+ # usage/billing) that must not cross the tunnel; the mutation surface+ # is already fail-closed local-only, so the read stays local-only too.+ ("GET", r"^/api/models/sources$"),+ ("HEAD", r"^/api/models/sources$"),("POST", r"^/api/show-pages/[^/]+/visibility$"),("POST", r"^/api/show-pages/[^/]+/(?:rotate-share|share-id)$"),("GET", r"^/api/skills/(?:check|find)$"),@@ -428,7 +434,7 @@ _REMOTE_OWNER_ALLOWED_HTTP_RULES = tuple(),(frozenset({"GET", "HEAD"}),- r"^/api/models/(?:sources|agents|events|runtime/status)$",+ r"^/api/models/(?:agents|events|runtime/status)$",),(frozenset({"GET", "HEAD"}),