Skip to content
Proyek

Tentang

Browser extension that connects web AI assistants (ChatGPT, Google AI Studio, Gemini, DeepSeek, Kimi, Qwen) to the local Nexus execution layer for workspace, file, and script workflows.

AI dan pembelajaran mesin

Cara angka ini diukur

203 bintang49 Fork +2 dalam 24 jam

Yang dapat Anda lakukan

  • Compact floating control pill and main action drawer designed to stay out of the way of chat inputs.
  • Automatically strips web-injected code block artifacts (such as nexusCopyDownload buttons generated by DeepSeek).
  • Multi-tier recovery parser for Windows single backslashes, unescaped quotes, and PowerShell hash tables ($b=@{...}).
  • Reduces extension runtime warnings in chrome://extensions/.

Pertumbuhan bintang terukur

dalam 24 jam
+2
dalam 7 hari
+6
dalam 15 hari
Mengumpulkan riwayat
dalam 1 bulan
Mengumpulkan riwayat

Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.

README.md

Asli

WebAgent

WebAgent

Browser Extension Bridge for Nexus
Connect DeepSeek, Gemini, Google AI Studio, Kimi, Qwen, Z.ai, and Duck.ai web chats to the local Nexus execution layer (http://127.0.0.1:8787).

Version 2.0.7 Manifest V3 GPL-3.0 License Tutorial Telegram QQ Group


1. Overview

WebAgent is the Chromium browser extension companion to Nexus (The Local Execution Layer for AI). It connects browser-based AI chats to your local Nexus runtime (http://127.0.0.1:8787), allowing web models to inspect authorized workspace files, run scripts and shell commands, edit code, and invoke local MCP tools without API keys or external code relays.


2. Key Capabilities

Version 2.0 updates the extension architecture for cleaner UI controls and more reliable tool-call parsing:

  • Updated UI & Floating Control Drawer:
    • Compact floating control pill and main action drawer designed to stay out of the way of chat inputs.
  • Resilient Code-Block & Tool-Call Parser:
    • Automatically strips web-injected code block artifacts (such as nexusCopyDownload buttons generated by DeepSeek).
    • Multi-tier recovery parser for Windows single backslashes, unescaped quotes, and PowerShell hash tables ($b=@{...}).
    • Reduces extension runtime warnings in chrome://extensions/.
  • Dual Control Panels (Nexus Exclusive MCP + Skills Center):
    • Separate dropdown panels on the main drawer for Exclusive MCP tools and Skill capabilities.
    • Dedicated local directory path inputs with one-click clearing (🗑️) and scrollable tool lists (max-height: 140px; overflow-y: auto).
  • Accordion Settings Center:
    • Organized settings across 5 collapsible cards:
      1. Card 0: Official Guide & Blog Tutorial (author link and tutorial entry).
      2. Card 1: Interface Language & Local Paths (4-language switch, default workspace, exclusive MCP, skills path).
      3. Card 2: Execution & Rate-Limiting Policies (privacy masking, auto-execute (off by default), review safe mode, hiding memory blocks, delay and step-quota sliders).
      4. Card 3: Extensions & Advanced Options (registered MCP tools, custom capture prompt, Nexus endpoint on port 8787).
      5. Card 4: Developer & Community Links (GitHub repo, Telegram channel, QQ group, feedback email).
  • Run / Reject Confirmation:
    • Auto-execute is off by default. Each tool call the AI writes shows a card with the tool name, the MCP tool WebAgent will actually call, and the arguments; nothing runs until you click Run.
  • Multilingual UI (en-US, zh-CN, ja-JP, de-DE):
    • Native translations for English, Simplified Chinese, Japanese, and German with dynamic UI and prompt-template switching.
  • Cross-Session Handover & State Preservation:
    • Watches web platforms for conversation length limits, packages the project path, active goals, and recent checkpoints, opens a new chat, and resumes the workflow.

3. Official Tutorial & Community Links

Setup Tip: For step-by-step visual configuration instructions, please read our official tutorial blog.


4. Supported AI Platforms

WebAgent injects native, site-adaptive tool execution hooks into the following web assistants:

Platform Web Domain Notes
DeepSeek chat.deepseek.com Thinking process preserved; automatic continuation on token overflow
Google Gemini gemini.google.com Quill editor multi-line input. Turn Thinking mode off: it is not supported yet and will be adapted in a future version
Google AI Studio aistudio.google.com Chat Prompt / Freeform, Run button and stream interruption detection
Kimi kimi.ai / kimi.moonshot.cn / kimi.com Session auto-handover; long prompts
Qwen (Tongyi) chat.qwen.ai / tongyi.aliyun.com Multi-turn loop feedback
Z.ai chat.z.ai / zchat.z.ai Zhipu international site
Duck.ai duck.ai / DuckDuckGo AI Chat pages —

ChatGPT does not use WebAgent. From 2.0.3 it connects to Nexus directly through Nexus's built-in MCP tunnel (Settings → AI Connections → ChatGPT & Tunnel). See the ChatGPT tunnel guide.

Doubao, Dola, Perplexity, Microsoft Copilot and Dangbei were removed in 2.0.3. They were never verified by the maintainer.


5. Quick Installation (5 Minutes)

Step 1: Clone or Download

Clone this repository to your local computer:

git clone https://github.com/ysunyang4/webagent.git

Step 2: Load into Chromium Browser

  1. Open any Chromium-based browser (Google Chrome, Microsoft Edge, Brave, etc.):
    • Chrome: Navigate to chrome://extensions/
    • Edge: Navigate to edge://extensions/
  2. Toggle on Developer Mode in the top-right corner.
  3. Click Load unpacked in the top-left corner and select the cloned webagent directory (ensure it contains manifest.json, content.js, etc.).

Step 3: Configure & Run

  1. Start Nexus Control Center and authorize a test workspace (start with Read-Only permissions before enabling Read & Write).
  2. Navigate to any supported AI website (e.g. DeepSeek or Gemini).
  3. The WebAgent floating control pill will appear automatically at the top of the chat page.
  4. Click the gear icon to open the Settings Center, confirm the Nexus endpoint is http://127.0.0.1:8787 (internal Core Server uses 18080), and set your default workspace directory following the Official Blog Guide.
  5. Click Developer Mode in the panel to put the WebAgent protocol prompt into the chat input, then send it.
  6. When the AI writes a tool call, a Run / Reject card appears. Turn on auto-execute in the Settings Center only if you want tool calls to run without a click.

Clicking the WebAgent toolbar icon shows or hides the panel on the current tab. There is no separate popup; all settings are in the in-page Settings Center.


6. Privacy & Security Architecture

  • Strict Local Loopback: The extension only sends requests to http://127.0.0.1 / http://localhost on port 8787 (Nexus MCP gateway) or 18080 (Nexus Core, health check fallback). Any other address, method other than GET/POST, or URL with credentials is refused in both the background worker and the content script. WebAgent does not operate any server of its own. Tool outputs are placed into the web AI chat you use, so they are handled by that AI provider under its own policy.
  • Recommended Least-Privilege Defaults: WebAgent connects to Nexus from this machine without a token, so Nexus token presets (Read-Only, Read & Write, Full Control) do not limit it; it can use every tool Nexus offers while Nexus runs. Limit it per project instead: authorize test workspaces with Access Mode read-only and command execution disabled, and enable read-write or execution only for verified workspaces. WebAgent has no token field and does not send a token.
  • Automatic Data Desensitization: In-flight regex filters mask API keys, private tokens, passwords, and absolute user paths before sending tool outputs back into the web chat. Pattern-based masking is best-effort and does not guarantee that every secret is removed — review outputs before sending them.
  • Manual Approval by Default: Auto-execute is off by default (2.0.7 also switches it off once on existing installs). With it off, every tool call needs a click on Run. If you turn it on, any text the AI reads (web pages, files, tool output) can lead to tool calls that run without a click.
  • Local Memory Aliases Are Code Execution: memory_* / session_* tool calls are not Nexus tools. WebAgent runs them as a nexus_run_script Node script that reads and writes ~/.nexus/nexus-memory.db, so they need script execution allowed in Nexus and Node 22.5 or later. The confirm card shows this route.
  • Execution Rate-Limiting & Quota: A delay buffer before results are sent back (1s – 6s slider) and a consecutive-step limit (1 – 50 steps, default 4) help stop runaway loops.

7. ☕ Support & Sponsorship

If WebAgent has enhanced your daily AI workflow or boosted your productivity, consider buying the author a coffee ☕! Donations are completely voluntary and do not grant any extra features, proprietary services, or priority support.

ko-fi

💼 Enterprise Sponsorship & Commercial Licensing
For enterprise sponsorship, custom agent integrations, or commercial licensing inquiries (dual-licensing exempt from GPL-3.0 copyleft obligations), feel free to reach out via GitHub Issues or email: [email protected].

WeChat Reward

WeChat Reward
Scan to support via WeChat
Alipay Appreciation

Alipay Appreciation
Scan to support via Alipay
Crypto (USDT / USDC)

Crypto (USDT / USDC)
UID: 1292741809
Binance Pay · Ryan Sunv
Ko-fi

Ko-fi
Buy me a coffee on Ko-fi

Official Payment Channels

Channel Details Verification Method
Crypto (USDT / USDC) UID: 1292741809 · Name: Ryan Sunv Direct internal transfer via Binance Pay
Crypto (USDT, on-chain) Address: TPRrDW8DGsrDmcnWvanTbFz7XEJuywu21i · Network: TRON (TRC-20) From any wallet or exchange — just select the TRON (TRC-20) network when sending
WeChat Reward Official WeChat Reward QR code Scan the QR code in this section
Alipay Appreciation Official Alipay Appreciation QR code Scan the QR code in this section
Ko-fi https://ko-fi.com/ryansun Buy me a coffee via Ko-fi (PayPal)

☕ Every tip, big or small, means the world to me. Your support helps me keep improving this project — making it more complete, more polished, and more powerful. Thank you for helping it grow.

Official Notice

  • Unique Channel: The UID, QR codes and on-chain address listed above are the only official donation channels for this project.
  • No Private Solicitation: The maintainers of this project will never contact you privately via email, messaging apps, or social media to solicit funds, donations, or account credentials.
  • Anti-Impersonation & Reporting: If you encounter any repository, fork, mirror, or distribution claiming to be this project with an inconsistent UID or modified QR code, please report it immediately via GitHub Issues.

Disclaimer

  • Network & Regional Availability: Crypto donations are subject to network handling and platform terms. Please verify whether Binance Pay is compliant and legally available in your region before transferring funds.
  • Taxation & Compliance: Donors are solely responsible for complying with the tax obligations and legal regulations of their local jurisdictions.

8. License

This project is licensed under the GNU General Public License v3.0 (GPL-3.0). See the LICENSE file for details. WebAgent and Nexus are independent projects: Nexus is licensed under AGPL-3.0, WebAgent under GPL-3.0.


Made with ❤️ by ysunyang4 & Open Source Contributors

Jelajahi proyek terkait

Memuat…