Documentation Index
Fetch the complete documentation index at: https://docs.ntrp.io/llms.txt
Use this file to discover all available pages before exploring further.
Setup
Create Google OAuth credentials
Go to Google Cloud Console
Create a project (or select existing)
Enable the Gmail API
Create OAuth 2.0 credentials (Desktop application)
Download the credentials JSON
Save the downloaded file as ~/.ntrp/credentials.json.
Start the server and the TUI. On first use of any email tool, ntrp will open a browser window for OAuth consent. The token is saved to ~/.ntrp/gmail_token.json.
Configuration
| Variable | Default | Description |
|---|
NTRP_GMAIL | false | Enable Gmail integration |
NTRP_GMAIL_DAYS | 30 | Days of email history to index |
| 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) |
Multiple accounts
Add additional Gmail accounts via the API:
curl -X POST http://localhost:6877/gmail/add \
-H "Authorization: Bearer $NTRP_API_KEY"
List connected accounts:
curl http://localhost:6877/gmail/accounts \
-H "Authorization: Bearer $NTRP_API_KEY"