Recommended setup
The easiest path is the desktop setup assistant:Manual setup
If you do not use the desktop assistant, place your Google OAuth Desktop app credentials at:Google verification note
ntrp currently uses bring-your-own Google OAuth credentials. Gmail scopes such as read/send are restricted Google scopes, so shipping a shared public OAuth app would require Google’s verification/security-assessment process. BYO credentials keep setup local and avoid routing Gmail access through a third-party auth broker.Configuration
| Variable | Default | Description |
|---|---|---|
NTRP_GMAIL | false | Enable Gmail integration |
NTRP_GMAIL_DAYS | 30 | Days of email history to index |
Available tools
| Tool | Description |
|---|---|
emails | Search and list emails by date or query |
read_email | Get full email content by ID |
send_email | Send an email (requires approval) |
Troubleshooting
- Missing credentials — import a Google OAuth Desktop app JSON; Web application credentials are rejected.
- Access denied / test user — if your OAuth app is still in Testing mode, add your Google account as a test user.
- API not enabled / 403 — enable the Gmail API in the same Google Cloud project.
- Missing scope — re-run setup and choose a service option that includes the needed Gmail scope.
Multiple accounts
Add more accounts from the desktop Integrations tab, or call/gmail/add again. Tokens are saved as account-specific files such as gmail_token_<email>.json.