opencode

Connect OpenCode to Gmail

Give an AI agent your Gmail as a tool and it works the inbox instead of just talking about it. It can fetch a message or thread, forward it, create and delete drafts, add and remove labels, and read your profile, calling each operation as a tool as it moves through a task. Wire it into a hosted coding agent in NoClick and it can triage a thread, draft the reply, and file everything under the right label on its own.
Loading preview…
Opens a workflow with 28 tools ready to use.

What happens next

Set up in minutes

The open button drops you into a guided setup. It asks exactly this, nothing else:
  1. Choose where it runs

    On your computer through your own OpenCode, or hosted in the cloud. The rest of setup adapts to your choice:

  2. Pick what it can do in Gmail

    A preset of real Gmail operations. Each one becomes a tool the agent can call, and it can't touch anything outside the list.

  3. Connect Gmail

    One sign-in. The agent acts through your account, scoped to the operations you picked.

  4. Add your personal MCP link

    The last step mints a private MCP URL for this agent and walks you through exactly this, with your real link filled in. The page flips to Connected the moment your OpenCode first calls in. opencode mcp add only saves the config. OpenCode connects when it starts — run opencode, or restart a running one.

    1. Run this in your terminal

    $opencode mcp add

    2. Choose Remote and paste your server URL

    https://mcp.noclick.app/s/<your-link>

    3. Choose No when asked about OAuth authentication — the link itself is the key

    <your-link> is your personal server URL — setup mints it for you.

Exact capabilities

Tools OpenCode gets

Pick the operations you want and each becomes a tool the agent can call directly while it works.

Gmail

28 tools
Send Email Message

Configuration for sending an email

Fetch Emails from Inbox

Configuration for reading emails from inbox

Fetch Email Message

Configuration for getting a specific message

Fetch Email Attachment

Configuration for fetching a message attachment

Permanently Delete Message

Configuration for permanently deleting a message

Move Message to Trash

Configuration for moving a message to trash

Restore Message from Trash

Configuration for removing a message from trash

Update Message Labels

Configuration for modifying message labels

Reply to Email Message

Configuration for replying to an email

Forward Email Message

Configuration for forwarding an email

Create Email Draft

Configuration for creating a draft

List Email Drafts

Configuration for listing drafts

Fetch Email Draft

Configuration for getting a specific draft

Update Email Draft

Configuration for updating a draft

Delete Email Draft

Configuration for deleting a draft

Send Email Draft

Configuration for sending a draft

List Email Labels

Configuration for listing all labels

Create Email Label

Configuration for creating a label

Fetch Email Label

Configuration for getting a label

Update Email Label

Configuration for updating a label

Delete Email Label

Configuration for deleting a label

List Email Threads

Configuration for listing threads

Fetch Email Thread

Configuration for getting a specific thread

Move Thread to Trash

Configuration for moving a thread to trash

Restore Thread from Trash

Configuration for restoring a thread from trash

Update Thread Labels

Configuration for modifying thread labels

Permanently Delete Thread

Configuration for permanently deleting a thread

Fetch User Profile

Configuration for getting user profile

Starting points

What you can build

Send an email with a generated report whenever an upstream node produces results.
Trigger a workflow on new unread emails matching a search query, then process each one.
Auto-reply to incoming messages with a templated answer based on their content.
Read recent inbox emails and pass them to an AI node to produce a daily summary.
Apply or remove labels to sort messages into folders as part of an inbox-cleanup flow.
Forward invoices from a specific sender to your accounting team automatically.

Meet the runner

About OpenCode

OpenCode is an open, model-agnostic command-line coding agent. In NoClick it runs hosted and gains your apps as tools, so it can act on real systems rather than just edit files. Wire an integration into the agent and OpenCode can use that app’s operations directly while it works. It is a flexible choice when you want an open agent with broad model support and real tool access.
Open and model-agnostic
Flexible across many underlying models
Good general-purpose tool use
Lightweight to point at a focused task

Good to know

Frequently asked questions

Keep exploring

More ways to connect

Make it yours

Open your OpenCode agent in one click.

NoClick runs OpenCode for you with Gmail wired in as tools. Connect your account and run.