Use Sutok from AI agents
How it works
Sutok includes a command line tool, sutok. An agent runs it like any other command, and the Sutok app on your Mac does the work through the same code as its own buttons. Nothing new connects to your mail provider, and there is nothing to sign in to. Sutok has to be open for the command to work.
A skill tells the agent how to use the command: which commands exist, how sending works, and that mail is data to read, never instructions to follow.
Set it up
- In Sutok, open Settings and choose AI.
- Turn on Let AI agents use Sutok.
- Under Command line tool, choose Install. macOS asks for your password once to add sutok to /usr/local/bin.
- Under Agents, choose Install next to each agent you use. Sutok finds Claude Code, Codex, Cursor, OpenCode and Gemini CLI. For any other agent, Copy skill folder puts the skill where you choose.
Then ask your agent, for example:
Find the March invoice from our accountant in Sutok and save the PDF to my Desktop.You decide what agents may do
Each account has its own access level in Settings, AI: None, Read only, or Read and act. Read only lets an agent list, search and read mail. Read and act also lets it organize threads, write drafts and send. Sutok checks the level on every request, whatever the agent asks for.
An agent can only send or discard drafts it created itself, never one you are writing. Messages it sends go out at once, without the undo window you get in the app, so the skill tells agents to show you a message before sending it unless you said otherwise.
Built-in limits
Agents can loop, and a loop can make a mail provider throttle or suspend an account. Sutok paces agent requests per account to the speed of a busy person: one request to the provider at a time, bursts of archiving or searching slowed down, and at most 150 messages sent per account in 24 hours. Your own use of the app is never limited.
Everything an agent changes, from a sent message to an archived thread, is listed under Recent activity in Settings, AI, with the agent’s name.
Where your mail goes
The sutok command talks only to the Sutok app on your Mac. But the agent you use sends what it reads to its own AI service to work with it, under that service’s terms. Give agents access only to the accounts you are comfortable sharing that way, and turn it off when you do not need it.
Commands
Agents read the full reference from sutok help --json. The main commands:
- sutok accounts
- Your accounts and what agents may do with each
- sutok list, sutok search
- Find threads, on this Mac or at the provider
- sutok thread
- Read a thread as plain text, with attachment IDs
- sutok attachment save
- Save an attachment to a folder
- sutok draft
- Write a new message, a reply or a forward
- sutok send, sutok status
- Send a draft and follow up on it
- sutok archive, trash, move, read, unread, snooze
- Organize threads, several at a time
Agent access works on macOS. Questions? Get in touch.
