Skip to main content

Google email setup

Basic email access (app password)

1 - Sign into the google account

2 - Go here: https://myaccount.google.com/apppasswords 

3 - Create the below in the .env

HIMALAYA_GMAIL_PASSWORD="app password here"
HIMALAYA_CONFIG=~/.hermes/profiles/CHANGE-PROFILE-NAME-HERE/himalaya.toml

4 - create himalaya.toml

[accounts.account-nickname]
email = "account@gmail.com"
display-name = "account-nickname"
default = true

backend.type = "imap"
backend.host = "imap.gmail.com"
backend.port = 993
backend.encryption.type = "tls"
backend.login = "account@gmail.com"
backend.auth.type = "password"
backend.auth.cmd = "echo $HIMALAYA_GMAIL_PASSWORD"

message.send.backend.type = "smtp"
message.send.backend.host = "smtp.gmail.com"
message.send.backend.port = 587
message.send.backend.encryption.type = "start-tls"
message.send.backend.login = "account@gmail.com"
message.send.backend.auth.type = "password"
message.send.backend.auth.cmd = "echo $HIMALAYA_GMAIL_PASSWORD"

folder.aliases.inbox = "INBOX"
folder.aliases.sent = "[Gmail]/Sent Mail"
folder.aliases.drafts = "[Gmail]/Drafts"
folder.aliases.trash = "[Gmail]/Trash"

Google workspace setup

1 - Create app

2 - Enable APIs

3 - Install app secret

HERMES_HOME=~/.hermes/profiles/PROFILE ~/.hermes/hermes-agent/venv/bin/python ~/.hermes/profiles/PROFILE/skills/productivity/google-workspace/scripts/setup.py --client-secret ~/.hermes/shared/google-app-secret.json

 - Get the auth code

# Get new auth URL
HERMES_HOME=~/.hermes/profiles/helios-aiPROFILE ~/.hermes/hermes-agent/venv/bin/python ~/.hermes/profiles/helios-ai/skills/productivity/google-workspace/scripts/setup.py --auth-url

# Exchange the new code
HERMES_HOME=~/.hermes/profiles/helios-aiPROFILE ~/.hermes/hermes-agent/venv/bin/python ~/.hermes/profiles/helios-ai/skills/productivity/google-workspace/scripts/setup.py --auth-code "PASTE_REDIRECT_URL_HERE"

# Verify
HERMES_HOME=~/.hermes/profiles/helios-aiPROFILE ~/.hermes/hermes-agent/venv/bin/python ~/.hermes/profiles/helios-ai/skills/productivity/google-workspace/scripts/setup.py --check

revoke a token

HERMES_HOME=~/.hermes/profiles/helios-ai ~/.hermes/hermes-agent/venv/bin/python ~/.hermes/profiles/helios-ai/skills/productivity/google-workspace/scripts/setup.py --revoke