Skip to content

armgit / avibe

Public Imported from GitHub
0

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.

Merge remote-tracking branch 'origin/master' into feature/fastapi-ui-migration

cyh0f98a1952ee6
diff --cc vibe/api.py
index c30072a56,089941363..46012875e
--- a/vibe/api.py
+++ b/vibe/api.py
@@@ -2474,20 -2392,9 +2484,20 @@@ def start_oauth_web
backend: str,
force_reset: bool = True,
provider_id: Optional[str] = None,
+) -> dict:
+ return _submit_oauth_coro(
+ start_oauth_web_async(backend, force_reset=force_reset, provider_id=provider_id),
+ timeout=60.0,
+ )
+
+
+async def start_oauth_web_async(
+ backend: str,
+ force_reset: bool = True,
+ provider_id: Optional[str] = None,
) -> dict:
backend = (backend or "").strip().lower()
- if backend not in _WEB_OAUTH_BACKENDS:
+ if not supports_web_oauth(backend):
return {"ok": False, "error": "unsupported_backend"}
if backend == "opencode" and not (isinstance(provider_id, str) and provider_id.strip()):
return {"ok": False, "error": "opencode_provider_id_required"}
@@@ -2545,13 -2454,9 +2555,13 @@@ async def submit_oauth_web_code_async(f
def remove_backend_auth(backend: str) -> dict:
+ return _submit_oauth_coro(remove_backend_auth_async(backend), timeout=30.0)
+
+
+async def remove_backend_auth_async(backend: str) -> dict:
"""Clear stored credentials for Claude or Codex (web Settings)."""
backend = (backend or "").strip().lower()
- if backend not in _WEB_OAUTH_BACKENDS:
+ if not supports_web_oauth(backend):
return {"ok": False, "error": "unsupported_backend"}
service = _get_oauth_service()
try: