Bridge utilities for Colab + GitHub + AI workflows from a single notebook — no secrets to local disk, OAuth-only auth, lightweight Python module.
pip install git+https://github.com/Zheke32174/scandroid.gitRequires Python 3.9+. Uses stdlib + requests. The gh CLI is
needed for the Codespaces shell-out (gh codespace ssh); install
from https://github.com/cli/cli.
scandroid/oauth.py— GitHub OAuth device flowscandroid/google_oauth.py— Google OAuth device flowscandroid/google.py— Drive / userinfo wrappersscandroid/codespaces.py— Codespaces lifecycle +Sessionctxmgrscandroid/bridge.py— Colab endpoint discovery + inference helpersscandroid/gist.py— Gist-as-shared-state primitivesscandroid/approval.py— Phone-tap approval gate clientscandroid.ipynb— Colab notebook for the GPU offload patternscripts/colab-bootstrap.py— One-liner Colab cell targetscripts/smoke-test.py— Agent-side surface verificationworker/— Cloudflare Worker source for the approval gate
from scandroid.codespaces import authorize, Session
import scandroid as sd
authorize() # one-time phone tap to grant OAuth
print(sd.healthcheck(gist_id="...")["ok"])
with Session(repository="zheke32174/scandroid") as cs:
print(cs.run("uname -a").stdout)See LICENSE.