@gruu6y/page-clean-login 0.0.0-stage → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (269) hide show
  1. package/LICENSE +21 -0
  2. package/README.en.md +298 -0
  3. package/README.md +302 -2
  4. package/assets/icon.svg +6 -0
  5. package/assets/icons/NOTICES.md +12 -0
  6. package/assets/icons/ai21.svg +1 -0
  7. package/assets/icons/ai302-color.svg +1 -0
  8. package/assets/icons/ai360-color.svg +1 -0
  9. package/assets/icons/aihubmix-color.svg +1 -0
  10. package/assets/icons/aionui.svg +1 -0
  11. package/assets/icons/air.svg +4 -0
  12. package/assets/icons/alibaba-color.svg +1 -0
  13. package/assets/icons/alibabacloud-color.svg +1 -0
  14. package/assets/icons/alma.png +0 -0
  15. package/assets/icons/anthropic.svg +1 -0
  16. package/assets/icons/antigravity-color.svg +1 -0
  17. package/assets/icons/anyscale-color.svg +1 -0
  18. package/assets/icons/app-alma.png +0 -0
  19. package/assets/icons/app-cc-switch.png +0 -0
  20. package/assets/icons/apple-touch-icon.png +0 -0
  21. package/assets/icons/aside.svg +28 -0
  22. package/assets/icons/astrbot.svg +1 -0
  23. package/assets/icons/atomcode.png +0 -0
  24. package/assets/icons/aws.svg +1 -0
  25. package/assets/icons/azure-color.svg +1 -0
  26. package/assets/icons/azureai-color.svg +1 -0
  27. package/assets/icons/baichuan-color.svg +1 -0
  28. package/assets/icons/baidu-color.svg +1 -0
  29. package/assets/icons/baiducloud-color.svg +1 -0
  30. package/assets/icons/bailian-color.svg +1 -0
  31. package/assets/icons/baseten.svg +1 -0
  32. package/assets/icons/bedrock-color.svg +1 -0
  33. package/assets/icons/burncloud-color.svg +1 -0
  34. package/assets/icons/bytedance-color.svg +1 -0
  35. package/assets/icons/cerebras.svg +1 -0
  36. package/assets/icons/chatglm-color.svg +1 -0
  37. package/assets/icons/cherryin-color.svg +1 -0
  38. package/assets/icons/chutes.svg +1 -0
  39. package/assets/icons/cindy.png +0 -0
  40. package/assets/icons/claude-color.svg +1 -0
  41. package/assets/icons/claudecode-color.svg +1 -0
  42. package/assets/icons/cline.svg +1 -0
  43. package/assets/icons/cloudflare-color.svg +1 -0
  44. package/assets/icons/codebuddy-color.svg +1 -0
  45. package/assets/icons/codex-color.svg +1 -0
  46. package/assets/icons/cohere-color.svg +1 -0
  47. package/assets/icons/cometapi-color.svg +1 -0
  48. package/assets/icons/commandcode.svg +1 -0
  49. package/assets/icons/copilot-color.svg +1 -0
  50. package/assets/icons/coze.svg +1 -0
  51. package/assets/icons/crush.png +0 -0
  52. package/assets/icons/curl.svg +1 -0
  53. package/assets/icons/cursor.svg +1 -0
  54. package/assets/icons/deepinfra-color.svg +1 -0
  55. package/assets/icons/deepmind-color.svg +1 -0
  56. package/assets/icons/deepseek-color.svg +1 -0
  57. package/assets/icons/deveco-color.svg +12 -0
  58. package/assets/icons/devin.svg +1 -0
  59. package/assets/icons/doubao-color.svg +1 -0
  60. package/assets/icons/empryo-color.svg +1 -0
  61. package/assets/icons/factory.svg +1 -0
  62. package/assets/icons/favicon.svg +1 -0
  63. package/assets/icons/featherless-color.svg +1 -0
  64. package/assets/icons/fireworks-color.svg +1 -0
  65. package/assets/icons/friendli.svg +1 -0
  66. package/assets/icons/fx.svg +1 -0
  67. package/assets/icons/gemini-color.svg +1 -0
  68. package/assets/icons/geminicli-color.svg +1 -0
  69. package/assets/icons/gemma-color.svg +1 -0
  70. package/assets/icons/giteeai.svg +1 -0
  71. package/assets/icons/github.svg +1 -0
  72. package/assets/icons/githubcopilot.svg +1 -0
  73. package/assets/icons/glama.svg +1 -0
  74. package/assets/icons/gmicloud.svg +1 -0
  75. package/assets/icons/google-color.svg +1 -0
  76. package/assets/icons/googlecloud-color.svg +1 -0
  77. package/assets/icons/goose.svg +1 -0
  78. package/assets/icons/grok.svg +1 -0
  79. package/assets/icons/groq.svg +1 -0
  80. package/assets/icons/hanako.png +0 -0
  81. package/assets/icons/hermes.svg +1 -0
  82. package/assets/icons/huawei-color.svg +1 -0
  83. package/assets/icons/huaweicloud-color.svg +1 -0
  84. package/assets/icons/huggingface-color.svg +1 -0
  85. package/assets/icons/hunyuan-color.svg +1 -0
  86. package/assets/icons/hyperbolic-color.svg +1 -0
  87. package/assets/icons/icon-512.png +0 -0
  88. package/assets/icons/iflytekcloud-color.svg +1 -0
  89. package/assets/icons/index.json +1200 -0
  90. package/assets/icons/inference.svg +1 -0
  91. package/assets/icons/infinigence-color.svg +1 -0
  92. package/assets/icons/internlm-color.svg +1 -0
  93. package/assets/icons/jcode.svg +1 -0
  94. package/assets/icons/jina.svg +1 -0
  95. package/assets/icons/kilo.svg +1 -0
  96. package/assets/icons/kilocode.svg +1 -0
  97. package/assets/icons/kimi-code-desktop.png +0 -0
  98. package/assets/icons/kimi.svg +1 -0
  99. package/assets/icons/kiro-color.svg +1 -0
  100. package/assets/icons/kling-color.svg +1 -0
  101. package/assets/icons/lambda.svg +1 -0
  102. package/assets/icons/leptonai-color.svg +1 -0
  103. package/assets/icons/liquid.svg +1 -0
  104. package/assets/icons/liveagent-color.svg +1 -0
  105. package/assets/icons/llmapi.svg +1 -0
  106. package/assets/icons/lmstudio.svg +1 -0
  107. package/assets/icons/lody.png +0 -0
  108. package/assets/icons/longcat.svg +1 -0
  109. package/assets/icons/magpie.svg +1 -0
  110. package/assets/icons/meta-color.svg +1 -0
  111. package/assets/icons/metaai-color.svg +1 -0
  112. package/assets/icons/microsoft-color.svg +1 -0
  113. package/assets/icons/mimocode.svg +1 -0
  114. package/assets/icons/minimax-color.svg +1 -0
  115. package/assets/icons/mistermorph-color.svg +1 -0
  116. package/assets/icons/mistral-color.svg +1 -0
  117. package/assets/icons/mlx-serve.png +0 -0
  118. package/assets/icons/modelscope-color.svg +1 -0
  119. package/assets/icons/monica-color.svg +1 -0
  120. package/assets/icons/moonshot.svg +1 -0
  121. package/assets/icons/morph-color.svg +1 -0
  122. package/assets/icons/mothx.png +0 -0
  123. package/assets/icons/nebius.svg +1 -0
  124. package/assets/icons/newapi-color.svg +1 -0
  125. package/assets/icons/nousresearch.svg +1 -0
  126. package/assets/icons/nova-color.svg +1 -0
  127. package/assets/icons/novita-color.svg +1 -0
  128. package/assets/icons/nvidia-color.svg +1 -0
  129. package/assets/icons/ollama.svg +1 -0
  130. package/assets/icons/omlx.svg +1 -0
  131. package/assets/icons/omo.svg +1 -0
  132. package/assets/icons/omp.svg +1 -0
  133. package/assets/icons/openai.svg +1 -0
  134. package/assets/icons/openchamber.svg +11 -0
  135. package/assets/icons/openclaw.svg +1 -0
  136. package/assets/icons/opencode.svg +1 -0
  137. package/assets/icons/openmausbot.svg +1 -0
  138. package/assets/icons/openrouter.svg +1 -0
  139. package/assets/icons/openwebui.svg +1 -0
  140. package/assets/icons/parasail.svg +1 -0
  141. package/assets/icons/penguin-color.svg +1 -0
  142. package/assets/icons/perplexity-color.svg +1 -0
  143. package/assets/icons/phala-color.svg +1 -0
  144. package/assets/icons/pi.svg +1 -0
  145. package/assets/icons/pipellm-color.svg +5 -0
  146. package/assets/icons/poe.svg +1 -0
  147. package/assets/icons/ppio-color.svg +1 -0
  148. package/assets/icons/prime-agent.svg +1 -0
  149. package/assets/icons/qiniu-color.svg +1 -0
  150. package/assets/icons/qoder.svg +1 -0
  151. package/assets/icons/qwen-color.svg +1 -0
  152. package/assets/icons/qwenpaw.svg +1 -0
  153. package/assets/icons/raycast.svg +1 -0
  154. package/assets/icons/reasonix-color.svg +48 -0
  155. package/assets/icons/reka.svg +1 -0
  156. package/assets/icons/replicate.svg +1 -0
  157. package/assets/icons/roocode.svg +1 -0
  158. package/assets/icons/rtk.png +0 -0
  159. package/assets/icons/sambanova-color.svg +1 -0
  160. package/assets/icons/sensenova-color.svg +1 -0
  161. package/assets/icons/siliconcloud-color.svg +1 -0
  162. package/assets/icons/snow.png +0 -0
  163. package/assets/icons/snowflake-color.svg +1 -0
  164. package/assets/icons/sophnet-color.svg +1 -0
  165. package/assets/icons/spark-color.svg +1 -0
  166. package/assets/icons/stepfun-color.svg +1 -0
  167. package/assets/icons/straico-color.svg +1 -0
  168. package/assets/icons/submodel-color.svg +1 -0
  169. package/assets/icons/t3code.svg +4 -0
  170. package/assets/icons/targon-color.svg +1 -0
  171. package/assets/icons/tencent-color.svg +1 -0
  172. package/assets/icons/tencentcloud-color.svg +1 -0
  173. package/assets/icons/tiangong-color.svg +1 -0
  174. package/assets/icons/together-color.svg +1 -0
  175. package/assets/icons/trae.svg +1 -0
  176. package/assets/icons/typesafe.png +0 -0
  177. package/assets/icons/upstage-color.svg +1 -0
  178. package/assets/icons/venice-color.svg +1 -0
  179. package/assets/icons/vercel.svg +1 -0
  180. package/assets/icons/vertexai-color.svg +1 -0
  181. package/assets/icons/vllm-color.svg +1 -0
  182. package/assets/icons/volcengine-color.svg +1 -0
  183. package/assets/icons/voyage-color.svg +1 -0
  184. package/assets/icons/vscode.svg +1 -0
  185. package/assets/icons/wenxin-color.svg +1 -0
  186. package/assets/icons/windsurf.svg +1 -0
  187. package/assets/icons/workbuddy-color.svg +1 -0
  188. package/assets/icons/workersai-color.svg +1 -0
  189. package/assets/icons/xai.svg +1 -0
  190. package/assets/icons/xiaomimimo.svg +1 -0
  191. package/assets/icons/xinference-color.svg +1 -0
  192. package/assets/icons/yi.svg +1 -0
  193. package/assets/icons/yuanbao-color.svg +1 -0
  194. package/assets/icons/yylx.svg +5 -0
  195. package/assets/icons/zai.svg +1 -0
  196. package/assets/icons/zcode.png +0 -0
  197. package/assets/icons/zed.svg +1 -0
  198. package/assets/icons/zenmux.svg +1 -0
  199. package/assets/icons/zeroone.svg +1 -0
  200. package/assets/icons/zhipu-color.svg +1 -0
  201. package/assets/icons/zoo-code.png +0 -0
  202. package/assets/screenshot-accounts.png +0 -0
  203. package/assets/screenshot-guide.png +0 -0
  204. package/assets/screenshot-hosting.png +0 -0
  205. package/assets/screenshot-providers.png +0 -0
  206. package/assets/screenshot-proxies.png +0 -0
  207. package/bin/clean-login.mjs +19 -0
  208. package/index.mjs +69 -0
  209. package/lib/account-identity.mjs +447 -0
  210. package/lib/account-import.mjs +310 -0
  211. package/lib/account-keys.mjs +92 -0
  212. package/lib/account-proxies.mjs +456 -0
  213. package/lib/account-prune.mjs +197 -0
  214. package/lib/account-records.mjs +164 -0
  215. package/lib/account-summary.mjs +45 -0
  216. package/lib/agent-cli.mjs +686 -0
  217. package/lib/agent-surface.mjs +254 -0
  218. package/lib/asset-registry.mjs +360 -0
  219. package/lib/browser-environment.mjs +1089 -0
  220. package/lib/browser-launcher.mjs +881 -0
  221. package/lib/camoufox-loader.mjs +173 -0
  222. package/lib/identity-check-browser-host.mjs +101 -0
  223. package/lib/identity-check.mjs +517 -0
  224. package/lib/issue-report.mjs +233 -0
  225. package/lib/magpie-catalog.mjs +123 -0
  226. package/lib/magpie-logins.mjs +107 -0
  227. package/lib/magpie-plugins.mjs +515 -0
  228. package/lib/market-install.mjs +222 -0
  229. package/lib/method-inputs.mjs +148 -0
  230. package/lib/native-signin.mjs +287 -0
  231. package/lib/open-external.mjs +110 -0
  232. package/lib/paths.mjs +12 -0
  233. package/lib/provider-icons.mjs +218 -0
  234. package/lib/provider-registration.mjs +138 -0
  235. package/lib/provider-registry.mjs +157 -0
  236. package/lib/provider-sources.mjs +741 -0
  237. package/lib/proxies.mjs +658 -0
  238. package/lib/proxy-score.mjs +572 -0
  239. package/lib/proxy-target.mjs +135 -0
  240. package/lib/proxy-test.mjs +742 -0
  241. package/lib/renew-hosting.mjs +698 -0
  242. package/lib/score-browser-host.mjs +98 -0
  243. package/lib/server.mjs +2223 -0
  244. package/lib/signin-browser-host.mjs +64 -0
  245. package/lib/signin-egress.mjs +128 -0
  246. package/lib/signin-flow.mjs +1159 -0
  247. package/lib/signin-writeback.mjs +248 -0
  248. package/package.json +73 -4
  249. package/page/boot.js +204 -0
  250. package/page/icon.svg +4 -0
  251. package/page/index.html +43 -0
  252. package/ui/account-provider-filter.js +99 -0
  253. package/ui/account-state.js +95 -0
  254. package/ui/account-view.js +257 -0
  255. package/ui/app.js +7701 -0
  256. package/ui/asset-view.js +85 -0
  257. package/ui/embed-gate.js +66 -0
  258. package/ui/environment-state.js +40 -0
  259. package/ui/guide-content.js +756 -0
  260. package/ui/host-theme.js +57 -0
  261. package/ui/index.html +774 -0
  262. package/ui/provider-state.js +260 -0
  263. package/ui/proxy-filter.js +117 -0
  264. package/ui/proxy-score.js +44 -0
  265. package/ui/proxy-state.js +98 -0
  266. package/ui/proxy-target.js +156 -0
  267. package/ui/reload-guard.js +63 -0
  268. package/ui/signin-state.js +227 -0
  269. package/ui/style.css +1855 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Gruu6y
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.en.md ADDED
@@ -0,0 +1,298 @@
1
+ # Magpie Clean Login · 干净登录
2
+
3
+ [简体中文](README.md) · **English**
4
+
5
+ [![tag](https://img.shields.io/github/v/tag/Gruu6y/magpie-clean-login?style=flat-square)](https://github.com/Gruu6y/magpie-clean-login/tags)
6
+ [![ci](https://github.com/Gruu6y/magpie-clean-login/actions/workflows/ci.yml/badge.svg)](https://github.com/Gruu6y/magpie-clean-login/actions/workflows/ci.yml)
7
+ [![license](https://img.shields.io/badge/license-MIT-blue?style=flat-square)](LICENSE)
8
+
9
+ **One sentence: when you sign in to several accounts inside magpie, this makes each one look like its own computer on its own network.**
10
+
11
+ If you only ever use one account, magpie alone is enough. If you have several — two Claude accounts, three WorkBuddy accounts — this is what you need.
12
+
13
+ ![The providers page: four tabs, the one-time login browser setup, and provider cards you can sign in to directly](assets/screenshot-providers.png)
14
+
15
+ > **This is an unofficial plugin.** Built and maintained by [Gruu6y](https://github.com/Gruu6y/magpie-clean-login), **not** published by magpie or `magpie-community`. All the code is public — read it, open issues, send pull requests.
16
+
17
+ > **New — multi-platform:** the login browser now supports **Windows x64, macOS (Apple Silicon + Intel) and Linux (x64 / arm64)** — a ~150 MB slim Camoufox downloaded with the plugin and verified by sha256, installed once, no manual browser setup.
18
+
19
+ <a id="contents"></a>
20
+
21
+ ## Contents
22
+
23
+ - [What problem this actually solves](#what)
24
+ - [Why use it](#why)
25
+ - [Requirements](#requirements)
26
+ - [Install](#install)
27
+ - [Quick start](#quick-start)
28
+ - [The four tabs](#the-four-tabs)
29
+ - [Features](#features)
30
+ - [Command line and agents](#cli)
31
+ - [Troubleshooting](#troubleshooting)
32
+ - [Privacy and where data lives](#privacy)
33
+ - [Contributing](#contributing)
34
+ - [License](#license)
35
+
36
+ <a id="what"></a>
37
+
38
+ ## What problem this actually solves
39
+
40
+ Signing in to an AI service inside magpie normally goes: a browser opens → you type your credentials → you are signed in → the credential lands in magpie.
41
+
42
+ With one account that is fine. **The trouble starts with the second one.**
43
+
44
+ Providers (Claude, OpenAI, the various Chinese services) record which computer and which network a sign-in came from. They look at more than your IP: they read the browser fingerprint — your GPU model, your installed fonts, your screen resolution, the tiny differences in how your machine renders a canvas. Together those are close to a serial number for your computer.
45
+
46
+ So:
47
+
48
+ - You sign in to account A in the same browser you use for account B — the provider sees **two accounts on one computer**.
49
+ - Worse is **renewal**. When a credential expires and refreshes, it travels through the same browser identity again, which reminds the provider every so often that these two accounts belong together.
50
+ - When one account gets in trouble, the others are easy to take down with it.
51
+
52
+ **What Clean Login does is simple: it puts every account in its own browser.**
53
+
54
+ | | Without Clean Login | With Clean Login |
55
+ | --- | --- | --- |
56
+ | Browser identity | Every account shares one fingerprint | One per account, pinned after sign-in |
57
+ | Network exit | Follows your system / magpie global setting | Each account uses the proxy you picked |
58
+ | Signing out and back in | Can look like a brand-new computer | Same computer as before, identity kept |
59
+ | Renewal | One identity showing up over and over | Each on its own identity and exit |
60
+
61
+ <a id="why"></a>
62
+
63
+ ## Why use it
64
+
65
+ **Because magpie does not do this itself.** magpie's maintainers do not want to work against the providers, so nothing in magpie hides the fact that one machine signed in to many accounts. That is not a bug — it is their choice.
66
+
67
+ Clean Login fills exactly that gap, in three ways:
68
+
69
+ 1. **One account is one machine.** Browser profile, cookies and fingerprint are never shared. Signing out does not throw the identity away; the next sign-in reuses it, so the provider sees an old computer coming back rather than a new one appearing. When a genuinely new machine is what you want, use **Renew fingerprint** on the account row.
70
+ 2. **The exit you pick is the exit that is used.** Both the login browser **and** the requests the plugin makes itself go through the proxy you chose. Picking "direct" really means direct — it never quietly falls back to magpie's global proxy.
71
+ 3. **No provider list to maintain.** It reads the provider plugins you already installed and magpie's market catalog. Add a provider to magpie and a card appears here.
72
+
73
+ > **The boundary, stated plainly:** one account, one fingerprint, one exit. What a provider does with its service is still up to the provider — **this plugin bypasses no verification and does not register accounts for you.**
74
+
75
+ <a id="requirements"></a>
76
+
77
+ ## Requirements
78
+
79
+ | | |
80
+ | --- | --- |
81
+ | Host | [magpie](https://usemagpie.ai) with the Plugins panel |
82
+ | OS | **Windows x64 · Linux x64 / arm64 · macOS (Apple Silicon and Intel)** — the login browser is a slim Camoufox build downloaded with the plugin for these platforms |
83
+ | Runtime | Bun **≥ 1.4.2** |
84
+ | Disk | ~153–176 MB download depending on the platform, ~1 GB free during install — once |
85
+ | Network | Only for actions you start: proxy tests, the trust-score and identity-check pages, the runtime download, and the provider's own sign-in |
86
+
87
+ macOS notes: **Apple Silicon (M-series) is fully verified** — end-to-end tested on a real arm64 environment (download, launch, visible window, fonts and rendering) using the `darwin/arm64` archive; it is the recommended setup. **Intel Macs** use the `darwin/x64` archive (asset choice follows the process architecture, so an x64 Node under Rosetta 2 picks it automatically), but the Intel build only got a Rosetta 2 smoke test, not real-hardware verification — best-effort support. Other platforms are not supported yet; ask on the [issue tracker](https://github.com/Gruu6y/magpie-clean-login/issues) if you need one.
88
+
89
+ The macOS slim archive drops `Camoufox.app/Contents/Resources/fonts/` (~2.1 GB) from the upstream zip and keeps the one stock sentinel font — a deliberate, documented exception to the "never modify the official bundle" rule. The upstream macOS zip ships no code signature and the plugin does not notarize either; Gatekeeper does not block the launch of a non-quarantined download. The builder is [`scripts/build-slim-artifact.mjs`](scripts/build-slim-artifact.mjs) and the artifacts' provenance is in the release's `inventory.json`.
90
+
91
+ <a id="install"></a>
92
+
93
+ ## Install
94
+
95
+ 1. Open magpie → **Plugins** → **Discover** → **Unofficial**.
96
+ 2. Find **Clean Login** by **Gruu6y** and click **Install**. If the list has not synced, click **Retry** — magpie caches whatever GitHub told it.
97
+ 3. Open **Clean Login** from the sidebar. You get the page in the screenshot above.
98
+
99
+ Every release is tagged in this repository (`v0.2.x` now, earlier `v0.1.x`); the [tag list](https://github.com/Gruu6y/magpie-clean-login/tags) is the version history.
100
+
101
+ <a id="quick-start"></a>
102
+
103
+ ## Quick start
104
+
105
+ Four steps and you have one cleanly signed-in account. About five minutes, most of it waiting for a browser to download.
106
+
107
+ ### Step 1: prepare the login browser (once)
108
+
109
+ At the top of the providers page there is a **Login browser setup** block. Click **Prepare browser** and let it finish.
110
+
111
+ - The download is **~153–176 MB** depending on the platform, verified against a pinned sha256, fetched once.
112
+ - When it is done the block reads **Ready**. The first screenshot shows the badge as **Not installed**: the images were generated against an empty browser root, which is exactly what a first run looks like.
113
+ - If it fails you can retry; nothing else is affected.
114
+
115
+ This installs a **separate browser**, not the one you use every day. Every sign-in happens inside it, so your normal browser stays untouched.
116
+
117
+ ### Step 2: add a proxy exit
118
+
119
+ Switch to **Proxy IPs** → click **Add Proxy** at the top right → fill in a name, the type (HTTP / HTTPS / SOCKS5), host and port, plus username and password if it needs them.
120
+
121
+ Then click **Test** on that row. It really connects out through that proxy and tells you **the exit IP, the region, and the latency in milliseconds**.
122
+
123
+ ![The Proxy IPs page: the test target picker at the top right, measured results per exit, region filters and row actions](assets/screenshot-proxies.png)
124
+
125
+ Three details worth reading in that screenshot:
126
+
127
+ - The **Test target** picker at the top right can be "Generic (exit check)" or a specific provider. Pick a provider and the number is the latency **to that provider's API host**, not to a generic test site.
128
+ - The `JP 静态 01` row reads `~512 ms` with `qoder-cn · TLS` underneath. **The tilde means something:** only the TLS handshake completed and no HTTP response came back, so that number is handshake time, not real request latency. The plugin will not dress it up as a nicer number.
129
+ - A failed test **never** falls back to a direct connection silently. It shows you why it failed.
130
+
131
+ ### Step 3: pick a provider and sign in
132
+
133
+ Back on **Providers**, find the service you want and click **Add account** on its card.
134
+
135
+ In the dialog:
136
+
137
+ 1. **Pick a proxy** — the dropdown shows each exit's measured latency and puts the ones **this provider has not used yet** first.
138
+ 2. If the provider needs a value first (a phone number, a site address, a key), the dialog gives you the field. Fill it in, then click **Start sign-in**.
139
+ 3. For browser sign-in a separate window opens. Sign in there as usual; it closes itself when done and the account appears in magpie. Want out? Just close that window.
140
+ 4. If the provider sends a one-time code, type it into the same dialog and click **Submit code**.
141
+
142
+ On success you get: **Signed in. The credential was written to magpie.**
143
+
144
+ > No **Add account** button on a card? The card says why — usually the provider's plugin is not installed in magpie yet, or that plugin exposes no drivable sign-in method.
145
+
146
+ ### Step 4: check that it really is clean
147
+
148
+ Switch to **Accounts**. You see the account you just signed in to, its pinned fingerprint, and the exit used last time.
149
+
150
+ Once you have several accounts, **View by provider** narrows the table to one provider: the main row carries the busiest ones and **More providers** holds the rest, searchable by name or id. It combines with the status filter, the search box and sorting, and **Clear filters** resets all of them at once.
151
+
152
+ For a second opinion, click **Check** on that row, then **Start check**. The plugin visits the third-party site `who.1ms.dog` through that account's exit and reports an A/B/C/D verdict.
153
+
154
+ ![The Accounts page: the provider filter, the A/B/C/D legend, each account's pinned fingerprint, and the region and exit of its last sign-in](assets/screenshot-accounts.png)
155
+
156
+ - **A clean · usable** / **B usable · traces** / **C consider another exit** / **D do not use this exit**
157
+ - A C or D means that exit is not clean enough. Switch proxies and sign that account in again.
158
+ - To make the account **genuinely a different computer** (rather than just a different exit), click **Renew fingerprint** on that row: it signs the same account in again on a freshly drawn fingerprint and deletes the old browser profile. The account and its credential stay. An ordinary "Sign in again" reuses the old fingerprint — the two are not the same thing.
159
+
160
+ > **This is the third-party site who.1ms.dog's verdict. It is not a provider risk-control conclusion, and it is not a fingerprint score we built ourselves.** It is a second opinion, nothing more.
161
+
162
+ <a id="the-four-tabs"></a>
163
+
164
+ ## The four tabs
165
+
166
+ **Providers** — which services you can sign in to. Cards come from your installed plugins and magpie's market catalog, and you start a sign-in right on the card. The search box matches name, id or plugin name.
167
+
168
+ **Proxy IPs** — manage the exits used for sign-in and later requests, and test them. Filter by region, latency range, or a tag in the name (residential / static). See step 2 above.
169
+
170
+ **Accounts** — every account you signed in to, the browser fingerprint pinned to it, and what the third-party site thinks of that identity. See step 4 above.
171
+
172
+ **Guide** — an in-page manual written for a first-time user: eleven sections covering why this plugin exists, preparing the browser, adding a proxy, signing an account in, reading the identity verdict, hosted renewal, and handing the whole thing to your own agent when you would rather not click. Written separately in all four languages, not machine-translated from English. Plain text: no network, no downloads, nothing executed.
173
+
174
+ ![The Guide tab: the first of eleven in-page sections, explaining why this plugin exists](assets/screenshot-guide.png)
175
+
176
+ > **About these screenshots:** all four are rendered by this repository's current code in a real Chrome — nothing hand-drawn, nothing composited, no page element substituted. Four things in them are demo data, because the alternative would put the generating machine's details in a public repository: the **account and proxy records** use documentation-reserved IPs (`203.0.113.x`, `198.51.100.x`, `192.0.2.x`) and invented account names, and the **install path and free-disk figure in the login-browser panel** are neutral values (`C:\Users\Public\…` and a round 256 GB) rather than this machine's OS account name and how full its drive is. The badge state, the download size and the required space are computed by the shipped code. The provider cards, logos and interface text are real. The generator is [`scripts/shoot-readme-screenshots.mjs`](scripts/shoot-readme-screenshots.mjs); run `bun scripts/shoot-readme-screenshots.mjs` to reproduce all four.
177
+
178
+ <a id="features"></a>
179
+
180
+ ## Features
181
+
182
+ **Signing in**
183
+
184
+ - Reads your installed provider plugins and offers **Add account** for any that expose a runnable sign-in method (a login page, a form, a one-time code). One plugin exposing several providers gets one card each.
185
+ - Providers built into magpie have no plugin to read, so their entry point goes through magpie's own sign-in. When magpie's login page is closed, that sign-in prints the link and Clean Login opens it for you.
186
+ - When a provider offers several paths (per-site sign-in, team edition, reusing a desktop session, pasting a key), you choose, and each path is labelled with its type before it starts.
187
+ - **Report a problem** on a card opens a GitHub issue with the title and body already written; you only click **Create** ([how it works](docs/reporting.md)).
188
+
189
+ **Hosted renewal (off by default)**
190
+
191
+ - On the Accounts tab, press **Host renewal** on a row and then **Enable hosting**. Only that one account is hosted. **Everything is off by default**, installing the plugin enables nothing, and there is no "enable all".
192
+ - Once enabled, Clean Login **takes over this account's renewal**: shortly **before** the credential expires it re-runs that account's own sign-in silently in the background -- the **same browser fingerprint** it was pinned with at sign-in (the same `identity.json` and the same persistent profile), through the **same exit** recorded at that login (a direct login stays direct), headless, with no window. The new credential goes back to magpie through exactly the same write-back path a manual sign-in uses.
193
+ - **Renewing early is safe**: a hosted renewal is a complete sign-in (authorize, then callback) and **never touches the refresh token**, so there is no single-use token to race magpie for. The only shared resource is the credential slot in `plugin-auth.json`, written through magpie's own locked write-back. Once the credential is fresh, magpie's own at-expiry refresh has nothing to do; if magpie renews first, hosting reads the new expiry and moves its next attempt instead of renewing twice.
194
+ - **The lead scales with the credential's lifetime**: an hourly token is renewed 15 minutes early, a daily one about 72 minutes early, and a fortnight- or month-long one **five days** early -- a long-lived sign-in is worth renewing early enough that a transient failure leaves days to retry instead of lapsing. A successful renewal records how long the new credential lives, and the next schedule uses that real lifetime.
195
+ - Only one renewal runs at a time, and never alongside a sign-in you started yourself or an identity check. Attempts are at least 30 minutes apart, with **no daily cap** -- a short-lived credential legitimately needs many renewals a day, and a cap would strangle exactly those accounts. A transient failure never switches hosting off just because it happened twice: while the credential is still valid it keeps retrying with backoff inside the renewal window, and only **repeated failures after the expiry has passed** count as the account being down.
196
+ - Repeated failures, or a sign-in that **needs an answer from you** (a captcha, a device code, a one-time code), **switch hosting off by itself** and write the reason in the dialog — enabling it again is your click. A banner at the top of the page says so as well, without you having to go looking on the Accounts tab. A renewal that comes back as a different account than the one this fingerprint is pinned to is never written back.
197
+ - The dialog can **Renew now** (ignores the expiry clock, keeps every guard above), **Stop renewal**, **Disable hosting**, and shows the last 10 renewal records.
198
+
199
+ ![The hosted-renewal dialog: an enabled account, its credential expiry, the exit and fingerprint it uses, and the renewal record](assets/screenshot-hosting.png)
200
+
201
+ **Exits and identity**
202
+
203
+ - The proxy you pick when adding an account is used for the whole sign-in: the browser window, and the requests the plugin makes to mint links and exchange codes. **A SOCKS exit can only carry the browser window**, not the plugin's own requests — the runtime's proxy support is HTTP/HTTPS only.
204
+ - The exit dropdown shows each exit's measured latency and puts the ones this provider has not used first.
205
+ - You can fetch a Claude trust score (`ip.net.coffee/claude`, 0–100) through that proxy and keep it on the row.
206
+ - With a provider selected as the test target, the number is the round trip to its API host. When only the TLS handshake completes and no HTTP response arrives, that number is explicitly marked as handshake time (`~`) rather than passed off as request latency.
207
+ - Signing an account out does not throw away its browser identity; signing in again reuses the same one. When you really do want a different machine, **Renew fingerprint** on the account row signs it in on a new fingerprint, deletes the old profile, and keeps the account and credential.
208
+
209
+ **Everyday use**
210
+
211
+ - Every provider card carries the brand mark magpie itself publishes, recoloured for the theme. Drawing them needs no network fetch: the set is copied into `assets/icons/`, where it came from is recorded in `assets/icons/index.json`, and the attribution is in `assets/icons/NOTICES.md`.
212
+ - **Four languages**: English, 简体中文, 繁體中文, 日本語, following magpie's language setting.
213
+ - Light and dark follow magpie's theme setting, and switching while the page is open is picked up immediately.
214
+ - Everything stays on this computer: no account, no telemetry, and no outbound request just to draw a logo.
215
+
216
+ <a id="cli"></a>
217
+
218
+ ## Command line and agents
219
+
220
+ **Not sure where to start? Tell your agent and let it drive.**
221
+
222
+ This page is built for someone holding a mouse, but the plugin also ships a command line and an agent interface. The agent you already talk to can drive the same service directly:
223
+
224
+ ```sh
225
+ bun bin/clean-login.mjs agent # one compact JSON summary of the whole service
226
+ bun bin/clean-login.mjs providers # provider cards only
227
+ bun bin/clean-login.mjs proxies # exits only, no credentials
228
+ bun bin/clean-login.mjs accounts # accounts only
229
+ ```
230
+
231
+ Accounts and exits are fully drivable from the command line, with no page open:
232
+
233
+ ```sh
234
+ bun bin/clean-login.mjs proxies add home-01 http 127.0.0.1 7102 # store an exit
235
+ bun bin/clean-login.mjs accounts import plan # preview magpie's accounts
236
+ bun bin/clean-login.mjs accounts import run --only <provider>#<recordId>
237
+ bun bin/clean-login.mjs accounts exit <provider> <key> --mode custom --proxy <proxyId>
238
+ bun bin/clean-login.mjs accounts note <provider> <key> spare
239
+ bun bin/clean-login.mjs accounts delete <provider> <key>
240
+ ```
241
+
242
+ The read-only preview and the real import run through the same function, so the plan and the import can never disagree about which accounts exist; without `--only` the whole plan is imported.
243
+
244
+ The CLI looks for the service on `127.0.0.1:3492` by default (override with `--port` or `--url`), reads the per-process page token from the page the service itself serves, and never prints that token. It has no dependency beyond the runtime's `fetch`, so it starts in milliseconds and never loads the browser modules.
245
+
246
+ Two things keep a program from having to poll:
247
+
248
+ - **`GET /api/agent`** returns a compact, self-describing summary: version, service port, command catalogue, and the merged provider cards, proxies, accounts and running-job state. It omits the four-language descriptions the page needs and never includes passwords.
249
+ - **`?wait=<ms>`** on the asynchronous routes (`/api/signin`, `/api/native-signin`, `/api/proxy-score`, `/api/environment/job`, `/api/accounts/:provider/:key/check`) blocks inside the service until the job settles or the deadline runs out. One request replaces a polling loop. States that need the caller to act (a one-time code, a value to paste) end the wait immediately.
250
+
251
+ ```sh
252
+ bun bin/clean-login.mjs signin start --provider workbuddy --proxy hk-home-1 --wait
253
+ bun bin/clean-login.mjs signin code 123456
254
+ bun bin/clean-login.mjs proxy score hk-home-1 --wait
255
+ bun bin/clean-login.mjs accounts prune # sweep directories that own no credential
256
+ bun bin/clean-login.mjs accounts hosting # renewal policies and the job in flight
257
+ bun bin/clean-login.mjs env cancel # stop the login-browser download
258
+ bun bin/clean-login.mjs score cancel # stop the trust-score check
259
+ ```
260
+
261
+ Run `bun bin/clean-login.mjs help` for the full command list. A remote service (`magpie web`) has no loopback page to read, so pass `--token` explicitly there.
262
+
263
+ <a id="troubleshooting"></a>
264
+
265
+ ## Troubleshooting
266
+
267
+ | Symptom | What to do |
268
+ | --- | --- |
269
+ | A provider card has no **Add account** | The card says why. Market entries need their plugin installed in magpie first; plugin-only providers need a plugin that exposes a browser sign-in method. |
270
+ | The login browser reads *not installed* / the download failed | The first run fetches a 153–176 MB archive for your platform (~176 MB on Windows x64, ~155 MB on macOS x64, ~147 MB on macOS arm64, ~159 MB on Linux x64, ~153 MB on Linux arm64). Check disk space and network, then retry from the providers page. The archive is sha256-verified before it is unpacked. |
271
+ | Sign-in fails with `no_url` or `method_input_required` | The plugin wants a value (phone number, site, key) that the dialog did not collect. Fill that field and try again; if it keeps failing use **Report a problem** on the card. |
272
+ | A proxy test fails | The test opens a real connection through that exit and never falls back to direct. Check host, port, credentials, and whether that exit is allowed to reach the target. |
273
+ | There is a `~` in front of the latency | That is handshake time, not request latency: the target completed the TLS handshake but returned no HTTP response (a WAF blocking the probe is the usual cause). Try another exit. |
274
+ | A signed-in account looks like a new machine | Check its pinned fingerprint on the **Accounts** page. Signing in again reuses the same identity; only deleting the account data removes it. |
275
+ | You want an account to really be a new machine | Use **Renew fingerprint** on its signed-in row in **Accounts**: it signs the same account in again on a freshly drawn fingerprint and deletes the old browser profile. The account and its credential stay. An ordinary "Sign in again" reuses the old fingerprint. |
276
+ | The identity check returns C or D | That exit is not clean. Switch proxies and sign that account in again. |
277
+ | Anything else | Open an [issue](https://github.com/Gruu6y/magpie-clean-login/issues) saying what you expected, what happened, and which provider or proxy was involved. A screenshot of the error helps. **Never paste a real token or proxy password into an issue.** |
278
+
279
+ <a id="privacy"></a>
280
+
281
+ ## Privacy and where data lives
282
+
283
+ - No telemetry and no account. The only network calls are the ones you start: proxy tests, the trust-score page, the identity-check page, the runtime download, and the provider's own sign-in.
284
+ - Proxies, accounts, fingerprints and browser profiles live in `~/.config/magpie/magpie-clean-login/` (override with `MAGPIE_CLEAN_LOGIN_DATA`; the config root itself with `MAGPIE_CONFIG_DIR`). The market catalog is read from `~/.cache/magpie/` (`MAGPIE_CACHE_DIR`). Hosted-renewal switches and recent records live in `renew-hosting.json` in that same directory; it holds switches, times and outcomes, never a credential.
285
+ - The login browser unpacks to `%LOCALAPPDATA%/magpie-clean-login/camoufox` on Windows, `~/Library/Caches/magpie-clean-login/camoufox` on macOS, and `$XDG_CACHE_HOME/magpie-clean-login/camoufox` on Linux (all overridable with `MAGPIE_CLEAN_LOGIN_BROWSER_DIR`).
286
+ - Stored proxy passwords never reach the page and are never logged. The page token is per-process and exists only in the page the service serves.
287
+
288
+ <a id="contributing"></a>
289
+
290
+ ## Contributing
291
+
292
+ Pull requests are welcome. The test suite is the contract: `bun test` runs all of it, and a change without a test is a change nobody will dare trust later. Touching `lib/`, `ui/`, `page/` or `index.mjs` does **not** require a version bump of your own -- the merger assigns the version at the merge point; `node scripts/check-version-bump.mjs` still refuses a downgrade or a number already released. Read [AGENTS.md](AGENTS.md) and [docs/releasing.md](docs/releasing.md) before you start.
293
+
294
+ <a id="license"></a>
295
+
296
+ ## License
297
+
298
+ [MIT](LICENSE) © 2026 Gruu6y. [Tags / version history](https://github.com/Gruu6y/magpie-clean-login/tags) · [Reporting a problem](docs/reporting.md) · [CI](https://github.com/Gruu6y/magpie-clean-login/actions/workflows/ci.yml)