My agent was setting up gmail, The agent had me set things up through google cloud, with an oauth client. I got the json information it needed, then it wrote what it needed. Aget replied:
What I set up:
Gmail OAuth venv at:
/home/michael/.openclaw/workspace/.venvs/gmail-oauth
Gmail helper script at:
/home/michael/.openclaw/workspace/tools/gmail_oauth.py
I was directed to a link
What should happen:
Ideally it opens a browser-based Google sign-in flow
If browser launch fails, it should fall back to a console flow
When I went to the link, I got an error 400: redirect_uri_mismatch.
My agent then locked up in thinking. I restarted, but when I tried to launch, I got the message:
nvalid config at /home/michael/.openclaw/openclaw.json:\n- skills.entries.agentmail: Unrecognized key: "AGENTMAIL_API_KEY"
🦞 OpenClaw 2026.4.15 (041266a)
Self-hosted, self-updating, self-aware (just kidding... unless?).
Config invalid
File: ~/.openclaw/openclaw.json
Problem:
skills.entries.agentmail: Unrecognized key: "AGENTMAIL_API_KEY"
Run: openclaw doctor --fix
I ran doctor with the end result:
Restarted systemd service: openclaw-gateway.service
Config overwrite: /home/michael/.openclaw/openclaw.json (sha256 ef9e290dc6274554e70950b8529ee8621f9733f2b8711d5be7cd2d9e8ef724df -> 0d874fd67adaabb71a98da8f940584c2e359ebbb6b3bcbd5b38b90aeda1c84de, backup=/home/michael/.openclaw/openclaw.json.bak)
Updated ~/.openclaw/openclaw.json
Backup: ~/.openclaw/openclaw.json.bak
│
└ Doctor complete.
restarted the dashboard, but my agent does not reply.