Agent Deck

GuidesGoogle

Connect Google

Agents in your sessions can read and send your mail, keep every calendar, and work in Drive, Docs, Sheets, Slides, Contacts and Tasks. Agent Deck talks to Google straight from your Mac, through a Google app that you make yourself and that only you can sign in to, so Google asks for no review.

Time
About 5 minutes
You need
The Google account to connect (Gmail or Google Workspace), and Agent Deck on your Mac
Costs
Nothing at Google: no billing account is needed

Before you start

Step 1: Make your Google app

  1. Open console.cloud.google.com/auth/overview/personal, Google Cloud's page for an app of your own in Personal mode. If it asks, agree to Google Cloud's terms. It does not ask for a billing account, and nothing is charged.
  2. Pick a project, or let it make a new one. Any name will do, such as "Agent Deck".
  3. For the kind of app, choose Desktop app. Google suggests Web application first: that kind does not work with Agent Deck, which signs in through your browser and comes back to your own Mac.
  4. Accept the terms, and continue.

Google then shows the app's Client ID, which ends in .apps.googleusercontent.com, and its Client secret, which starts with GOCSPX-.

Step 2: Keep the ID and the secret for a minute

Copy both somewhere for the next few minutes. Google shows the secret only now.

Step 3: Switch on the Google APIs

Each Google service is an API that has to be switched on in the project once. This link switches on all eight at once: switch on the eight APIs. It is the same link as switched on in Google Cloud in Agent Deck.

  1. Check that the project named at the top is the one from step 1.
  2. Go on with Next and Enable.

They are the Gmail, Google Calendar, Google Drive, Google Docs, Google Sheets, Google Slides, People (for contacts) and Google Tasks APIs. One left off only means agents cannot use that service: they are told it is switched off.

Step 4: Connect it in Agent Deck

  1. In Agent Deck, open Settings (⌘,), then Connections, Add a connection and Google.
  2. Paste the Google client ID and the Client secret.
  3. Optionally, give it a Label ("Work", "Personal") and say what to Use for ("client mail and calendars"). With several accounts, agents read these to choose one.
  4. Click Connect Google…. Your browser opens Google's sign-in: choose the same account as in step 1.
  5. Google lists what Agent Deck asks for. Allow all of it: a service you untick stays off for agents (you can allow it later with Reconnect…).
  6. The browser says Google is connected. Close the tab and go back to Agent Deck.

The account's page in Agent Deck now lists each service with a dot. Sessions started from now on have the Google tools; open Claude sessions get them at once.

Step 5: Watch the inbox (optional)

Agent Deck can also read each new mail as it comes and hand it to the session it is about, by the routing rules you set. On the account's page, under Watching the inbox:

  1. Tick Watch the inbox.
  2. Leave the mode on Watch only for a day: it only logs where each mail would have gone. Look at the log under Routing rules… (the dashboard's Routing tab).
  3. When that looks right, switch to Live: hand mail to sessions.

Deciding where a mail goes needs your Spikefrost account, signed in under Settings › Account: its text is sent to Agent Deck's decision service.

More accounts, and company accounts

Another Google account: do steps 1 to 4 again, signed in as that account. A Personal-mode app belongs to the account that made it, so each account has its own. One is the Default, used when nothing says otherwise; a reply always leaves from the account the mail came to.

A Google Workspace account (your company's) works the same way, unless your administrator has turned Personal mode off. Then make the app in a project of your organisation, with its audience set to Internal under Google Auth Platform › Audience, add a client of the kind Desktop app, and switch on the APIs as in step 3. Your administrator may have to allow it.

If something goes wrong

Google says “Error 400: client_user_mismatch”
You are signing in with a different account from the one that made the app. Sign in as that account, or make an app for this one (steps 1 to 3) while signed in as it.
Google says “Access blocked” or “This app has not completed the Google verification process”

The app is not in Personal mode: it was made as an External app in testing, and this account is not one of its test users. Make it again from the Personal-mode page in step 1.

The connection stops working after a week
An External app left in testing gives sign-ins that run out after seven days. A Personal-mode app does not: make one (step 1), then connect it in Agent Deck again.
An agent says a service is “switched off”, or Google says an API “has not been used in project … or it is disabled”
That API is off in your project: switch it on with the link in step 3 (in the same project), wait a minute, and ask again.
Agent Deck says “That does not look like a Google client ID”
The client ID ends in .apps.googleusercontent.com. Copy it again from Google Auth Platform › Clients, without spaces.
Agent Deck says “Google did not give a lasting sign-in”
Google remembered an earlier sign-in to the same app. Remove it at myaccount.google.com/connections (Third-party apps and services), then click Connect Google… again.
Agent Deck says “Nobody finished the Google sign-in in time”
The browser page waits five minutes. Click Connect Google… again and finish it in the browser.

What is kept, and where

The client ID, the secret and Google's sign-in are kept on your Mac only, encrypted with a key in your Keychain. They never go to Agent Deck's servers, and agents never see them: they get only Agent Deck's Google tools. Disconnect removes them from the Mac and asks Google to withdraw the sign-in.