explaingit

olmatter/glm-coding-helper

16JavaScriptAudience · developerComplexity · 2/5LicenseSetup · moderate

TLDR

A Tampermonkey userscript paired with a local Python backend that automates the GLM Coding Plan checkout and solves Chinese character-click captchas locally using PaddleOCR and YOLO, without sending images to third-party services.

Mindmap

mindmap
  root((glm-coding-helper))
    What it does
      Checkout automation
      Local captcha solving
      Multi-window support
    Tech stack
      Tampermonkey script
      JavaScript
      Python backend
      PaddleOCR
      YOLO
    How it works
      Local OCR backend
      Browser click automation
      Multi-window runs
    Use cases
      Buy GLM subscription
      Beat sell-out window
Click or tap to explore — scroll the page freely

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Things people build with this

USE CASE 1

Automate the GLM Coding Plan checkout flow to complete the purchase before the subscription sells out each morning.

USE CASE 2

Solve Chinese character-click captchas locally without sending images to any third-party OCR service.

USE CASE 3

Run multiple browser windows at the same time to improve your odds of getting through during the high-traffic sale window.

USE CASE 4

Configure fully automatic captcha confirmation so no manual click is needed during checkout.

Tech stack

JavaScriptPythonPaddleOCRYOLOTampermonkey

Getting it running

Difficulty · moderate Time to first run · 30min

Requires Tampermonkey in Chrome or Edge and a local Python backend, the portable release bundles the full Python environment so no manual Python setup is needed.

Released under GPLv3, you can use, modify, and share it freely, but any modified version you distribute must also be released under GPLv3.

In plain English

This project is a browser automation tool for people trying to buy a limited-availability AI coding subscription called GLM Coding Plan, sold by the Chinese AI company Zhipu. Because the subscription sells out in seconds each morning, the author built a Tampermonkey userscript that works inside Chrome or Edge to automate the checkout steps and handle the obstacles that slow most users down. The core problem the tool addresses is a Chinese character-click captcha that appears during checkout. Instead of sending captcha images to an online service, the script sends them to a local backend running on your own machine. That backend uses two open-source recognition libraries, PaddleOCR and YOLO, to identify which characters to click and then tells the browser where to click. This keeps your captcha images off third-party servers entirely. Setup involves two parts. First, you install the Tampermonkey browser extension and add the userscript from Greasy Fork or the downloaded file. Second, you run a local backend by double-clicking a startup script included in the release package. The backend listens on your machine at a local address, no internet connection is needed for the OCR step once the backend is running. The release comes in two flavors: a portable package that includes the full Python environment, and a smaller online installer that downloads the environment on first run. The script supports running multiple browser windows at the same time, which increases the chance of getting through during the high-traffic window around the sale start time. Configuration options include whether to automatically confirm the captcha, whether to auto-close invalid payment dialogs, and which subscription tier to try first. By default the script takes a conservative approach, clicking captcha characters but leaving final confirmation to the user. The project is built on top of an earlier Greasy Fork script by another author and is released under the GNU GPLv3 license. The accuracy data in the README shows the local OCR pipeline reaching 100 percent on both a hidden test set and a larger stress test of 379 captcha images, compared to around 96 percent for the lighter alternative approach.

Copy-paste prompts

Prompt 1
I installed glm-coding-helper but the local OCR backend won't start when I double-click the startup script. How do I debug what is failing?
Prompt 2
How do I configure glm-coding-helper to automatically confirm the captcha instead of pausing for my click?
Prompt 3
I want to open three browser windows at once with glm-coding-helper active. Do I need any special settings for multi-window mode?
Prompt 4
The Tampermonkey script is installed but it is not detecting the captcha on the checkout page. How do I verify the local backend is reachable from the browser?
Prompt 5
Which configuration option controls which GLM subscription tier glm-coding-helper tries to purchase first?
Open on GitHub → Explain another repo

← olmatter on gitmyhub — every repo by this author, as a profile.

Verify against the repo before relying on details.