diff --git a/CHANNEL.md b/CHANNEL.md new file mode 100644 index 0000000..5bee2a1 --- /dev/null +++ b/CHANNEL.md @@ -0,0 +1,71 @@ +
+ +# @AlStack — the channel this repo comes from + +**[t.me/AlStack](https://t.me/AlStack)** — free-tier farms, live proxy pools and API research. +One operator, one rule: **no numbers without a proof**. Every limit that appears in these repos was +read off a live API call; every farm that ships here was run end to end before it was written up. + +If you only came for `urnet.py`, that is fine — but the next farm will be in the channel first. + +## What lands there + +| type | what it looks like | +|---|---| +| **New farms** | a free tier gets reversed, the caps get measured, a stdlib script gets shipped | +| **Live pools** | working proxy / key pools with `alive` and `unique_ip`, not raw pasted lists | +| **API teardowns** | which endpoints matter, which gates exist, which errors mean "dead" and which mean "wait" | +| **Failures** | what did not work and why — the part other channels skip, and the part that saves the most time | +| **Tooling** | scripts, shims, dashboards, gateways — the plumbing behind the public repos | + +## What it is not + +- not a repost dump — everything is run before it is posted; +- not "1000 free proxies" — dead lists are worthless, the channel prints measurements instead; +- not a paid group — free, public, no referral pyramids. + +## The repos behind the channel + +Everything below is public, stdlib-first, and documented with measured limits: + +- [ur-network-farm](https://git.reformboss.com/reform/ur-network-farm) — 30 GiB/day + 5 residential + proxies per account, zero signup friction (this repo) +- [coarena-autoreg](https://git.reformboss.com/reform/coarena-autoreg) — 10 `coa_` keys per account +- [camb-autoreg](https://git.reformboss.com/reform/camb-autoreg) — 5000-credit TTS workspaces +- [netlify-autoreg](https://git.reformboss.com/reform/netlify-autoreg) — Netlify + AI Gateway keys +- [composio-autoreg](https://git.reformboss.com/reform/composio-autoreg) — `ck_` keys, 10k tool calls/mo +- [bria-autoreg](https://git.reformboss.com/reform/bria-autoreg) — Bria AI image keys +- [wavespeed-autoreg](https://git.reformboss.com/reform/wavespeed-autoreg) — WaveSpeed trials +- [eden-autoreg](https://git.reformboss.com/reform/eden-autoreg) — Eden AI register endpoint +- [river-autoreg](https://git.reformboss.com/reform/river-autoreg) — River.ai WorkOS flow +- [smallest-ai-autoreg](https://git.reformboss.com/reform/smallest-ai-autoreg) — smallest.ai + Waves +- [contextdev-autoreg](https://git.reformboss.com/reform/contextdev-autoreg) — context.dev credits +- [full-parse-kit](https://git.reformboss.com/reform/full-parse-kit) — 287-source parse pipeline +- [form-intake](https://git.reformboss.com/reform/form-intake) — multi-lane form submitter + +## How to read the channel + +1. Post with numbers -> the numbers were measured that day on a live tier. Quotas shift; re-measure. +2. Post with a script -> the script is public in one of the repos above. Read the code, not the promise. +3. Post with a failure -> the useful one. If a gate is described as closed, assume it is still closed. + +## Start here + +**[t.me/AlStack](https://t.me/AlStack)** — subscribe, read the last 20 posts, then run +`python urnet.py farm --count 1`. If it works, you already have 5 residential exits and 30 GiB/day. + +--- + + -> Set-Cookie: ara_invite ✔ credit will land
-GET /auth/oauth/github -> github ... -> ara_session -> credits 100000.0000
-
-GET /auth/oauth/github -> github ... -> ara_session (no invite cookie)
- -> credits 0.0000, ledger empty
-```
-
-Consequences, all verified against `/pool/balance`:
-
-* Signing up from the homepage and *then* opening an invite link does nothing — the
- reward is attached to registration, not to the session.
-* Re-running the flow on an account that already exists does nothing either. The
- ledger keeps exactly one row: `{"kind":"invite","delta":"100000.0000"}`,
- `ledger_has_more:false`.
-* `ara_invite` is `HttpOnly`, so `document.cookie` shows nothing — a browser
- automation "check" of the invite state is meaningless, read `/pool/balance` instead.
-
-Your own referral link is not rendered into the HTML; the page fetches it:
-
-```bash
-python pool_client.py --cookie-file c.txt --no-key --my-invite --json
-# "my_invite": {"code":"XXXXXXXX","link":"https://modeloc.com/i/XXXXXXXX",
-# "reward_invitee":"100000","reward_invitee_enabled":true}
-```
-
-## Traps (each one cost real debugging time)
-
-| # | Symptom | Cause | Fix |
-|---|---------|-------|-----|
-| 1 | `200 already authorized` instead of `?code=` | the HTTP client installed a NoRedirect handler | keep a second opener bound to the **same** cookie jar that follows redirects |
-| 2 | redirect never captured | header case: `location` vs `Location` | case-insensitive header lookup |
-| 3 | `404` right after consent | the consent page has **two** submit buttons named `authorize`: `value="0"` = Cancel, `value="1"` = Authorize | pick the one with `value="1"`, not the first in DOM order |
-| 4 | `422 {"detail":[{"type":"dict_type"}]}` on `/pool/keys` | body not recognised as JSON | send `Content-Type: application/json` explicitly |
-| 5 | `403 error code 1010` on `/pool/v1/*` | Cloudflare TLS fingerprint blocks bare `urllib`/`requests` | `curl_cffi` with `impersonate="chrome"` |
-| 6 | balance looks like `0E+4` | scientific-notation zero from the API | it is a real zero — don't string-replace it into `10000` |
-| 7 | `spendable 0.0000` on a fresh account | the account was created before `ara_invite` existed, or it already existed | open `/i/` **before** `/auth/oauth/github`; the account must be new |
-
-Also worth knowing: a key can exist while `/pool/v1/models` answers 200 and
-`chat/completions` answers 402 — the key is valid, the balance is not.
-`429` from Cloudflare is throttling, not a dead key: retry sequentially with a few
-seconds of delay before writing the key off.
-
-## Install
-
-```bash
-python3 -m venv .venv && . .venv/bin/activate
-pip install -r requirements.txt # curl_cffi (needed for /pool/v1)
-```
-
-## Use
-
-```bash
-# GitHub session cookie from your own browser (DevTools -> Application -> Cookies -> github.com)
-export GH_COOKIE='user_session=...; _gh_sess=...; logged_in=yes'
-
-python pool_client.py --invite YOURCODE --model deepseek-v4-flash
-```
-
-Batch:
-
-```bash
-python pool_client.py --cookie-file cookies.txt --invite YOURCODE --json > out.jsonl
-```
-
-Balance only (no key creation):
-
-```bash
-python pool_client.py --no-key --invite YOURCODE
-```
-
-Behind a proxy: `--proxy http://host:port` (or `HTTPS_PROXY` in env).
-
-## Output
-
-`run_account()` returns a dict:
-
-```json
-{
- "ok": true,
- "gh_login": "octocat",
- "oauth": {"ok": true},
- "balance": {"credits": "...", "spendable": "...", "enrolled": true},
- "key": "pk_...",
- "models": {"http": 200, "models": 144},
- "probe": {"http": 200},
- "secs": 27.4
-}
-```
-
-Secrets stay in your process. Nothing is written to disk unless you redirect stdout.
-
-## Scope and honesty
-
-* This tool does not create GitHub accounts, does not solve captchas and does not
- bypass any verification. You bring a session you already own.
-* It does not include invite codes. If you have one you are entitled to use, pass it.
-* Credit grants, model catalogues and limits are modeloc's business decisions and
- change without notice — the tool reports what the API returns, nothing more.
-* No warranty. Use it on accounts you control and within modeloc's terms.
-
-## Attribution
-
-Built while reverse-engineering the modeloc.com compute pool.
-👻 [иишко](https://t.me/AlStack) — [@AlStack](https://t.me/AlStack)
-
-## License
-
-MIT — see [LICENSE](LICENSE).
\ No newline at end of file
+
+
+
+
+> **Published from the [t.me/AlStack](https://t.me/AlStack) channel** (`@AlStack`) - free-tier farms,
+> live proxy pools and API research. Every tool here gets built, measured and torn apart in the channel
+> before it becomes a repo; the limits in the docs are the ones that were actually hit.
+> What the channel publishes: [CHANNEL.md](CHANNEL.md).
+
+# compute-pool-client
+
+Bring-your-own-credentials client for the [modeloc.com](https://modeloc.com) compute pool.
+One account per run, pure HTTP, no browser automation.
+
+The interesting part is not "register an account" — modeloc has no passwords at all,
+auth is OAuth only (GitHub / NodeLoc / Google). The interesting part is the exact
+sequence that decides whether the account lands with a usable credit balance, and the
+four places where a naive implementation silently fails.
+
+## What the flow actually is
+
+```
+GET /i/ -> Set-Cookie: ara_invite (grants the onboarding credit)
+GET /auth/oauth/github -> 302 github.com/login/oauth/authorize
+GET github authorize -> 200 consent page
+POST github authorize -> fields incl. authorize=1
+ -> 302 modeloc.com/auth/oauth/github/callback?code=...
+ -> Set-Cookie: ara_session
+GET /pool/balance -> {"spendable":"...", "enrolled":bool}
+POST /pool/enroll -> {"enrolled":true,"endpoint":"/pool/v1"}
+POST /pool/keys -> {"key":"pk_..."}
+GET /pool/v1/models -> catalog
+POST /pool/v1/chat/completions -> OpenAI-compatible
+```
+
+## Why the balance comes out `0.0000`
+
+The onboarding credit is not an account feature, it is a **referral registration
+reward**. The server only pays it when the invite cookie is already present at the
+moment the account row is created.
+
+```
+GET /i/ -> Set-Cookie: ara_invite ✔ credit will land
+GET /auth/oauth/github -> github ... -> ara_session -> credits 100000.0000
+
+GET /auth/oauth/github -> github ... -> ara_session (no invite cookie)
+ -> credits 0.0000, ledger empty
+```
+
+Consequences, all verified against `/pool/balance`:
+
+* Signing up from the homepage and *then* opening an invite link does nothing — the
+ reward is attached to registration, not to the session.
+* Re-running the flow on an account that already exists does nothing either. The
+ ledger keeps exactly one row: `{"kind":"invite","delta":"100000.0000"}`,
+ `ledger_has_more:false`.
+* `ara_invite` is `HttpOnly`, so `document.cookie` shows nothing — a browser
+ automation "check" of the invite state is meaningless, read `/pool/balance` instead.
+
+Your own referral link is not rendered into the HTML; the page fetches it:
+
+```bash
+python pool_client.py --cookie-file c.txt --no-key --my-invite --json
+# "my_invite": {"code":"XXXXXXXX","link":"https://modeloc.com/i/XXXXXXXX",
+# "reward_invitee":"100000","reward_invitee_enabled":true}
+```
+
+## Traps (each one cost real debugging time)
+
+| # | Symptom | Cause | Fix |
+|---|---------|-------|-----|
+| 1 | `200 already authorized` instead of `?code=` | the HTTP client installed a NoRedirect handler | keep a second opener bound to the **same** cookie jar that follows redirects |
+| 2 | redirect never captured | header case: `location` vs `Location` | case-insensitive header lookup |
+| 3 | `404` right after consent | the consent page has **two** submit buttons named `authorize`: `value="0"` = Cancel, `value="1"` = Authorize | pick the one with `value="1"`, not the first in DOM order |
+| 4 | `422 {"detail":[{"type":"dict_type"}]}` on `/pool/keys` | body not recognised as JSON | send `Content-Type: application/json` explicitly |
+| 5 | `403 error code 1010` on `/pool/v1/*` | Cloudflare TLS fingerprint blocks bare `urllib`/`requests` | `curl_cffi` with `impersonate="chrome"` |
+| 6 | balance looks like `0E+4` | scientific-notation zero from the API | it is a real zero — don't string-replace it into `10000` |
+| 7 | `spendable 0.0000` on a fresh account | the account was created before `ara_invite` existed, or it already existed | open `/i/` **before** `/auth/oauth/github`; the account must be new |
+
+Also worth knowing: a key can exist while `/pool/v1/models` answers 200 and
+`chat/completions` answers 402 — the key is valid, the balance is not.
+`429` from Cloudflare is throttling, not a dead key: retry sequentially with a few
+seconds of delay before writing the key off.
+
+## Install
+
+```bash
+python3 -m venv .venv && . .venv/bin/activate
+pip install -r requirements.txt # curl_cffi (needed for /pool/v1)
+```
+
+## Use
+
+```bash
+# GitHub session cookie from your own browser (DevTools -> Application -> Cookies -> github.com)
+export GH_COOKIE='user_session=...; _gh_sess=...; logged_in=yes'
+
+python pool_client.py --invite YOURCODE --model deepseek-v4-flash
+```
+
+Batch:
+
+```bash
+python pool_client.py --cookie-file cookies.txt --invite YOURCODE --json > out.jsonl
+```
+
+Balance only (no key creation):
+
+```bash
+python pool_client.py --no-key --invite YOURCODE
+```
+
+Behind a proxy: `--proxy http://host:port` (or `HTTPS_PROXY` in env).
+
+## Output
+
+`run_account()` returns a dict:
+
+```json
+{
+ "ok": true,
+ "gh_login": "octocat",
+ "oauth": {"ok": true},
+ "balance": {"credits": "...", "spendable": "...", "enrolled": true},
+ "key": "pk_...",
+ "models": {"http": 200, "models": 144},
+ "probe": {"http": 200},
+ "secs": 27.4
+}
+```
+
+Secrets stay in your process. Nothing is written to disk unless you redirect stdout.
+
+## Scope and honesty
+
+* This tool does not create GitHub accounts, does not solve captchas and does not
+ bypass any verification. You bring a session you already own.
+* It does not include invite codes. If you have one you are entitled to use, pass it.
+* Credit grants, model catalogues and limits are modeloc's business decisions and
+ change without notice — the tool reports what the API returns, nothing more.
+* No warranty. Use it on accounts you control and within modeloc's terms.
+
+## Attribution
+
+Built while reverse-engineering the modeloc.com compute pool.
+👻 [иишко](https://t.me/AlStack) — [@AlStack](https://t.me/AlStack)
+
+## License
+
+MIT — see [LICENSE](LICENSE).
+
+
+---
+
+
diff --git a/assets/alstack-badge.svg b/assets/alstack-badge.svg
new file mode 100644
index 0000000..96d538b
--- /dev/null
+++ b/assets/alstack-badge.svg
@@ -0,0 +1,17 @@
+
\ No newline at end of file
diff --git a/assets/alstack-banner.svg b/assets/alstack-banner.svg
new file mode 100644
index 0000000..99aeeac
--- /dev/null
+++ b/assets/alstack-banner.svg
@@ -0,0 +1,31 @@
+
\ No newline at end of file