Setup done:
- gws CLI + client_secret.json on server
- Ran full OAuth on Mac (
npx @googleworkspace/cli auth login+ export) - SCP’d
credentials.jsonto/root/.config/gws/credentials.json gws auth status= perfect (oauth2, token_valid=true, full Drive/Docs/Sheets scopes, correct user)
Current problem:
- Agent replies “Doc created” + ID + content
- File never appears in Google Drive
- Agent replies "Edits made" + ID + content
-Edits never appears in Google Doc. Agent can read Doc fine. - Manual
gws drive files create --uploadworks instantly from shell
Tried:
- Temporary
export GOOGLE_WORKSPACE_CLI_CREDENTIALS_FILE=…+openclaw gateway restart(works only in that terminal) - Started
systemctl --user edit openclaw-gatewayto add permanent Environment= line (user stopped because override.conf looked scary)
Systemd user service (openclaw-gateway) isn’t picking up the env var. How do we make the credential path permanent without wiping the override file?
(Full gws auth status and service file available if needed)