A browser extension (Manifest V3) that serves two distinct purposes for ChatAI Console:
- Google sign-in bridge — enables OAuth sign-in for Claude.ai, 1min.AI, and Flowith.io accounts without requiring manual cookie or token extraction.
- Token extraction — extracts JWT tokens from ChatAIBotPro cookies for seamless authentication.
- Cloudflare clearance relay — silently relays the
cf_clearancecookie back to Console when the 1min.AI API returns a Cloudflare challenge during normal chat usage. This is not a sign-in flow.
Disabled by default. Enable the bridge from the popup when signing in or when actively chatting through 1min.AI. Content scripts exit immediately when the toggle is off.
Google only issues sign-in tokens to origins registered with a given OAuth
client ID. Claude's, 1min.AI's, and Flowith's client IDs are registered for
their own domains — not localhost. This extension bridges that gap: sign-in
happens from the correct origin, and the resulting credential is forwarded to
your local ChatAI Console server. Nothing is sent anywhere else.
These run only when you explicitly click a "Sign in with Google" button inside ChatAI Console. The content scripts do nothing on ordinary visits to these sites.
- Click Sign in with Google for Claude in ChatAI Console.
- Console registers a pending session (
state) and opensclaude.ai. content_claude.jspollsGET /api/oauth/claude/ext-pending.- On detection, it calls
google.accounts.oauth2.initCodeClientusing Claude's own registered GIS client (already loaded onclaude.ai) and opens a Google sign-in popup. - Google returns a one-time authorization code to the callback.
- The script POSTs
{ state, code }toPOST /api/oauth/claude/ext-callback. - Console exchanges the code for a Claude session and fills the account form.
- Click Sign in with Google for 1min.AI in ChatAI Console.
- Console registers a pending session and opens
app.1min.ai. content_1minai.jspollsGET /api/oneminai/ext-pending.- On detection, it fetches the Google auth URL from Console and opens a sign-in popup.
- After authentication, Google redirects to
app.1min.ai/#access_token=ya29.…&refresh_token=…. - The landing-page handler reads tokens from
location.hashand POSTs{ state, access_token, refresh_token, user_id }toPOST /api/oauth/flowith/ext-callback. - Console exchanges the access token for a 1min.AI JWT and saves the account.
- Click Sign in with Google for Flowith in ChatAI Console.
- Console registers a pending session and opens
flowith.io. content_flowith.jspollsGET /api/oauth/flowith/ext-pending.- On detection, it fetches the Supabase authorize URL from Console and opens a sign-in popup.
- After authentication, Supabase redirects to
flowith.io/#access_token=eyJ…&refresh_token=…. - The landing-page handler reads tokens from
location.hashand POSTs{ state, access_token, refresh_token, user_id }toPOST /api/oauth/flowith/ext-callback. - Console parses the JWT and saves the Flowith account.
- Click Sign in with ChatAIBotPro in ChatAI Console.
- Console registers a pending session and opens
chataibot.pro. content_chataibotpro.jspollsGET /api/oauth/chataibotpro/ext-pending.- On detection, it reads the
tokencookie fromchataibot.pro. - The script POSTs
{ state, token }toPOST /api/oauth/chataibotpro/ext-callback. - Console stores the JWT token and saves the ChatAIBotPro account.
This mechanism is automatic and background-only. It is not triggered by user action; it activates only when Console encounters a Cloudflare challenge while making a 1min.AI API call on your behalf during normal chat usage.
- Console sends a request to the 1min.AI API. The API returns a Cloudflare challenge (HTTP 403/503) instead of the expected response.
- Console detects the block, registers a pending CF challenge with a unique
statetoken, and opens an overlay showingapp.1min.aiin a popup so you can complete the Cloudflare checkbox. - The content script on
app.1min.aipollsGET /api/oneminai/cf-pending(only while the bridge is enabled) and detects the waitingstate. - The script sends a
get_cf_clearancemessage to the background service worker — the only browser context with access to thecookiesAPI. - The background worker reads the
cf_clearancecookie forhttps://1min.ai(set by Cloudflare after you complete the checkbox) and returns its value. - The script POSTs
{ state, cf_clearance }toPOST /api/oneminai/cf-callback. - Console stores the cookie on the account and retries the original blocked request automatically. The overlay closes.
The cf_clearance cookie is read only when Console explicitly registers a
pending challenge — never during ordinary browsing.
- Open
chrome://extensions - Enable Developer mode
- Click Load unpacked and select this directory
- Open
about:debugging#/runtime/this-firefox - Click Load Temporary Add-on and select
manifest.json
Firefox temporary add-ons must be reloaded after each browser restart.
Sign in to Claude: Enable bridge → Add Account (Claude) → Sign in with Google for Claude → complete popup → disable bridge when done.
Sign in to 1min.AI: Enable bridge → Add Account (1min.AI) → Sign in with Google for 1min.AI → complete popup → disable bridge when done.
Sign in to Flowith: Enable bridge → Add Account (Flowith) → Sign in with Google for Flowith → complete popup → disable bridge when done.
Sign in to ChatAIBotPro: Enable bridge → Add Account (ChatAIBotPro) → Sign in with ChatAIBotPro → token is extracted automatically → disable bridge when done.
Cloudflare challenge (1min.AI): Keep the bridge enabled while chatting via 1min.AI. If a challenge appears, complete the Cloudflare checkbox in the popup that Console opens. The relay is automatic — you do not need to click anything in the extension.
| Property | Detail |
|---|---|
| No external servers | All data goes only to your configured Console URL. |
| No background polling when disabled | Content scripts exit immediately when the toggle is off. |
| No persistent token storage | Credentials are relayed once and not stored by the extension. |
| Cookies on demand only | cf_clearance is read only when Console signals an active Cloudflare challenge. |
| State verification | Every flow uses a random state generated by Console to match responses to the correct request. |
| No analytics | Zero telemetry of any kind. |
| Permission | Reason |
|---|---|
https://claude.ai/* |
Content script for Claude sign-in |
https://app.1min.ai/* |
Content script for 1min.AI sign-in and CF clearance relay |
https://flowith.io/* |
Content script for Flowith sign-in |
https://chataibot.pro/* |
Content script for ChatAIBotPro token extraction |
| Console URL | Communicate with ChatAI Console |
storage |
Persist enabled toggle, consent flag, server URL |
tabs |
Open Console in a new tab from the popup |
cookies |
Read cf_clearance for app.1min.ai in the background service worker — only when Console signals a pending Cloudflare challenge |
| File | Purpose |
|---|---|
manifest.json |
Extension manifest (MV3) |
background.js |
Service worker — first-install onboarding; cf_clearance cookie relay |
content_claude.js |
Claude.ai — GIS authorization-code sign-in flow |
content_1minai.js |
1min.AI — hash-redirect token sign-in flow + Cloudflare clearance relay |
content_flowith.js |
Flowith.io — Supabase hash-redirect JWT sign-in flow |
content_chataibotpro.js |
ChatAIBotPro — token cookie extraction |
popup.html / popup.js |
Extension popup |
onboarding.html / onboarding.js |
First-install consent and setup page |
gsi_client.js |
Bundled Google Identity Services client (used by Claude flow) |
Console shows offline → Make sure python app.py is running at the
configured URL.
Claude popup opens but nothing is captured → Allow popups for claude.ai.
Enable the bridge before clicking sign-in.
1min.AI token not captured → Enable the bridge before clicking sign-in.
Confirm the redirect URL contains #access_token=.
Cloudflare overlay never resolves → The bridge must be enabled. Complete
the full Cloudflare checkbox in the popup Console opened. If the cookie still
does not arrive, reload app.1min.ai in the popup with the bridge on.
Flowith token not captured → Enable the bridge before initiating sign-in
in Console. Confirm the post-auth URL contains #access_token=.
ChatAIBotPro token not captured → Enable the bridge before clicking sign-in.
Make sure you're logged in to chataibot.pro. Check that the token cookie exists
in DevTools → Application → Cookies.
MIT — see LICENSE