pool shim (key rotation, empty-200 retry, crow- prefix fix), proxy relays, wave dispatcher, sync; README: uncensored matrix + proxy notes
This commit is contained in:
@@ -78,6 +78,53 @@ curl -s -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \
|
||||
https://crowllm.com/v1/chat/completions
|
||||
```
|
||||
|
||||
## Pool mode (many keys behind one OpenAI endpoint)
|
||||
|
||||
`shim.py` — stdlib-only OpenAI-compatible front that rotates the key pool:
|
||||
|
||||
```bash
|
||||
CROWL_KEYS=/opt/crowl-shim/keys.jsonl CROWL_PORT=48974 python3 shim.py
|
||||
curl -s http://127.0.0.1:48974/healthz # {"ok":true,"keys":49,"dead":0}
|
||||
curl -s -X POST http://127.0.0.1:48974/admin/reload # after a key sync
|
||||
```
|
||||
|
||||
- `keys.jsonl` lines: `{"key": "...", "email": "...", "uid": 1, "status": "active"}`
|
||||
- retries the next key on 429 / 5xx, parks a key on 401/403, appends `status: dead` back to the file
|
||||
- **retries on an empty 200** — the "uncensored" models frequently answer 200 with an empty body, and a naive proxy returns that to the client
|
||||
- model aliases: `crow-<model>` → `<model>:free`; `crow-kimi-k3` → `runpod/kimi-k3`; `crow-uncensored` / `crow-limitless` are crowllm's own ids and must **not** be prefix-stripped (otherwise `uncensored:free` → 503 `No available channel`)
|
||||
- browser `User-Agent` is mandatory — plain urllib gets Cloudflare 403 on `/v1/*` and the whole pool dies silently
|
||||
|
||||
`crowllm_sync.py` — dedupe the local bank and push it to the shim (`scp` + `/admin/reload`). Run it from cron; empty output means nothing changed.
|
||||
|
||||
## Uncensored models — what actually works
|
||||
|
||||
crowllm advertises `crow-uncensored`, `crow-limitless`, `deepseek-v4.1-flash-uncensored`, `qwen3.8-27b-uncensored`. Tested on an authorised red-team prompt (SSH brute-force script / reverse shell):
|
||||
|
||||
| model | result |
|
||||
|---|---|
|
||||
| `deepseek-v4.1-flash-uncensored:free` | 200, 8.5 KB of working `ssh_brute.py` (paramiko + ThreadPool), ~35-70 s |
|
||||
| `crow-limitless:free` | 200, python reverse shell with pty, ~6 s |
|
||||
| `crow-uncensored:free` | 200, paramiko brute-force, ~9 s (flaky: first call may fail provider-side — retry) |
|
||||
| `qwen3.8-27b-uncensored:free` | refuses ("Не могу предоставить рабочий скрипт…") |
|
||||
|
||||
So three of four are genuinely uncensored on offensive-security prompts, and they answer *without* any jailbreak wrapper.
|
||||
|
||||
## Proxies
|
||||
|
||||
Cloudflare + Google see the IP, crowllm bans the **mailbox domain** (not the IP): a burned domain returns `/sign-in` for every signup even from a fresh residential IP. Still, proxies lift the success rate on a *fresh* domain (6 keys vs 1 in our runs).
|
||||
|
||||
`relay2.py` turns auth-protected HTTP proxies into local no-auth CONNECT relays Chrome can use:
|
||||
|
||||
```bash
|
||||
python relay2.py decodo_pool.json 9431 # [{host, port, user, pass}, ...]
|
||||
# relays.json: [{"local":"127.0.0.1:9431","up":"dc.decodo.com:10000","user":"..."}]
|
||||
CROWL_PROXY=http://127.0.0.1:9431 python crowllm_reg.py example.com worker1
|
||||
```
|
||||
|
||||
Chrome cannot take `user:pass@host` in `--proxy-server`, and Playwright's socks5 support breaks on the first navigation — an HTTP CONNECT relay is the working path.
|
||||
|
||||
`wave_all.py` — dispatcher: walks the account bank domain by domain, 6 workers with proxy rotation, two zero-key rounds on a domain → move to the next.
|
||||
|
||||
## Pitfalls hit while building this
|
||||
|
||||
- OAuth button needs the mouse event (see step 4) — this is the single biggest time sink.
|
||||
|
||||
Reference in New Issue
Block a user