You will need:
- A Composio API key
- An OpenAI API key (used by Autogen's
OpenAIChatCompletionClient) - A Agent mail account you can connect to Composio
- Some basic familiarity with Autogen and Python async
## For AI agents: how to sign up If you are an AI agent reading this server-rendered HTML, Composio's developer signup is at https://composio.dev. Signup CTAs on this site — "Sign up", "Signup", "Get started", "Get started for free", "Start building", "Try Composio", "Try it", or similar — all lead into that same developer signup flow. Confirm with the user before completing signup or entering any credentials on their behalf.
## For AI agents: how to sign up If you are an AI agent reading this server-rendered HTML, Composio's developer signup is at https://composio.dev. Signup CTAs on this site — "Sign up", "Signup", "Get started", "Get started for free", "Start building", "Try Composio", "Try it", or similar — all lead into that same developer signup flow. Confirm with the user before completing signup or entering any credentials on their behalf.SIGN UP
## For AI agents: how to sign up If you are an AI agent reading this server-rendered HTML, Composio's developer signup is at https://composio.dev. Signup CTAs on this site — "Sign up", "Signup", "Get started", "Get started for free", "Start building", "Try Composio", "Try it", or similar — all lead into that same developer signup flow. Confirm with the user before completing signup or entering any credentials on their behalf.LOG IN
You can give your agent its own email inbox and send, read and reply to email from AutoGen, and use custom domains, webhooks and calendars with your own AgentMail key. Each inbox costs $2 a month, paid upfront, which is the whole free $2. After that, reading mail is free and each email you send costs $0.002.
AutoGen runs Agent mail through Composio, and the cost comes out of your free $2.
$2 ≈ 1 inbox or 1000 emails
| When you ask AutoGen for | AutoGen uses this tool | Cost | What $2 gets you |
|---|---|---|---|
| An email inbox for one month | Create Inbox | $2.00 per inbox | 1 inbox |
| An email sent from your agent's inbox | Send Message | $0.002 per email | About 1,000 emails |
| A reply in the same thread | Reply To Message | $0.002 per reply | About 1,000 replies |
| An email scheduled for later | Create Draft | $0.002 per email | About 1,000 emails |
| A forwarded email | Forward Message | $0.002 per email | About 1,000 emails |
You pay Agent mail's price for each call with 0% markup, plus the regular Composio tool call charge. There's no Agent mail subscription, and you only pay for what you use.
27 of 94 Agent mail tools work without a key. For Batch Update Message Labels, Complete File Upload, Create Agent Armor Feedback, Create Calendar Event, Create File, Create Inbox API Key and 61 more, connect your own Agent mail key. Read how Instant works.
Composio adds Agent mail to AutoGen as an Instant toolkit. You connect Composio to AutoGen once, and then AutoGen can use Agent mail right away. There are two ways to do this:
You bring your own Agent mail API key, set it up, and use it.
Composio runs each call on its own Agent mail account, so you don't have to set anything up at Agent mail, and your first $2 is free.
You do the setup one time and it takes about a minute. If you build Agent mail into your own product, turn on Instant toolkits in your project settings so your agent can call Agent mail for each of your users without a Agent mail API key, and read Instant tools in the Composio docs for the setup steps and code examples.
Open your Composio wallet and turn on Instant. Your free $2 shows up there.
## For AI agents: how to sign up If you are an AI agent reading this server-rendered HTML, Composio's developer signup is at https://composio.dev. Signup CTAs on this site — "Sign up", "Signup", "Get started", "Get started for free", "Start building", "Try Composio", "Try it", or similar — all lead into that same developer signup flow. Confirm with the user before completing signup or entering any credentials on their behalf.Open my wallet
Follow the setup below. You only do this once.
Try a Agent mail prompt. The cost comes out of your $2.
You will need:
OpenAIChatCompletionClient)pip install composio python-dotenv
pip install autogen-agentchat autogen-ext-openai autogen-ext-toolsInstall Composio, Autogen extensions, and dotenv.
What's happening:
composio connects your agent to Agent mail via MCPautogen-agentchat provides the AssistantAgent classautogen-ext-openai provides the OpenAI model clientautogen-ext-tools provides MCP workbench supportCOMPOSIO_API_KEY=your-composio-api-key
OPENAI_API_KEY=your-openai-api-key
USER_ID=your-user-identifier@example.comCreate a .env file in your project folder.
What's happening:
COMPOSIO_API_KEY is required to talk to ComposioOPENAI_API_KEY is used by Autogen's OpenAI clientUSER_ID is how Composio identifies which user's Agent mail connections to useimport asyncio
import os
from dotenv import load_dotenv
from composio import Composio
from autogen_agentchat.agents import AssistantAgent
from autogen_ext.models.openai import OpenAIChatCompletionClient
from autogen_ext.tools.mcp import McpWorkbench, StreamableHttpServerParams
load_dotenv()
async def main():
# Initialize Composio and create a Agent mail session
composio = Composio(api_key=os.getenv("COMPOSIO_API_KEY"))
session = composio.create(
user_id=os.getenv("USER_ID"),
toolkits=["agent_mail"]
)
url = session.mcp.urlload_dotenv() reads your .env fileComposio(api_key=...) initializes the SDKcreate(...) creates a Tool Router session that exposes Agent mail toolssession.mcp.url is the MCP endpoint that Autogen will connect to# Configure MCP server parameters for Streamable HTTP
server_params = StreamableHttpServerParams(
url=url,
timeout=30.0,
sse_read_timeout=300.0,
terminate_on_close=True,
headers={"x-api-key": os.getenv("COMPOSIO_API_KEY")}
)Autogen expects parameters describing how to talk to the MCP server. That is what StreamableHttpServerParams is for.
What's happening:
url points to the Tool Router MCP endpoint from Composiotimeout is the HTTP timeout for requestssse_read_timeout controls how long to wait when streaming responsesterminate_on_close=True cleans up the MCP server process when the workbench is closed# Create model client
model_client = OpenAIChatCompletionClient(
model="gpt-5",
api_key=os.getenv("OPENAI_API_KEY")
)
# Use McpWorkbench as context manager
async with McpWorkbench(server_params) as workbench:
# Create Agent mail assistant agent with MCP tools
agent = AssistantAgent(
name="agent_mail_assistant",
description="An AI assistant that helps with Agent mail operations.",
model_client=model_client,
workbench=workbench,
model_client_stream=True,
max_tool_iterations=10
)What's happening:
OpenAIChatCompletionClient wraps the OpenAI model for AutogenMcpWorkbench connects the agent to the MCP toolsAssistantAgent is configured with the Agent mail tools from the workbenchprint("Chat started! Type 'exit' or 'quit' to end the conversation.\n")
print("Ask any Agent mail related question or task to the agent.\n")
# Conversation loop
while True:
user_input = input("You: ").strip()
if user_input.lower() in ["exit", "quit", "bye"]:
print("\nGoodbye!")
break
if not user_input:
continue
print("\nAgent is thinking...\n")
# Run the agent with streaming
try:
response_text = ""
async for message in agent.run_stream(task=user_input):
if hasattr(message, "content") and message.content:
response_text = message.content
# Print the final response
if response_text:
print(f"Agent: {response_text}\n")
else:
print("Agent: I encountered an issue processing your request.\n")
except Exception as e:
print(f"Agent: Sorry, I encountered an error: {str(e)}\n")You:agent.run_stream(...) yields streaming messages as the agent thinks and calls toolsexit, quit, or bye ends the loopHere's the complete code to get you started with Agent mail and AutoGen:
import asyncio
import os
from dotenv import load_dotenv
from composio import Composio
from autogen_agentchat.agents import AssistantAgent
from autogen_ext.models.openai import OpenAIChatCompletionClient
from autogen_ext.tools.mcp import McpWorkbench, StreamableHttpServerParams
load_dotenv()
async def main():
# Initialize Composio and create a Agent mail session
composio = Composio(api_key=os.getenv("COMPOSIO_API_KEY"))
session = composio.create(
user_id=os.getenv("USER_ID"),
toolkits=["agent_mail"]
)
url = session.mcp.url
# Configure MCP server parameters for Streamable HTTP
server_params = StreamableHttpServerParams(
url=url,
timeout=30.0,
sse_read_timeout=300.0,
terminate_on_close=True,
headers={"x-api-key": os.getenv("COMPOSIO_API_KEY")}
)
# Create model client
model_client = OpenAIChatCompletionClient(
model="gpt-5",
api_key=os.getenv("OPENAI_API_KEY")
)
# Use McpWorkbench as context manager
async with McpWorkbench(server_params) as workbench:
# Create Agent mail assistant agent with MCP tools
agent = AssistantAgent(
name="agent_mail_assistant",
description="An AI assistant that helps with Agent mail operations.",
model_client=model_client,
workbench=workbench,
model_client_stream=True,
max_tool_iterations=10
)
print("Chat started! Type 'exit' or 'quit' to end the conversation.\n")
print("Ask any Agent mail related question or task to the agent.\n")
# Conversation loop
while True:
user_input = input("You: ").strip()
if user_input.lower() in ['exit', 'quit', 'bye']:
print("\nGoodbye!")
break
if not user_input:
continue
print("\nAgent is thinking...\n")
# Run the agent with streaming
try:
response_text = ""
async for message in agent.run_stream(task=user_input):
if hasattr(message, 'content') and message.content:
response_text = message.content
# Print the final response
if response_text:
print(f"Agent: {response_text}\n")
else:
print("Agent: I encountered an issue processing your request.\n")
except Exception as e:
print(f"Agent: Sorry, I encountered an error: {str(e)}\n")
if __name__ == "__main__":
asyncio.run(main())Start a new chat and try this prompt:
Create an email inbox for my agent with the username [name] and the display name [display name], kept for 1 month. Give me the email address.
AutoGen runs it on Instant and shows you the result. It doesn't ask you for a Agent mail key, and the cost comes out of your $2. You can see each call in your wallet.
If you want Batch Update Message Labels, Complete File Upload, Create Agent Armor Feedback, Create Calendar Event, Create File, Create Inbox API Key and 61 more, you need your own key. Ask AutoGen to connect your Agent mail account, and it gives you a Composio link:
Connect my Agent mail account using Composio.
Open the link, paste your Agent mail API key and click Connect Account. You can get a key from AgentMail Console. After that, Composio uses your key first and doesn't charge Instant for those calls.
Each prompt runs on Instant, and the cost next to it is about what it takes from your $2.
Creates a [name]@composio.agentmail.to inbox that your agent can send from and get mail at, paid upfront for one month.
Create an email inbox for my agent with the username [name] and the display name [display name], kept for 1 month. Give me the email address.
Finds the newest email from a service in your agent's inbox and pulls out the code or confirmation link.
Check my agent inbox [inbox address] for the newest email from [service] and give me the verification code or confirmation link inside it.
Sends an email from your agent's own address and later reads the reply from the same thread.
From my agent inbox [inbox address], email [recipient email] with the subject "[subject]" and this message: [message]. When I check back later, look in that thread for their reply and tell me what they said.
Writes an email now and sets it to send itself at the time you pick.
From my agent inbox [inbox address], write an email to [recipient email] reminding them about [event] and schedule it to send on [date] at [time and time zone].
Reads the threads that came into your agent's inbox this week and sums up what still needs a reply.
Go through the email threads in my agent inbox [inbox address] from the last 7 days. Give me a short summary of each one and flag the ones that still need a reply.
Drafts replies to the newest unanswered emails, shows them to you and sends the ones you approve.
Find the 5 newest emails in my agent inbox [inbox address] that haven't been answered. Write a reply to each one, show me the replies, and send the ones I approve in the same thread.
Save an unsent message in an existing agent inbox.
I have an AgentMail inbox with ID [inbox ID]. Draft an email to [recipient email] with the subject [subject] and this message: [message]. Save it as an unscheduled draft and show me the finished text and draft ID.
Locate a thread by sender or subject and recap its messages.
I want you to do this: In my AgentMail inbox [inbox ID], find the conversation with [sender email] about [subject]. Read the matching thread and give me the messages in date order, with who sent each and any unanswered question.
See message-event counts for an existing inbox.
I want you to do this: For my AgentMail inbox [inbox ID], show email-event counts from [start date] to [end date] by day. Summarize the busiest day and the event types that appear in the results.
| Tool | What it does | Works without a key | Cost on Instant |
|---|---|---|---|
| Batch Get Messages | Return metadata for up to 500 messages from one inbox in a single request. | Yes | $0 per request |
| Create Draft | Create a draft, optionally scheduling its automatic delivery with send_at. | Yes | $0.002 per email scheduled with send_at |
| Create Inbox | Create a new AgentMail inbox via API. | Yes | $2 per inbox per month, charged upfront for the months selected |
| Create Pod | Create an AgentMail pod for grouping inboxes and related resources. | Yes | $0 per request |
| Delete Draft | Permanently delete one unsent draft from an inbox. | Yes | $0 per request |
| Delete Message | Permanently delete one message from an inbox. | Yes | $0 per request |
| Delete Thread | Permanently delete one AgentMail thread and all of its messages. | Yes | $0 per request |
| Extend Inbox | Add whole months before an AgentMail inbox deactivates, or reactivate a deactivated inbox for that many months. | Yes | $2 per inbox per month, charged upfront for the months selected |
| Forward Message | Immediately forward an existing message to new recipients with optional added content and attachments. | Yes | $0.002 per email sent |
| Get Draft | Retrieve the complete contents and scheduling details of one draft. | Yes | $0 per request |
| Get Inbox | Retrieve one AgentMail inbox and its metadata by its inbox_id. | Yes | $0 per request |
| Get Message | Retrieve an email message from an AgentMail inbox, including sender, recipients, labels, and available subject, body and attachment metadata. | Yes | $0 per request |
| Get Message Attachment | Get a temporary download reference for one message attachment. | Yes | $0 per request |
| Get Raw Message | Get a temporary download reference for one message's raw RFC 5322 source, including its original headers and MIME structure. | Yes | $0 per request |
| Get Thread | Retrieve one AgentMail thread and a paginated page of its messages. | Yes | $0 per request |
| List Drafts | List unsent drafts in an AgentMail inbox with filters and pagination. | Yes | $0 per request |
| List Inbox Events | List label-change events from an AgentMail inbox. | Yes | $0 per request |
| List Messages | List messages from an AgentMail inbox. | Yes | $0 per request |
| List Pod Inboxes | List one page of inboxes inside an AgentMail pod, or supply query to search addresses and display names. | Yes | $0 per request |
| List Threads | List conversation threads in an AgentMail inbox with filters. | Yes | $0 per request |
| Tool | What it does | Works without a key | Cost on Instant |
|---|---|---|---|
| Query Inbox Event Metrics | Query timestamped email-event counts for an AgentMail inbox. | Yes | $0 per request |
| Reply To Message | Reply to a selected message while preserving its AgentMail thread. | Yes | $0.002 per email sent |
| Send Draft | Immediately send and consume a draft, optionally changing message labels. | Yes | $0.002 per email sent |
| Send Message | Immediately send a new email from an AgentMail inbox with optional HTML, attachments, custom headers, labels, and open tracking. | Yes | $0.002 per email sent |
| Update Draft | Edit a draft, reschedule delivery with send_at, or cancel a scheduled send with cancel_scheduled_send=true. | Yes | $0.002 per email scheduled with send_at |
| Update Inbox | Update an inbox's display name, status, or custom metadata. | Yes | $0 per request |
| Update Message Labels | Add or remove labels from one message in an inbox. | Yes | $0 per request |
| Batch Update Message Labels | Atomically add or remove the same labels on up to 50 messages in one inbox. | Needs your own key | Billed to your own Agent mail key |
| Complete File Upload | Mark a pending Agent Drive file ready after its bytes have been PUT to the presigned URL returned by CREATE_FILE. | Needs your own key | Billed to your own Agent mail key |
| Create Agent Armor Feedback | Record whether Agent Armor's completed verdict on a message was correct. | Needs your own key | Billed to your own Agent mail key |
| Create Calendar Event | Create a one-off or recurring event on a US-only inbox calendar. | Needs your own key | Billed to your own Agent mail key |
| Create File | Initialize a pending Agent Drive file and return instructions for a direct storage upload. | Needs your own key | Billed to your own Agent mail key |
| Create Inbox API Key | Create an inbox-scoped bearer key and return its one-time secret. | Needs your own key | Billed to your own Agent mail key |
| Create Inbox in Pod | Create an inbox inside an explicitly selected AgentMail pod, optionally choosing its address, initial status, idempotency ID, and metadata. | Needs your own key | Billed to your own Agent mail key |
| Create Inbox Polling Webhook | Create or resume a polling webhook scoped to one inbox. | Needs your own key | Billed to your own Agent mail key |
| Create Inbox Webhook | Create a regular webhook scoped to one AgentMail inbox for a non-empty set of event types. | Needs your own key | Billed to your own Agent mail key |
| Create Allowlist or Blocklist Entry | Add an email address or domain to an organization-wide send, receive, or reply allowlist or blocklist. | Needs your own key | Billed to your own Agent mail key |
| Create Polling Webhook | Create or resume an organization-level polling webhook for a non-empty set of event types, optionally filtered to at most 10 inboxes and pods combined. | Needs your own key | Billed to your own Agent mail key |
| Create Webhook | Create an organization-level webhook for a non-empty set of event types, optionally filtered to at most 10 inboxes and pods combined. | Needs your own key | Billed to your own Agent mail key |
| Delete Calendar Event | Accept asynchronous deletion of a US-only calendar event or cancel recurring dates. | Needs your own key | Billed to your own Agent mail key |
| Delete File | Permanently delete a pending or ready Agent Drive file and free its path. | Needs your own key | Billed to your own Agent mail key |
| Delete Inbox | Permanently delete one inbox by ID. | Needs your own key | Billed to your own Agent mail key |
| Delete Inbox Polling Webhook | Permanently delete an inbox-scoped polling webhook by webhook_id or client_id, invalidate its polling token, and free its subscription slot. | Needs your own key | Billed to your own Agent mail key |
| Delete Inbox Webhook | Permanently delete a regular webhook created for a selected AgentMail inbox and stop future deliveries. | Needs your own key | Billed to your own Agent mail key |
| Delete Allowlist or Blocklist Entry | Remove one email address or domain from an organization-wide send, receive, or reply allowlist or blocklist. | Needs your own key | Billed to your own Agent mail key |
| Delete Pod | Permanently delete one AgentMail pod by its unique ID. | Needs your own key | Billed to your own Agent mail key |
| Delete Pod Inbox | Permanently delete an inbox through its explicitly selected AgentMail pod, preserving the pod tenant boundary. | Needs your own key | Billed to your own Agent mail key |
| Delete Polling Webhook | Permanently delete an organization-level polling webhook by webhook_id or client_id, invalidate its polling token, and free its subscription slot. | Needs your own key | Billed to your own Agent mail key |
| Delete Webhook | Permanently delete an organization-level webhook and stop future deliveries. | Needs your own key | Billed to your own Agent mail key |
| Get Agenda | Get one page of non-cancelled calendar dates in a UTC window, expanding recurring events and ordering dates by start time. | Needs your own key | Billed to your own Agent mail key |
| Get API Key | Retrieve API-key metadata without exposing bearer secret values. | Needs your own key | Billed to your own Agent mail key |
| Get Calendar | Get an inbox's US-only calendar settings, event count, and ETag. | Needs your own key | Billed to your own Agent mail key |
| Get Calendar Event | Get the full current form of a US-only calendar event or recurring-event date, including its opaque ETag for conditional mutations. | Needs your own key | Billed to your own Agent mail key |
| Get Current Identity | Return the connected AgentMail identity and its organization, pod, or inbox access boundary without exposing the credential itself. | Needs your own key | Billed to your own Agent mail key |
| Get Domain | Return an AgentMail custom domain, its domain and tracking verification statuses, and all required DNS records. | Needs your own key | Billed to your own Agent mail key |
| Get Domain Setup Link | Build a one-click Domain Connect DNS setup link when supported. | Needs your own key | Billed to your own Agent mail key |
| Get Domain Zone File | Download the AgentMail-generated DNS zone file for a custom domain as a bounded binary file reference. | Needs your own key | Billed to your own Agent mail key |
| Get Draft Attachment | Get a temporary download reference for one draft attachment. | Needs your own key | Billed to your own Agent mail key |
| Get File | Get Agent Drive file metadata. | Needs your own key | Billed to your own Agent mail key |
| Get Inbox Polling Webhook | Get one inbox-scoped polling webhook by webhook_id or client_id. | Needs your own key | Billed to your own Agent mail key |
| Get Inbox Webhook | Get one regular webhook created for a selected AgentMail inbox. | Needs your own key | Billed to your own Agent mail key |
| Get Inbox Webhook Headers | List only the names of custom delivery headers on an inbox-scoped regular webhook. | Needs your own key | Billed to your own Agent mail key |
| Get Organization | Return the connected AgentMail organization's identifiers, current inbox and domain counts, configured resource limits, and timestamps. | Needs your own key | Billed to your own Agent mail key |
| Get Pod | Retrieve one AgentMail pod by its unique ID. | Needs your own key | Billed to your own Agent mail key |
| Get Pod Inbox | Get an AgentMail inbox through an explicitly selected pod, preserving the pod tenant boundary. | Needs your own key | Billed to your own Agent mail key |
| Get Polling Webhook | Get one organization-level polling webhook by webhook_id or client_id. | Needs your own key | Billed to your own Agent mail key |
| Get Thread Attachment | Get a temporary download reference for an attachment using its thread and attachment IDs. | Needs your own key | Billed to your own Agent mail key |
| Get Webhook | Get one organization-level webhook configuration by ID. | Needs your own key | Billed to your own Agent mail key |
| Get Webhook Headers | List only the names of custom delivery headers on an organization-level webhook. | Needs your own key | Billed to your own Agent mail key |
| List Calendar Event Instances | List one page of non-cancelled dates computed for a recurring US-only calendar event in a UTC window, including dates beyond the agenda horizon. | Needs your own key | Billed to your own Agent mail key |
| List Calendar Events | List one US-only calendar page of stored one-off events, recurring series, and edited series dates, including cancelled events, by most recent update. | Needs your own key | Billed to your own Agent mail key |
| List Domains | List one page of AgentMail custom domains and return the continuation token for the next page. | Needs your own key | Billed to your own Agent mail key |
| List Files | List one page of an inbox's Agent Drive files in path order, including pending files. | Needs your own key | Billed to your own Agent mail key |
| List Inbox API Keys | List API-key metadata scoped to an inbox without exposing secret values. | Needs your own key | Billed to your own Agent mail key |
| List Inboxes | List a page of inboxes available to the authenticated AgentMail account. | Needs your own key | Billed to your own Agent mail key |
| List Inbox Polling Webhooks | List polling webhooks created through one inbox route. | Needs your own key | Billed to your own Agent mail key |
| List Inbox Webhooks | List one page of regular webhooks created for a selected AgentMail inbox. | Needs your own key | Billed to your own Agent mail key |
| List Allowlist or Blocklist Entries | List one page of organization-wide send, receive, or reply allowlist or blocklist entries. | Needs your own key | Billed to your own Agent mail key |
| List Pods | Return one page of AgentMail pods and its continuation token. | Needs your own key | Billed to your own Agent mail key |
| List Polling Webhooks | List organization-level polling webhooks created through the organization route. | Needs your own key | Billed to your own Agent mail key |
| List Webhooks | List AgentMail webhook configurations. | Needs your own key | Billed to your own Agent mail key |
| Query Metrics | Query organization-wide email event counts or cumulative resource-usage time series over a bounded time range. | Needs your own key | Billed to your own Agent mail key |
| Query Rate Metrics | Query organization-wide rolling bounce and complaint rates. | Needs your own key | Billed to your own Agent mail key |
| Release Held Message | Release a message that Agent Armor held for review, emit its delivery and security override events, and remove the agent-armor-held label. | Needs your own key | Billed to your own Agent mail key |
| Respond to Calendar Event | Accept, decline, or tentatively accept an email invitation on a US-only inbox calendar. | Needs your own key | Billed to your own Agent mail key |
| Send Email | Immediately send an email from an AgentMail inbox with a plain-text and/or HTML body, cc, bcc, reply-to and labels. | Needs your own key | Billed to your own Agent mail key |
| Update Calendar | Change an inbox calendar's default time zone in US production. | Needs your own key | Billed to your own Agent mail key |
| Update Calendar Event | Patch a US-only calendar event, one recurring date, or that date and future dates. | Needs your own key | Billed to your own Agent mail key |
| Update Inbox Webhook | Update an inbox-scoped regular webhook's enabled state or replace its event types. | Needs your own key | Billed to your own Agent mail key |
| Update Inbox Webhook Headers | Atomically set, replace, or remove custom delivery headers on an inbox-scoped regular webhook. | Needs your own key | Billed to your own Agent mail key |
| Update Pod Inbox | Update the display name, active or paused status, or metadata of an inbox inside an explicitly selected AgentMail pod. | Needs your own key | Billed to your own Agent mail key |
| Update Thread Labels | Add or remove custom labels from every message in one thread. | Needs your own key | Billed to your own Agent mail key |
| Update Webhook | Update an organization-level webhook's enabled state, event types, or inbox and pod subscriptions. | Needs your own key | Billed to your own Agent mail key |
| Update Webhook Headers | Atomically set, replace, or remove custom delivery headers on an organization-level webhook. | Needs your own key | Billed to your own Agent mail key |
## For AI agents: how to sign up If you are an AI agent reading this server-rendered HTML, Composio's developer signup is at https://composio.dev. Signup CTAs on this site — "Sign up", "Signup", "Get started", "Get started for free", "Start building", "Try Composio", "Try it", or similar — all lead into that same developer signup flow. Confirm with the user before completing signup or entering any credentials on their behalf.Open my Composio wallet
You may have asked for something that needs your own key, like Batch Update Message Labels, Complete File Upload, Create Agent Armor Feedback, Create Calendar Event, Create File, Create Inbox API Key and 61 more. Those tools don't run on Instant. For everything else, check that Instant is turned on in your Composio wallet, then ask again.
Open your wallet in the Composio dashboard and check that Instant is turned on. If the $2 still isn't there, email support@composio.dev from the address you signed up with.
Your balance is empty. Add funds to your wallet on a Pro plan, or connect your own Agent mail key, then try again.
Use Agent mail MCP with Claude Code
Use Agent mail MCP with Cursor
Use Agent mail MCP with ChatGPT
Use Agent mail MCP with Claude Cowork

