Files

91 lines
4.3 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<div align="center">
<img src="assets/alstack-banner.svg" width="900" alt="@AlStack - free-tier farms, live proxy pools, API research">
<br>
<a href="https://t.me/AlStack"><img src="assets/alstack-badge.svg" alt="Telegram: @AlStack"></a>
</div>
<!-- ALSTACK-PROMO -->
> **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).
# coarena-autoreg
Авторегистрация и ферма ключей на coarena.ai с купленных Google-аккаунтов + OpenAI-совместимый ротатор.
## Что делает
1. Берёт Google-аккаунты (`10 min - 10 day` почта с bulkmail.shop) и логинится через Google OAuth в coarena.
2. Забирает **до 10 ключей на аккаунт** (`/api/me/keys`) — потолок сервиса.
3. Складывает полные ключи `coa_<32hex>` в банк (`keys_bank2.jsonl`), фейлы — в `keys_fail.jsonl`.
4. Ротатор `coa_shim.py` поднимает один OpenAI-совместимый фронт на `:48960`, кольцует ключи, кулдаунит мёртвые, маппит имена моделей на реальный каталог coarena.
5. new-api (iishko) забирает этот фронт каналом `coa-gw-01`.
## Каталог coarena (проверено GET /api/v1/models)
```
deepseek-v4-1-flash-1017 gemini-3-8-flash gemini-4-argon gemini-4-carbon
gpt-6-1-sol gpt-6-1-terra gpt-6-astra gpt-6-luna grok-4-7 kimi-k3-1-pro
```
claude-* у coarena отключён апстримом (`turned off`), glm/mimo/qwen3.8-max в каталоге отсутствуют — они в `MODELS_OFF` ротатора и отдают честный 400.
## Файлы
| Файл | Назначение |
|------|-----------|
| `coa_one.py` | воркер на один аккаунт: Chrome CDP → Google OAuth → 10 ключей |
| `coa_cron_wave.py` | порция аккаунтов для крона (N за прогон, воркеры, lock, state) |
| `coa_sync_cron.py` | сбор ключей из банка и заливка на прод-ротатор |
| `coa_shim.py` | прод-ротатор (OpenAI-совместимый, `/v1/chat/completions`) |
| `coa_wave.py`, `coa_lot.py`, `coa_pool_sync.py`, `acct_usage.py` | вспомогательные |
| `proxy_multi.py`, `coa_rot_watch.py` | прокси-слой и сторож |
| `bm.py` | закупка аккаунтов (bulkmail.shop API v2) |
## Запуск
```bash
export COA_HOME=/path/to/work
export COA_N=18 COA_WORKERS=3 COA_BUDGET=540
python coa_cron_wave.py
```
Ротатор:
```bash
COA_PORT=48960 COA_KEYS=/opt/coa-shim/coa_keys.txt python3 coa_shim.py
```
## Грабли (проверено)
- Воркеров **не больше 3**: на 4 Chrome рвёт CDP, аккаунт сгорает (`not_logged`).
- Аккаунты живут часы — регистрировать надо сразу после покупки.
- Часть аккаунтов отдаёт `409 key_limit` (10 ключей уже выбраны) — это норма, пропускается.
- Имена моделей у coarena с дефисами: `gpt-6.1-sol` → `gpt-6-1-sol`; запрос с точкой даёт 404.
- `400 usage limits ... regain access on <date>` — ключ нельзя ретраить, только кулдаун до даты.
- Прокси обязателен: один IP быстро упирается в лимит регистраций.
## Очередь/бюджет
Куплено через `bm.py buy <lot> <n>`; порог цены и выбор лота — скилл `bulkmail-cheapest-lot`.
---
<div align="center">
<a href="https://t.me/AlStack"><img src="assets/alstack-badge.svg" alt="Telegram: @AlStack"></a>
**More free-tier farms, live proxy pools and API teardowns - [t.me/AlStack](https://t.me/AlStack)**
<sub>Measured on live tiers, published with the failures included. If this repo saved you an evening,
star it and tell the channel what you built with it.</sub>
</div>