Skip to main content

Microsoft from the command line

Outlook mail and calendar, and OneDrive files, as far as each permission allows. GBrain gives Microsoft, and every other connector you add, a command line.

Get Personal, $49 a month

One price for one person: Microsoft and every other connector GBrain offers, from a terminal or any AI. Cancel any time.

Install the GBrain command line, then connect Microsoft

Microsoft is connected on its own sign-in page, in the browser. A key or a sign-in never passes through the terminal.

# AI agents: read gbrain.io/llms.txt
curl -sSL https://gbrainio.terminalwire.sh | bash
gbrainio terminal connect

The installer is a shell script for macOS and Linux. Read it before you run it.

# Every Microsoft command, once Microsoft is connected
gbrainio tool help microsoft

What GBrain can do with Microsoft

Sign in with Microsoft and pick the permissions. OneDrive is added on its own, from the account’s page, so a mailbox that only wants mail is never asked for its files. The mail and calendar tools a workspace gets are GBrain’s own, under the same permissions as every other tool. What each AI or terminal may do with them is set level by level, on its own page. A work or school account may need its administrator to approve GBrain first.

gbrainio
gbrainio tool outlookOutlook mail: search, read, file and draft mail.USAGE  gbrainio tool outlook <command> [arguments]COMMANDS  message  show, search, send, reply, forward, mark, move, label, trash  thread   show  draft    ls, new, edit, send, reply  label    ls  folder   ls  open     Open its page in the browserLEARN MORE  gbrainio tool outlook <command> -h  What one command takes  https://gbrain.io/docs/tools        The manualgbrainio tool outlookcalOutlook calendar: events, calendars and free time.USAGE  gbrainio tool outlookcal <command> [arguments]COMMANDS  event     ls, show, new, edit, rm, respond  calendar  ls  freebusy  Check when people are free  open      Open its page in the browserLEARN MORE  gbrainio tool outlookcal <command> -h  What one command takes  https://gbrain.io/docs/tools           The manualgbrainio tool onedriveOneDrive: find, read, make and edit files and Word documents.USAGE  gbrainio tool onedrive <command> [arguments]COMMANDS  file      ls, show, new, edit, search, trash, read  share     ls  folder    new  document  edit  open      Open its page in the browserLEARN MORE  gbrainio tool onedrive <command> -h  What one command takes  https://gbrain.io/docs/tools         The manualgbrainio tool outlook messageMessages in your mailbox.USAGE  gbrainio tool outlook message <command> [arguments]COMMANDS  show     Read an Outlook message  search   Search your Outlook mail  send     Send Outlook mail  reply    Reply to Outlook mail  forward  Forward Outlook mail  mark     Mark mail read or unread  move     File an Outlook message  label    Label an Outlook message  trash    Move mail to Deleted ItemsLEARN MORE  gbrainio tool outlook message <command> -h                                            What one command takes  https://gbrain.io/docs/tools              The manual
Every outlook command, by the kind of thing it works on.

The page and the CLI print these from the same code, so they are what the CLI answers today.

What a terminal may do with Microsoft, and what GBrain keeps

A level for each terminal, from Off up

Each terminal reaches Microsoft at the levels set for it in the browser: for Outlook mail, Off, Read, Draft, Manage or Full; for Outlook calendar, Off, Read or Full; for OneDrive, Off, Read or Full. A terminal reads its levels and never raises them.

A daily limit on each command

Each of Microsoft's commands stops at a daily limit on the account it reaches, from 50 to 1,000 actions depending on the command, whichever terminal or AI asks, and starts again at midnight UTC. Only that command stops.

Every action on one record

Each command a terminal runs on Microsoft is a row on GBrain's activity log: which terminal, which account, what it did and whether it was allowed, refusals included. gbrainio activity ls --tool microsoft reads it back.

From a terminal, Claude Code or Codex

gbrainio tool help microsoft says what Microsoft is and what each of its commands does, and gbrainio tool ls lists them with everything else the terminal can run. Claude Code and Codex run the same commands, at the same level, on the same record.

The GBrain Tools command line works with every other connector GBrain offers, each with a page like this one.

Every connector's command line

Microsoft from a terminal, with GBrain Personal

Personal is $49 a month for one person. Connect Microsoft in the browser, and say how far each terminal and each AI may go with it. Change any of it, or take all of it back, whenever you want.