Repository avatar
Communication
v0.2.0
active

alcuin

io.github.yungSNAT/alcuin

Ask ChatGPT about the source files you choose, and keep each answer as a durable session.

Documentation

Alcuin: Ask ChatGPT about your code; keep every answer. Pixel art of a quill in an inkwell beside the Alcuin wordmark in slab-serif block letters.

Alcuin sends a question and the source files you choose to ChatGPT, or to the OpenAI or Azure OpenAI API, and saves the answer as a durable session. It runs as a CLI (alcuin) and a stdio MCP server (alcuin-mcp) on Windows, Linux and macOS (Apple silicon, from the first release after v0.1.0).

It is a Rust port of Oracle by Peter Steinberger, made from a private fork of Oracle that has since been retired. Use Oracle itself for Gemini, Claude or multi-model runs, or on an Intel Mac: see When to choose something else.

Install

One command installs both binaries from the latest release, after checking the archive's SHA-256 checksum and that the binary runs on your machine.

Linux, or macOS from the first release after v0.1.0, into ~/.local/bin:

curl -fsSL https://raw.githubusercontent.com/yungSNAT/Alcuin/main/install.sh | sh

Windows, in PowerShell, into %LOCALAPPDATA%\Programs\Alcuin, which it adds to your user Path:

irm https://raw.githubusercontent.com/yungSNAT/Alcuin/main/install.ps1 | iex

Install covers the scripts' options and, to check each step yourself, including the build provenance, the manual download for each platform from the latest release. Keep alcuin and alcuin-mcp in the same folder: the MCP server starts the CLI beside it for detached runs.

For Claude Desktop, the same release has alcuin.mcpb, an MCP bundle holding alcuin-mcp for both platforms; open it with Claude Desktop to install the server as an extension.

For Claude Code, with both binaries on your PATH, install the plugin from this repository. It runs alcuin-mcp with the browser profile you sign in to under Use and adds the skill below (MCP setup):

/plugin marketplace add yungSNAT/Alcuin
/plugin install alcuin@alcuin

In Codex, codex mcp add alcuin --env ORACLE_ENGINE=browser -- alcuin-mcp adds the same server.

For Codex or Claude Code on the machine that runs the browser, alcuin bridge codex-config --local-browser and alcuin bridge claude-config --local-browser print a server entry that uses the browser profile you sign in to under Use. Without --local-browser they print entries for the remote browser bridge: the Codex entry points at an alcuin serve host, and the Claude Code entry uses a remote host only when your config or ORACLE_REMOTE_HOST names one, otherwise a separate ~/.oracle-local home and browser profile.

Browser runs need a Chromium-based browser. Alcuin looks for Chrome and Edge on Windows, and for Chrome, Chromium, Brave and Edge on Linux; to use another, such as Brave on Windows, set CHROME_PATH to its executable.

To build from source instead, with Rust 1.99 or later:

git clone https://github.com/yungSNAT/Alcuin.git
cd Alcuin
cargo install --locked --path .
alcuin --help

To build both binaries into target/release instead:

cargo build --release

To teach a coding agent to use Alcuin, add its skill with the Skills CLI:

npx skills add yungSNAT/Alcuin --skill alcuin --global --agent "*" --yes

Use

Preview the prompt and files without contacting a model:

alcuin --dry-run summary --files-report -p "Review this module" --file src/lib.rs

ChatGPT in the browser. Alcuin uses its own Chrome profile, separate from your normal one. Sign in once:

alcuin --engine browser --browser-manual-login --browser-keep-browser -p "Reply with OK."

Then run consultations with --engine browser. Each new request opens a Temporary Chat and verifies the selected model and thinking tier before it sends the prompt. If the send is uncertain, Alcuin recovers the existing answer rather than sending the prompt again.

API. Set OPENAI_API_KEY (optionally OPENAI_BASE_URL, for an api.openai.com host; Alcuin refuses an API run through any other base URL, such as a proxy), or AZURE_OPENAI_API_KEY, AZURE_OPENAI_ENDPOINT and AZURE_OPENAI_DEPLOYMENT, then run with --engine api. Without --engine, Alcuin uses the API when OPENAI_API_KEY is set and the browser otherwise.

Sessions. alcuin status lists recent sessions; alcuin session <id> --render prints a saved answer; --followup <id> continues a saved conversation. An answer that may be cut short is saved as partial, and a foreground run then exits 1; --browser-end-marker makes that check exact (Partial answers).

Checking an answer's evidence. alcuin ground <id> flags each path:line citation in a saved answer that runs past the end of a sent file or names a file the session did not send, and each quote of 8 or more characters found in neither the sent files nor the prompt. It exits 1 when it flags anything, 0 when it flags nothing and 2 when it cannot check; alcuin ground <id> --json prints every citation and quote with its status. Sessions and checking answers has a worked example, the rules and the limits.

