Step 10 of 12
Terminal and MCP
PromptPrinter also comes as a terminal app. You sign it in once in your browser, without typing a password, and then write your prompts right on the command line or let another AI fetch them.
By Kasum BajramiUpdated
What do I need?
Node 22 or newer and a PromptPrinter account. The program is called promptprinter and has no other dependencies. The source code is on GitHub. You install it once globally; without installing, it also works with npx promptprinter:
npm install -g promptprinter
promptprinterOn the Free plan, the terminal works like the browser: after the three free prompts, you chat only with your own API key. You add it in Settings in your browser, and the terminal never knows it: the server uses it for you.
How do I sign in the terminal?
- You start the program. It asks the server for a code and shows it: eight characters, for example
BCDF-GHJK. Along with it, it sends the device's name. - In your browser, signed in, you open the page
/cliand type in the code. - The page shows the device name, the time, the address, the approximate location and the program of the request. The terminal picks the name itself, but not the address. If the request comes from a different address than your browser, the page says so. You confirm or deny.
- The terminal then collects its own sign-in, once. The code is valid for ten minutes and only once. You never type a password into the terminal.
When do I confirm?
Only if you've just started the command in the terminal yourself. Anyone who sends you a code and asks you to confirm it wants to sign in to your account. That's why the code is never in a link you could click: you type it in, so that you only confirm it when it's on your own screen.
What do I type in the program?
/pp <idea>: a new prompt. As in the browser chat, a short question comes first, then the finished prompt./pp --kontext <idea>: the program also reads the project in the current folder. You see beforehand what goes along and where to, and only typingjsends it (ywhen the program runs in English)./copy: copies the latest prompt to the clipboard./save [file]: saves the latest prompt as a Markdown file in the current folder. Without a name, it's calledprompt-plus the date and time, and the program never overwrites an existing file. This doesn't put it in your saved prompts; you save it there in the browser, where the conversation is too./an claudeand/an codex: start Claude Code or Codex in the same terminal, with the finished prompt as the first message. This only works if that program is installed on your computer.
A conversation from the terminal then also shows up in your chats in the browser.
How do I use PromptPrinter over MCP?
With promptprinter mcp, the program runs as an MCP server over standard input and output. Another AI, for example Claude Code or Claude Desktop, then gets three tools:
create_prompt: turns an idea into a finished prompt. If something important is missing, the answer says what.list_saved_prompts: shows your saved prompts, newest first, optionally filtered by a search term.get_saved_prompt: fetches a saved prompt in full.
Before that, start the program once normally and sign it in: the MCP server uses the same sign-in and doesn't ask for a code itself. In Claude Code, you set it up with one command:
claude mcp add promptprinter -- npx -y promptprinter mcpIn Claude Desktop, you add it to the file claude_desktop_config.json:
{
"mcpServers": {
"promptprinter": {
"command": "npx",
"args": [
"-y",
"promptprinter",
"mcp"
]
}
}
}What is the terminal allowed to do?
It uses the same account as your browser, with the same limits: your plan, the limits and your consent to the transfer to Z.ai are the same as in the browser chat. Over MCP it reads your saved prompts; it can't change or delete them.
How do I sign a terminal out?
With promptprinter logout or in Settings: it lists all signed-in terminals with name and date, and you sign out each one individually. Both end only that one device; your browser and your other devices stay signed in.
Signing out in the account menu ends every session of your account, including all terminals. If you delete your account, every terminal sign-in also becomes invalid immediately.
What changes with a second factor?
Signing in a terminal then requires the code from your authenticator app. The terminal itself doesn't ask for it, and its sign-in can neither change your password nor sign in more terminals. Every new sign-in in the browser with the second factor signs out your terminals: that's how the sign-in service works, and you sign them in again afterwards.
How long does a terminal stay signed in?
30 days at most. After that, you sign it in again with a new code. The period can't be extended, not even by using it.
What risks remain?
A terminal's sign-in is stored on the computer where you issued it. It's worth as much as your browser: anyone with access to that file can chat as you and read your chats, projects and saved prompts until you sign the terminal out, the 30 days are up or you delete your account. The same goes for any AI you give the MCP server to. After signing out, an access token that was already issued stays valid with the database service for up to an hour. Sign a terminal out when you hand the computer on.
What does PromptPrinter store for this?
For the sign-in, a short request with the device name, address, approximate location, program, the times and the outcome (confirmed, denied, collected). The code the terminal uses to collect its sign-in is only stored as a hash. A request is deleted at the latest one day after it expires. For each signed-in terminal, the device name and times are kept until it's signed out or has expired. That a terminal was signed in or out is recorded in the security log, without the device name. More in the privacy policy.