Qai Mainframe
Every project on your computer, driven in plain words. Say what you want done, and Mainframe finds the project and the command, shows you the plan, and runs it once you say yes.
> qai "deploy shop" Run deploy in shop command npm run deploy Go ahead? [y/N]
Install
Mainframe is one file. It needs Node 18 or newer.
Windows (PowerShell)
irm https://llm.quickcasa.ai/mainframe/qai-mainframe.js -OutFile qai-mainframe.js; node qai-mainframe.js setup --add-to-path
macOS and Linux
curl -fsSL https://llm.quickcasa.ai/mainframe/qai-mainframe.js -o qai-mainframe.js && node qai-mainframe.js setup --add-to-path
Open a new terminal afterwards, then register your projects with qai add <folder>.
Say what you want
qai "deploy shop" | Runs shop's own deploy script, after you say yes. |
qai "test shop api" | Runs the tests in shop's api folder. |
qai "install zod in shop" | Adds a package with the package manager shop's lockfile uses. |
qai "give shop the github mcp" | Gives shop's agents an MCP server another project already uses, kept out of the repo. |
qai "have shop use blog's signup form" | Hands the job to your coding agent working in shop, with blog open to read but not to change. |
Mainframe works a request out on your computer, from the projects you registered. Only when it cannot tell which project you mean does it ask Qai, with your key, and anything Qai works out is shown to you before it runs. Inside a project's folder you can leave the project's name out.
Your coding agent
A task that changes code goes to the coding agent you already use: Claude Code, Codex or Cursor. Mainframe takes the first one it finds unless you pick one with qai config set agent codex, or --agent on a single request. It runs in your terminal, with your own sign-in, so it costs what that agent already costs you.
Claude Code and Codex can also work unattended, for requests from the board and from other agents. Cursor only takes tasks in a terminal you are watching, since its unattended mode cannot be held to editing code. Run qai setup --mcp and your agents can drive Mainframe too: list projects, run a test, or ask for a deploy plan you approve.
From anywhere
Link a computer, and you can send it requests from the Mainframe board on your phone or from another computer's terminal.
qai config set apiKey <your Qai key> qai service install qai notify add <Discord webhook or AI Notify address>
The listener starts with every login and updates itself. Use the same key on the board as on your computers.
What always asks first
- Deploys, and anything else that ships or changes live data.
- Giving agents an MCP server, with the server's command shown and its keys hidden.
- Anything Mainframe had to work out with Qai's help, and any command it was handed extra arguments for.
- From the board, everything except a plain test, typecheck, lint or build. A plan you approve runs exactly as shown, because your computer runs the plan it saved, never one sent back to it, and an approval goes stale after an hour.
An agent started from the board can read, edit and typecheck code, and nothing more: no deploys, no installs, no pushes, and no changes to a project it was only given to read. Codex is held to that by its own sandbox, with the network off; Claude Code by a list of the commands it may run. Folder paths stay on your computer, and anything that looks like a key is hidden before a plan, a result or a notification leaves it.
Commands
qai add [folder] | Register a project. Mainframe reads its scripts, deploy files and README. |
qai list, qai show <project> | What is registered, and what each project can do. |
qai verb alias <project> <verb> <word> | Make a word mean one of its commands, such as "deploy" for a script called ship. |
qai run <project> <verb> | Run a command by name. |
qai listen, qai service install | Link this computer to the board, once or from every login. |
qai remote --machine <name> "<request>" | Send a request to another of your computers from this one. |
qai notify add <address> | Get pinged when a plan waits for you: a Discord or Slack webhook, or an AI Notify address for email and SMS. |
qai setup --mcp | Give Claude Code, Codex, Cursor and Claude Desktop Mainframe's tools, whichever of them you have. |
qai config set agent <name> | Which coding agent takes tasks: auto, claude, codex or cursor. |
qai update | Move onto the newest client. A listener does this on its own. |