Andy294753951 / dsh-plugin-qwen-web-bridge

목록에 있음

DeepSeek Harness plugin: drive a logged-in Qwen web session (Qwen3.8 on qianwen.com / qwen.ai) through a local browser bridge

main도구세션 소스 보기

설치

npx -y @deepseek-ai/dsh plugin --profile web add github:Andy294753951/dsh-plugin-qwen-web-bridge

이 설치 명령은 GitHub 저장소 주소에서 생성된 확인되지 않은 시작점입니다.

README

유지 관리자가 작성한 문서 스냅샷입니다.

GitHub에서 보기 ↗
커밋 047959d동기화 2026. 8. 18.

Qwen Web Bridge Plugin

A small local plugin that lets an agent (or any local process) drive an already logged-in Qwen web session in Edge/Chrome. It was originally built to ask Qwen3.8-Max from WSL without touching the login state.

agent / harness
      |
      | HTTP JSON (127.0.0.1:17172)
      v
bridge_server.py  <------->  Qwen Web Bridge (browser extension)
                                  |  tabs / scripting / debugger / cookies
                                  v
                    logged-in qwen.ai or qianwen.com tab

Contents

  • extension/ — Manifest V3 browser extension (unpacked).
  • bridge/bridge_server.py — stdlib-only Python bridge server.
  • bridge/client.py — tiny command-line client.
  • plugin.json — optional metadata, adjust to the target harness schema if needed.
  • examples/ — ready-to-use command recipes.

1. Load the extension

  1. Open edge://extensions (or chrome://extensions).
  2. Enable Developer mode.
  3. Click Load unpacked and select extension/.
  4. Pin the extension if you want to see its badge.

The extension polls http://127.0.0.1:17172 for commands. It does not phone home anywhere else.

2. Start the bridge server

python3 bridge/bridge_server.py --bind 127.0.0.1 --port 17172

On WSL2, Windows browsers can normally reach this WSL listener through http://127.0.0.1:17172.

3. Send commands

python3 bridge/client.py --action getTabs
python3 bridge/client.py --action getInfo
python3 bridge/client.py --action eval --expression "document.title"
python3 bridge/client.py --action navigate --params '{"url":"https://www.qianwen.com/"}'
python3 bridge/client.py --action getCookies --params '{"domains":["qianwen.com","aliyun.com"]}'

Use --raw '<json-command>' for anything else.

Supported actions

actionmeaning
getTabslist browser tabs
getInfoactive tab info
navigatenavigate or create a tab (params.url)
evalrun JS in page MAIN world (params.expression, optional params.tabId)
waitForpoll a JS expression until truthy
getCookiesread Qwen/Aliyun cookies (params.domains)
getAllCookiesread all browser cookies (sensitive, local only)
capturePNG screenshot of visible tab
clickAttrusted CDP click at params.x, params.y
typeTexttrusted CDP text insertion after optional params.focusExpression
pressKeytrusted CDP key press

Security notes

  • The bridge server listens on loopback by default; do not bind 0.0.0.0 on a shared network.
  • getCookies / getAllCookies expose browser login material. Only use them for local automation; never log or commit cookie values.
  • The extension requests cookies and debugger permissions because that is what logged-in web automation requires. Review the manifest before publishing to a public plugin registry.

Example: ask Qwen3.8-Max on qianwen.com

See examples/qianwen_ask.md.

DeepSeek Harness integration

This project is published as a dsh-plugin for DeepSeek Harness. It does not need to run inside the Harness process: the Harness agent can call it through its shell tool with bridge/client.py, or through any HTTP client on 127.0.0.1:17172.

A compact workflow:

python3 bridge/bridge_server.py &
python3 bridge/client.py --action navigate --params '{"url":"https://www.qianwen.com/"}'
python3 bridge/client.py --action eval --params '{"expression":"document.title"}'

See examples/qianwen_ask.md for a complete Qwen3.8-Max question-and-answer flow.

Repository

프로젝트 파일 및 신호

표시된 항목은 디렉터리 스냅샷에서 감지된 공개 저장소 신호입니다.

플러그인 매니페스트감지됨
예제감지됨

저장소 정보

언어
JavaScript
라이선스
MIT
마지막 업데이트
2026. 8. 14. 오후 5:55

신중하게 설치하기

소스 코드, 권한, 수명 주기 스크립트, 의존성 및 네트워크 접근을 검토하고 신뢰하지 않는 플러그인은 격리 환경에서 테스트하세요.