Skip to content

v0.1.0 — initial release

Choose a tag to compare

@SyntaxSmith SyntaxSmith released this 30 Apr 10:15
· 30 commits to main since this release

Programmatic access to ChatGPT (incl. Pro) from Node, by translating between an auth-holder Chrome page and a clean API.

📦 Install: npm i @syntaxsmith/rosetta · 🌐 npmjs.com/package/@syntaxsmith/rosetta

Highlights

  • Pro support — runConversation({ model: "gpt-5-5-pro" }) follows the bootstrap → WS second-leg pipeline and aggregates the live CoT until completion. Verified live (29s for trivial prompts).
  • Instant models — gpt-5-3 and friends return in seconds via the same path.
  • Streaming — optional onChunk(delta) callback emits assistant tokens as they arrive.
  • Multi-turn — pass conversationId + parentMessageId, or use recall: "thread" for cross-call persistence.
  • Concurrency — each call spawns its own Chrome tab; ~0.8 parallelism factor on instant models.
  • Idle-timeout watchdog — long thinks stay alive as long as the WS sends heartbeats (default 90 s of silence to give up); no wall-clock cap kills active CoT.

CLI

npx -y @syntaxsmith/rosetta help

rosetta run "<prompt>"             instant
rosetta run --pro "<prompt>"       Pro thinking
rosetta run --stream "<prompt>"    live tokens to stdout
rosetta run --recall <name> "..."  cross-session named thread
rosetta threads / forget / probe   manage state, list models

MCP integration

Ships a second binary, rosetta-mcp, that speaks Model Context Protocol over stdio. Register in Claude Code, OpenAI Codex CLI, Cline, or any MCP-aware host:

claude mcp add rosetta -- npx -y @syntaxsmith/rosetta rosetta-mcp

The MCP consult tool ties one ChatGPT conversation to each MCP server process — successive calls in the same host session continue the same conversation by default. fresh: true resets it; recall: "<name>" routes to a disk-persisted cross-session thread.

Setup

You need Chrome / Chromium with --remote-debugging-port=9222 and a one-time chatgpt.com login. The README walks through Linux / macOS / Windows commands.

CI

GitHub Actions matrix passes on Ubuntu × macOS × Windows × Node 22.


Not affiliated with OpenAI. Use respectfully and within your account's terms of service.