oracle 🧿 — Whispering your tokens to the silicon sage
Oracle bundles your prompt and files so another AI can answer with real context. It speaks GPT-5.1 Pro (default alias to GPT-5.2 Pro on the API), GPT-5.1 Codex (API-only), GPT-5.1, GPT-5.2, Gemini 3 Pro, Claude Sonnet 4.5, Claude Opus 4.1, and more—and it can ask one or multiple models in a single run. Browser automation is available; use --browser-model-strategy current to keep the active ChatGPT model (or ignore to skip the picker). API remains the most reliable path, and --copy is an easy manual fallback.
OPENAI_API_KEY is set, otherwise browser; browser is stable on macOS and works on Linux and Windows. On Linux pass --browser-chrome-path/--browser-cookie-path if detection fails; on Windows prefer --browser-manual-login or inline cookies if decryption is blocked.
Integration
CLI - API mode expects API keys in your environment:
OPENAI_API_KEY (GPT-5.x), GEMINI_API_KEY (Gemini 3 Pro), ANTHROPIC_API_KEY (Claude Sonnet 4.5 / Opus 4.1). - Gemini browser mode uses Chrome cookies instead of an API key—just be logged into gemini.google.com in Chrome (no Python/venv required). - If your Gemini account can’t access “Pro”, Oracle auto-falls back to a supported model for web runs (and logs the fallback in verbose mode). - Prefer API mode or --copy + manual paste; browser automation is experimental. - Browser support: stable on macOS; works on Linux (add --browser-chrome-path/--browser-cookie-path when needed) and Windows (manual-login or inline cookies recommended when app-bound cookies block decryption). - Remote browser service: oracle serve on a signed-in host; clients use --remote-host/--remote-token. - AGENTS.md/CLAUDE.md: ` - Oracle bundles a prompt plus the right files so another AI (GPT 5 Pro + more) can answer. Use when stuck/bugs/reviewing. - Run npx -y @steipete/oracle --help once per session before first use. ` - Tip: set browser.chatgptUrl in config (or --chatgpt-url) to a dedicated ChatGPT project folder so browser runs don’t clutter your main history.
Codex skill - Copy the bundled skill from this repo to your Codex skills folder: -
mkdir -p ~/.codex/skills - cp -R skills/oracle ~/.codex/skills/oracle - Then reference it in your AGENTS.md/CLAUDE.md so Codex loads it.
MCP - Run the stdio server via
oracle-mcp. - Configure clients via steipete/mcporter or .mcp.json; see docs/mcp.md for connection examples. `bash npx -y @steipete/oracle oracle-mcp ` - Cursor setup (MCP): drop a .cursor/mcp.json like below, then pick “oracle” in Cursor’s MCP sources. See https://cursor.com/docs/context/mcp for UI steps. `json { "oracle": { "command": "oracle-mcp", "args": [] } } `
Highlights
- Bundle once, reuse anywhere (API or experimental browser). - Multi-model API runs with aggregated cost/usage, including OpenRouter IDs alongside first-party models. - Render/copy bundles for manual paste into ChatGPT when automation is blocked. - GPT‑5 Pro API runs detach by default; reattach via
oracle session / oracle status or block with --wait. - Azure endpoints supported via --azure-endpoint/--azure-deployment/--azure-api-version or AZURE_OPENAI_* envs. - File safety: globs/excludes, size guards, --files-report. - Sessions you can replay (oracle status, oracle session --render). - Session logs and bundles live in ~/.oracle/sessions (override with ORACLE_HOME_DIR).
Flags you’ll actually use
| Flag | Purpose | | --- | --- | |
-p, --prompt | Required prompt. | | -f, --file | Attach files/dirs (globs + ! excludes). | | -e, --engine | Choose API or browser (browser is experimental). | | -m, --model | Built-ins (gpt-5.1-pro default, gpt-5-pro, gpt-5.1, gpt-5.1-codex, gpt-5.2, gpt-5.2-instant, gpt-5.2-pro, gemini-3-pro, claude-4.5-sonnet, claude-4.1-opus) plus any OpenRouter id (e.g., minimax/minimax-m2, openai/gpt-4o-mini). | | --models | Comma-separated API models (mix built-ins and OpenRouter ids) for multi-model runs. | | --base-url | Point API runs at LiteLLM/Azure/OpenRouter/etc. | | --chatgpt-url | Target a ChatGPT workspace/folder (browser). | | --browser-model-strategy