Experimental Google providers are live-tested; Microsoft 365 support is implemented but not yet tested against a real tenant. Feedback welcome →

The iobox command searches, exports, and acts on your email, calendar, and files from the terminal. It's also how you set up workspaces and authenticate accounts for the MCP server and SDK.

Command groups

Group Commands Operates on
Workspaces space create · list · use · status · add · login · logout · remove ~/.iobox/workspaces/
Calendar events list · get · save · create · delete · rsvp Active workspace, all calendar slots
Files files list · get · save · upload · delete · mkdir Active workspace, all file slots
Email search · save · send · forward · drafts · label · trash One mailbox (see below)
Utility auth-status · version

Workspace commands vs email commands

events and files go through the workspace: they fan out across every slot by default, take --workspace/-w NAME to use a non-active workspace, and --provider SLOT to target one account.

The email commands are older and act on one mailbox at a time, selected by global options:

iobox --provider gmail --account you@gmail.com search -q "is:unread"

They look for tokens in $CREDENTIALS_DIR/tokens/ACCOUNT/ (default: current directory). To reuse the tokens created by iobox space add, point them at ~/.iobox:

export CREDENTIALS_DIR=~/.iobox
export IOBOX_ACCOUNT=you@gmail.com

For cross-account email search, use the MCP server or Workspace.search_emails in the SDK.

Global options

Global options go before the command name.

Option Env var Default Description
--mode IOBOX_MODE standard Access mode: readonly, standard, dangerous
--account IOBOX_ACCOUNT default Mailbox for email commands (token directory name)
--provider IOBOX_PROVIDER gmail Email provider for email commands: gmail or outlook
--version Print version and exit

Not to be confused with the --provider SLOT option on events and files subcommands, which selects a workspace slot.

Access modes

--mode decides which commands are allowed. It gates email commands and each events / files subcommand, using the same tiers as the MCP tools:

Mode Commands
readonly search, save, draft-list, auth-status, version, space, workspace, events list/get/save, files list/get/save
standard + draft-create, draft-delete, label, events create/rsvp, files upload/mkdir/delete
dangerous + send, draft-send, forward, trash, events delete
iobox --mode dangerous send --to someone@example.com --subject "Hi" --body "Hello"
iobox --mode dangerous events delete EVENT_ID

A blocked command exits with an error naming the lowest mode that allows it:

Error: Command 'events delete' is not allowed in 'readonly' mode. Use --mode dangerous to enable it.

Writes also need the account to have been added without --read. See access modes.

Common recipes

# Export a newsletter archive, then keep it up to date
iobox save -q "from:digest@example.com" -d 365 -o ./newsletters
iobox save -q "from:digest@example.com" --sync -o ./newsletters

# This week's events across every calendar
iobox events list --after 2026-11-02 --before 2026-11-08

# Save a calendar event as Markdown
iobox events save EVENT_ID -o ./meetings

# Find a document across all drives
iobox files list --query "lease agreement"

# Switch workspaces
iobox space use work