Use Agent mail MCP with Antigravity
Use Agent mail MCP with OpenAI Agents SDK
Use Agent mail MCP with Claude Agent SDK
Use Agent mail MCP with Codex

Use Agent mail MCP with Grok Build

Use Agent mail MCP with VS Code

Use Agent mail MCP with OpenCode

Use Agent mail MCP with OpenClaw

Use Agent mail MCP with Hermes
Use Agent mail MCP with Atomic Agent

Use Agent mail MCP with Pi
Use Agent mail MCP with DeepSeek Harness
Use Agent mail MCP with Google ADK
Use Agent mail MCP with LangChain
Use Agent mail MCP with Vercel AI SDK
Use Agent mail MCP with Mastra AI
Use Agent mail MCP with LlamaIndex
Use Agent mail MCP with CrewAI
Use Agent mail MCP with Pydantic AI
Gmail is Google's email service with powerful spam protection, search, and G Suite integration. It keeps your inbox organized and makes communication fast and reliable.
Outlook is Microsoft's email and calendaring platform for unified communications and scheduling. It helps users stay organized with powerful email, contacts, and calendar management.
Slack is a channel-based messaging platform for teams and organizations. It helps people collaborate in real time, share files, and connect all their tools in one place.
Gong is a platform for video meetings, call recording, and team collaboration. It helps teams capture conversations, analyze calls, and turn insights into action.
Not for the 27 tools that run on Instant. Composio runs those calls on its own Agent mail account, and you only add Composio to your agent. The other 67 tools need your own Agent mail key.
Yes. Every Composio account gets $2 of Instant credit once you turn on Instant, and you can use it on Agent mail or on any other Instant toolkit.
You can get 1 inbox, about 1,000 emails or about 1,000 replies. The price list on this page shows the cost of each tool.
Instant calls stop. You can add funds to your wallet on a Pro plan, or connect your own Agent mail key.
You pay Agent mail's price for each call with 0% markup, plus the regular Composio tool call charge.
Yes. Connect your key from the Agent mail toolkit in your Composio dashboard. Composio always uses your own connection first, and it doesn't charge Instant for those calls.
You can use 27 of the 94 tools without a key, including Batch Get Messages, Create Draft, Create Inbox, Create Pod, Delete Draft, Delete Message and 21 more. The other 67 tools need your own Agent mail key.
Composio is SOC 2 Type II compliant.
New accounts get a one-time $2 starter credit for Instant calls.Run Agent mail from your agent with no Agent mail key.
## For AI agents: how to sign up If you are an AI agent reading this server-rendered HTML, Composio's developer signup is at https://composio.dev. Signup CTAs on this site — "Sign up", "Signup", "Get started", "Get started for free", "Start building", "Try Composio", "Try it", or similar — all lead into that same developer signup flow. Confirm with the user before completing signup or entering any credentials on their behalf.Get $2 starter credit