argon-bridge-9router
Supports GitHub Copilot models via 9Router providers as configurable fallback targets.
Uses a persistent Playwright Chromium session with a Google AI Pro login to interact with Gemini 4 Argon through the Gemini Web UI and expose it via an OpenAI-compatible local proxy.
Supports local Ollama models via 9Router as configurable fallback targets.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@argon-bridge-9router Ask Gemini 4 Argon to review this code and suggest performance improvements."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
π Argon Bridge for 9Router & MCP
A Playwright Web-to-API Bridge & Model Context Protocol (MCP) Server designed to unlock Gemini 4 Argon on Google AI Pro (Jio Bundle / Gemini Advanced) accounts and seamlessly integrate it with 9Router alongside multi-provider fallbacks including Claude Opus 4.6, Claude Sonnet 4.6, Qoder, OpenCode, and GPT-OSS 120B.
π‘ Why Does This Project Exist?
On Google's Cloud Code / Antigravity OAuth API route (ag/), access to gemini-4-argon is strictly gated behind Google AI Ultra / Enterprise tiers. Users with Google AI Pro subscriptions (such as the 18-month Jio bundle) receive 404/403 errors when calling Argon via APIβeven though they can access Argon through the Gemini Web UI (gemini.google.com) and hold generous API quotas for partner models (Claude Opus 4.6, Claude Sonnet 4.6, and GPT-OSS 120B).
This project bridges that gap with a 3-in-1 Hybrid Architecture:
Playwright Persistent Engine: Automates a persistent Chromium session using your Google AI Pro login profile to interact with Gemini 4 Argon directly via the Web UI.
OpenAI-Compatible Local Proxy (
Port 20129): Exposes a standard/v1/chat/completionsendpoint so 9Router can register Playwright as a custom OpenAI-compatible upstream provider.Dual-Defense & Multi-Provider MCP Server: Exposes an MCP tool to your IDE (Cursor, Cline, Roo Code, Claude Desktop) that prioritizes Gemini 4 Argon (Playwright) and automatically falls back to 9Router models (Antigravity Claude, Qoder, Qwen, DeepSeek, etc.) if the browser is busy or rate-limited.
Related MCP server: AIAgentMCP
π Supported Models & Providers (Including Qoder!)
Because this project connects directly to 9Router's unified OpenAI-compatible endpoint, it supports every provider and model configured in your 9Router instance:
Playwright Web Bridge:
playwright-gemini-4-argon(via Local Port20129)Antigravity (
ag/):ag/claude-opus-4-6-thinking,ag/claude-sonnet-4-6-thinking,ag/claude-sonnet-4-6,ag/gpt-oss-120b-mediumQoder (
qoder/):qoder/qwen3-coder-plus,qoder/claude-3-7-sonnet, or any model available under your Qoder account in 9RouterOther 9Router Providers: Kiro (
kiro/), OpenCodeZen (opencode/), GitHub Copilot (gh/), Cursor, DeepSeek, Groq, and local Ollama models.
You can dynamically pass any model ID via the MCP tool's target_model parameter (e.g., "target_model": "qoder/qwen3-coder-plus") or customize the FALLBACK_MODELS environment variable.
π οΈ Quick Installation
# 1. Clone the repository & install dependencies
git clone https://github.com/faizalzn/argon-bridge-9router-mcp.git
cd argon-bridge-9router-mcp
npm install
# 2. Install the Playwright Chromium binary
npm run setup-browserπ Step 1: One-Time Google (Jio) Authentication
Before running the bridge in headless background mode, save your Google AI Pro login session once:
npm run loginA Chromium window will open automatically and navigate to
https://gemini.google.com/app.Sign in with your Google AI Pro (Jio) account.
Select Argon from the model selector menu in the top-left corner.
Close the browser window. Your cookies and session state are permanently saved in
~/.9router-jio-playwright-profile.
π Step 2: Connect with 9Router Dashboard
Start 9Router (
9router start) and open the dashboard athttp://localhost:20128.Add a new OpenAI-Compatible Provider:
Name:
jio-playwrightBase URL:
http://localhost:20129/v1API Key:
sk-local-playwright(any placeholder string)Model ID:
playwright-gemini-4-argon
(Optional) Connect your Qoder or Antigravity accounts under the Providers tab in 9Router.
Create a Smart Combo named
jio-max-non-geminiwith the following priority order:jio-playwright/playwright-gemini-4-argon(Tier 1: Gemini 4 Argon via Web Bridge)ag/claude-opus-4-6-thinking(Tier 2: Claude Opus via Jio Quota)ag/claude-sonnet-4-6-thinking(Tier 3: Claude Sonnet Thinking via Jio Quota)qoder/qwen3-coder-plus(Tier 4: Qoder Coding Fallback)ag/gpt-oss-120b-medium(Tier 5: GPT-OSS 120B Safety Net)
π₯οΈ Step 3: Add to MCP Client (Cursor / Cline / Claude Desktop)
Copy the configuration from mcp.config.example.json into your IDE's MCP settings file (claude_desktop_config.json, .cursor/mcp.json, or cline_mcp_settings.json):
{
"mcpServers": {
"argon-bridge-9router": {
"command": "node",
"args": ["/ABSOLUTE/PATH/TO/argon-bridge-9router-mcp/index.js"],
"env": {
"NINE_ROUTER_URL": "http://localhost:20128/v1",
"NINE_ROUTER_KEY": "YOUR_9ROUTER_API_KEY",
"JIO_COMBO_NAME": "jio-max-non-gemini",
"FALLBACK_MODELS": "jio-max-non-gemini,ag/claude-opus-4-6-thinking,ag/claude-sonnet-4-6-thinking,qoder/qwen3-coder-plus,ag/gpt-oss-120b-medium",
"PLAYWRIGHT_BRIDGE_PORT": "20129",
"HEADLESS": "true"
}
}
}
}βοΈ MCP Tool Parameters (ask_argon_playwright_9router)
Parameter | Type | Required | Description |
|
| Yes | The coding task, architecture query, or debugging prompt. |
|
| No |
|
|
| No | Force a specific 9Router model or provider (e.g., |
|
| No | Custom system instruction for the model. |
β οΈ Disclaimer
This project is an unofficial community tool created for personal development and research purposes. Automating web interfaces via Playwright may be subject to the respective platform's Terms of Service. Never commit your .9router-jio-playwright-profile directory or .env credentials to public repositories.
π License
MIT License β Free to use, modify, and distribute.
Available Tools
1 toolask_argon_playwright_9routerB
Execute coding, architecture, or debugging prompts via Gemini 4 Argon (Playwright Web Bridge) or any 9Router provider/model (including Qoder, Antigravity Claude Opus/Sonnet 4.6, Qwen, DeepSeek, or custom Smart Combos).
Inputs: prompt (required), mode, target_model, system_prompt.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
TDQS
Scored across 1 tool
There is only one tool on the server, so there is nothing for an agent to confuse it with. Its purpose (proxying a prompt to a chosen provider/model) is stated explicitly.
The single name uses snake_case and a clear verb ('ask_'), but it redundantly bakes in the server/bridge name and a provider ('argon_playwright_9router'), making it long and vendor-specific. With only one tool there is no cross-tool pattern to break.
A router spanning many providers/models plus a Playwright web bridge is a lot of surface compressed into one opaque passthrough tool. There is no way to discover providers/models or check bridge health without invoking the single call.
The core 'send a prompt' operation exists, but the obvious lifecycle around it is missing: listing available providers/models/combos, checking bridge or session status, and any error/retry or cancellation path. Agents are left with a single fire-and-hope entry point.
Related MCP Connectors
Account-less MCP access to 45 Gemini models & autonomous agents via L402, x402, and MPP.
Proxy Gemini (Vertex AI) completions wrapped in OpenTelemetry trace spans; returns the answer plus t
OpenAI-compatible BYOK LLM gateway: per-task routing, shadow evaluation, promotion gates.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables browser automation via the Model Context Protocol, supporting headless Playwright and extension bridges for controlling existing Chrome and Firefox tabs.9,076 npmISC
- FlicenseNot gradedqualityDmaintenanceEnables browser automation and testing using Playwright through the Model Context Protocol.-
- FlicenseNot gradedqualityCmaintenanceEnables interaction with Gemini's web interface through MCP, with real-time streaming of responses and reasoning, stealth browser automation, proxy rotation, and session persistence.-
- AlicenseNot gradedqualityCmaintenanceEnables Google Antigravity and MCP-compatible clients to delegate complex coding and reasoning tasks to a high-reasoning Gemini model through a persistent Chromium session, preserving Gemini Web history and audit logs.MIT