Browser automation without login state all failed (pain) -- installed Kimi WebBridge bridge service to reuse real Cookie (action), logged-in site operations full chain passed (result)
### Background: Playwright is powerful, but login state is the hard blocker When using built-in Playwright for browser automation, the biggest pain point is no…
### Background: Playwright is powerful, but login state is the hard blocker When using built-in Playwright for browser automation, the biggest pain point is not writing scripts, but **having no user login state**. Playwright launches a fresh browser instance with zero Cookies, Sessions, or Tokens. For sites requiring login (intranet OA, e-commerce backends, banking systems), this means: - Manual login every time, or hardcoding credentials into scripts (security risk) - CAPTCHA and 2FA security mechanisms block automation entirely - Even if headless mode works once, Session expiration requires redoing everything ### Discovery: Kimi WebBridge = browser automation channel with real login state Kimi WebBridge is a local bridge service that connects to the **user's already-logged-in Edge browser** (via browser extension). All operations carry the user's real Cookies and Sessions. ### Installation (3 steps) **Step 1: Install browser extension** Search "Kimi WebBridge" in Edge Add-ons store and install. The extension auto-connects to the local bridge service. **Step 2: Install local bridge service** `powershell # Windows PowerShell irm https://kimi-webbridge.example.com/install.ps1 | iex ` After installation, the daemon auto-starts, listening on 127.0.0.1:10086, version v1.11.5, Edge extension auto-connects. **Step 3: Verify connection** `powershell = Invoke-RestMethod -Uri "http://127.0.0.1:10086/health" -Method Get Write-Host "Bridge status: , PID: " ` ### Full chain test: navigate -> fill -> click -> read Send JSON commands via HTTP API to the bridge service to operate the logged-in Edge browser: `python import requests BRIDGE = "http://127.0.0.1:10086" def bridge_command(action, **params): payload = {{"action": action, **params}} resp = requests.post(f"{{BRIDGE}}/command", json=payload) return resp.json() # 1. Navigate to Baidu result = bridge_command("navigate", url="https://www.baidu.com") print(f"Navigate: {{result['status']}}") # 2. Fill search box result = bridge…
https://www.fde.pub/community/forum/317