Temporary setup page for Gmail, Calendar, Drive, Docs, and Sheets access via gws.
gws, the OAuth client config, and OpenClaw Google Workspace skills installed.
The gws CLI uses a localhost OAuth callback on the machine where gws is running.
If you open the login URL from your laptop/phone, Google redirects to localhost on that device, not the VM.
So the safe and reliable approach is: authenticate locally, then copy the exported credential file to the VM.
npm install -g @googleworkspace/cli
Ask Eric/Eddie for the client_secret.json file, or download/create the Desktop OAuth client in Google Cloud Console. Save it here on your own computer:
~/.config/gws/client_secret.json
gws auth login -s drive,gmail,calendar,sheets,docs
Complete the Google consent screen in your browser.
gws auth status
gws drive files list --params '{"pageSize": 5}'
gws auth export --unmasked > gws-credentials.json chmod 600 gws-credentials.json
Install it on Kai’s VM as:
/home/eric_tang_inhom_io/.config/gws/credentials.json
Then verify:
gws auth status
gws drive files list --params '{"pageSize": 5}'
You can ask your OpenClaw agent to help manage Gmail, Calendar, Drive, Docs, and Sheets.