{"success":true,"name":"brimind-chatgpt-web","description":"A task needs ChatGPT itself — a question with photos, PDFs or documents attached, an image made by ChatGPT, a second opinion when Codex says \"usage limit\" — or you must decide which engine (Codex, Codex Luna, ChatGPT web) can still answer today. Use the ChatGPT web function and the engine rules below before opening a browser by hand, writing a new pipeline, or telling the owner that OpenAI is \"out","category":"unitary","path":"unitary/brimind-chatgpt-web/SKILL.md","file":"SKILL.md","content":"---\nname: brimind-chatgpt-web\ndescription: A task needs ChatGPT itself — a question with photos, PDFs or documents attached, an image made by ChatGPT, a second opinion when Codex says \"usage limit\" — or you must decide which engine (Codex, Codex Luna, ChatGPT web) can still answer today. Use the ChatGPT web function and the engine rules below before opening a browser by hand, writing a new pipeline, or telling the owner that OpenAI is \"out of quota\".\n---\n> Imported from [PRIVATE_HOST] `~/unitary/agents/skills/brimind-chatgpt-web`. Paths are relative to `[PRIVATE_HOST]:[PATH]`; run commands there via `ssh [PRIVATE_HOST] 'cd ~/unitary && ...'`. Owner send rules from skill i7-remote-ops still apply.\n\n\n# ChatGPT web, Codex Luna, and what a spent quota means\n\nOwner, 2026-10-09: *\"consider this as fail pls. and pass to the next fallback\"*, *\"add the\nfree plan of codex as a CLI, is use the luna model\"*, *\"make process … when called it do\nsend message including medias if exist, and get the response from chatgpt, and return it\nas result, use the browser that have [EMAIL]\"*, *\"make it used by Omni-cli\nsafecode and add it as proposition here in the list of CLIs\"*. Everything below was run\nfor real on 09/10 and its result checked.\n\n## Three OpenAI doors, three separate quotas (same Plus account, [EMAIL])\n\n| Door | What it is | Quota | When it is spent |\n|---|---|---|---|\n| **Codex** (`codex`) | Codex CLI, `gpt-6.1-sol` etc. | Plus: 5-hour + weekly windows | « You've hit your usage limit … try again at Oct 14th, 2026 9:47 PM » |\n| **Codex Luna** (`luna`) | Codex CLI on the hidden model `gpt-reserve` (\"You're now using Luna, a faster model for simpler tasks\") | **its own weekly window** — not unlimited | the same message, for `gpt-reserve` |\n| **ChatGPT web** (`gptweb`) | the chat of chatgpt.com in the rail browser (CDP :9223) | the chat's own meter, apart from Codex | the page says so; the call fails with that text |\n\nA Plus model refused by Codex can still answer on the web chat on the same day: the\nmeters are separate. \"OpenAI is out\" is never true until all three have failed.\n\n## A spent quota is a failure, and it is remembered\n\n`agents/tools/codex-run.cjs` reads the reset time out of the refusal and writes it in\n`.run/codex-limit.json` (buckets `plus` and `luna`). Until that time a Codex turn fails\n**at once**, with no round trip (`codex gpt-6.1-sol: usage limit, not run before …`), and\nthe next ticked engine answers. A successful turn clears its bucket. Check it:\n\n```bash\ncat .run/codex-limit.json        # absent or past \"until\" = Codex is tried again\n```\n\nNever \"retry Codex in a loop\", and never report a limit as a bug: read the file.\n\n## The Team tab chain (agents/tools/engines.cjs) — 10 engines\n\n`claude`, `claude2`, `zen`, `omni`, `go`, `or`, `orfree`, `codex`, **`luna`**, **`gptweb`**.\n- **Codex Luna** follows the Codex tick when never set, and sits right after Codex: a spent\n  Plus quota hands the turn to Luna (~5 s an answer). Same box, guard and policeman as Codex.\n- **ChatGPT web** is a *proposition*: unticked by default. When ticked it runs the Omni CLI\n  alone on `chatgptweb/sol` (GPT-5.6 Sol, low) or `chatgptweb/gpt-6` (`gptwebModel` in the\n  registry). Slow: ~80 s per Omni step (09/10: a 2-step task took 159 s), one browser for everyone (calls queue behind\n  `.run/chatgpt-web.lock`). Good for a turn nothing else can take, not for volume.\n- The Omni CLI and SafeCode take it directly: `omni code \"…\" --model chatgptweb/sol`.\n\n## Ask ChatGPT from code or a shell — with files\n\n```js\nimport { askChatGPT } from './agents/method/chatgpt.mjs';\nconst r = await askChatGPT('Que montre cette photo ? Recopie les prix.', { files: ['menu.jpg', 'devis.pdf'] });\n// r = { ok, code, text, markdown, files, model, fiche, shot, why? } — never throws\nif (r.ok) use(r.markdown || r.text); else report(r.why);\n```\n\n```bash\nnode agents/method/chatgpt.mjs \"question\" --file photo.jpg --file devis.pdf [--json]\nnode agents/method/chatgpt.mjs \"Génère une icône plate : un soleil jaune sur fond bleu\" --json   # image → r.files[].file (PNG on disk)\n```\n\n- **Files**: any number, any type ChatGPT takes (images, PDF, Word, Excel, txt, audio,\n  video). Each must exist on disk; it waits for every upload before sending. A missing,\n  refused or slow file is a named failure (`ok:false`, `why`).\n- **Images it makes** come back as files on disk in `r.files` (`agents/method/data/web/chatgpt-<stamp>/`).\n- **Long prompts** (up to hundreds of KB) are pasted, not typed; multi-line text is safe.\n- **Queue**: one call at a time for the whole machine. Waiting more than 30 min = `ok:false`.\n- Exit codes (shell): 0 done · 1 refused / not ready in time · 2 unknown (session closed,\n  page changed → `node agents/method/web.mjs login --service chatgpt`; do not loop).\n- `--temporary` keeps the question out of the account's history (the Omni engine uses it).\n\n## What it is not for\n\n- Volume: one browser, ~30–60 s a call. Batches go to Codex rails or Omni.\n- Secrets: never attach a `.env`, a key or a cookie file; never paste one in a prompt.\n- Client-facing text: the owner's rules still apply (two facts, the client's own link,\n  never name Suno). ChatGPT is a tool, never mentioned to a client.\n- Account risk: automated use of chatgpt.com is against OpenAI's terms; heavy traffic could\n  get the Plus account flagged, and Codex with it. Use it when it is the right tool, not by default.\n","linked_files":[],"origin":"brimind","owner_id":null,"source":"router"}