Documentation Index
Fetch the complete documentation index at: https://onecli.sh/docs/llms.txt
Use this file to discover all available pages before exploring further.
Overview
OneCLI connects AI agents to Gmail through Google’s OAuth flow. Agents can search your inbox, read messages, draft and send emails, and manage labels. The gateway injects OAuth credentials into requests to the Gmail API automatically. This is useful for agents that need to process incoming messages, send notifications, or automate email workflows on your behalf.Setup
What agents can do
- Search your inbox for messages matching a query (sender, subject, date range, labels)
- Read the full content of individual emails, including attachments
- Draft new emails with specified recipients, subject, and body
- Send emails on your behalf
- Reply to or forward existing messages
- Create, rename, and delete labels
- Move messages between labels (e.g., archive, mark as read, move to a folder)
- List and filter threads by label or search criteria
- Batch modify messages (mark as read, add/remove labels)
Per-action permissions
The dashboard lets you control exactly what agents can do with Gmail. Each action can be set to Allow (green), Ask (yellow, requires human approval), or Block (red). Read-only actions:| Action | Description |
|---|---|
| Search email threads | Find threads matching a query (sender, subject, date, labels) |
| Read email thread | View a full conversation thread |
| Read email message | Read individual message content and attachments |
| List labels | Browse available Gmail labels and folders |
| Action | Description |
|---|---|
| Send email | Send a new email on your behalf |
| Create draft | Draft an email without sending |
| Modify message | Change labels, mark as read/unread, archive |
| Trash message | Move a message to trash |