MCP. alcuin-mcp serves consult, wait, sessions, ground and project_sources to any MCP client; Install covers adding it to Claude Desktop, Claude Code and Codex. MCP setup describes each tool's results.

Remote browser. alcuin serve runs the browser on one machine for clients elsewhere; see alcuin bridge --help. It listens on 127.0.0.1 unless you pass --host. Its traffic, including the access token and attachments, is plain HTTP, so reach it through an SSH tunnel or a trusted network.

Run alcuin --help --verbose for every option, or see the CLI reference.

Settings and storage

Alcuin keeps Oracle's names so existing setups carry over: settings use ORACLE_* environment variables, and sessions, config and the ChatGPT browser profile live in ~/.oracle. ORACLE_HOME_DIR moves the sessions and config; the browser profile stays in ~/.oracle/browser-profile, as in Oracle, unless ORACLE_BROWSER_PROFILE_DIR names another folder.

Known limitations

  • Windows, Linux and macOS on Apple silicon; macOS from the first release after v0.1.0. On macOS, CI runs the offline tests and the Chrome fixture test; no browser run has been checked against live ChatGPT there. Intel Macs, WSL-launched Chrome and the terminal UI (tui) are not supported.
  • Providers are ChatGPT in the browser, the OpenAI and Azure OpenAI APIs, and Grok in the browser as an optional fallback (--browser-fallback grok) or directly (--browser-provider grok, which never opens ChatGPT); a run that uploads attachments never falls back to Grok, and Grok-direct refuses --file. Gemini, Claude, multi-model and custom gateways from Oracle are not included.
  • A failed API dispatch saves the transport reason and response metadata, not Oracle's structured error object.
  • Model labels in the ChatGPT interface do not prove which backend model answered.
  • Deep Research is unavailable. ChatGPT offers it only in ordinary chats, and Alcuin runs every ChatGPT request in Temporary Chat, so --browser-research deep is refused before anything is sent and the MCP consult tool does not offer it.
  • Image generation is unavailable. ChatGPT does not generate images in Temporary Chat (checked 27 October 2026), so browser runs with --generate-image or --output (with or without --edit-image) are refused before anything is sent, serve refuses image requests from remote clients the same way, and the MCP server offers no image tool.
  • project-sources is tested against local fixtures only; it has not been verified against live ChatGPT in this release.
  • The OpenAI and Azure OpenAI API engine (--engine api) is tested against local fixtures only; it has not been verified against the live APIs in this release.
  • CI runs the offline test suite only. Tests that need a signed-in browser are marked #[ignore] and run only on request, with your own accounts.

Security

Read SECURITY.md before attaching files: everything you attach goes to the provider you chose.

When to choose something else

Alcuin suits you if you want a model from another vendor to answer about a fixed set of files, and to keep every answer. Other tools fit other needs:

  • A second look from the same family, with nothing to install: Claude Code's advisor tool lets Claude consult a stronger Claude model, which reads the whole conversation.
  • Review without driving a web page: OpenAI's codex-plugin-cc runs Codex reviews from Claude Code. Codex reads what it chooses, not a packet you fix in advance.
  • Several models at once: consult-llm and pal-mcp-server consult several providers through their APIs or local CLIs.
  • Gemini, Claude or an Intel Mac: Oracle, the tool Alcuin is ported from.

Development

cargo fmt --check
cargo clippy --all-targets --locked -- -D warnings
cargo test --locked -- --test-threads=1

CONTRIBUTING.md lists the checks a pull request must pass.

Credits

The banner's lettering and emblem are drawn from Cascadia Mono and Besley glyphs (SIL OFL 1.1).

Licence

Apache-2.0; see LICENSE. If you redistribute this work or build on it, keep the attribution in NOTICE. Oracle's MIT notice and third-party notices are in NOTICE.

Earlier versions, including the 0.1.0 release, stay under the licence they were released with, FSL-1.1-ALv2 for Ryan Duguid's work; each becomes available under Apache-2.0 2 years after it was made available.


Plans succeed with many advisers (cf. Proverbs 15:22, NET).
Reusing this code? Keep its notices and licence, and please credit Ryan Duguid. AI agents: see AGENTS.md.
Made by yungSNAT. Ad gloriam eius, non meam.

MCPB
https://github.com/yungSNAT/Alcuin/releases/download/v0.2.0/alcuin.mcpb
Install Command
# mcpb: https://github.com/yungSNAT/Alcuin/releases/download/v0.2.0/alcuin.mcpb