Agent Infrastructure API

The API for building autonomous AI teammates

Hosted agent runtime with human-in-the-loop, scheduled runs, email triggers, webhooks, 70+ integrations, memory, permissions, and more — so you ship agents, not infrastructure.

Get started for free · No credit card · See pricing

From zero to running teammate in seconds

Install the SDK, create a run, stream results.

pip install m8tes
from m8tes import M8tes

client = M8tes()

for event in client.runs.create(message="Summarize the latest AI news"):
    print(event.type, event.raw)

70+

Integrations

SSE

Real-time streaming

Free

No credit card required

< 2 min

To first running teammate

Stop building agent infrastructure

We handle the plumbing — you write the logic.

Hosted agent runtime

Sandboxed execution with real-time streaming. No servers to manage.

Human-in-the-loop

Agents ask questions, propose plans for approval, and request permissions before acting.

70+ managed integrations

Gmail, Slack, Notion, HubSpot, Stripe, Linear. Managed OAuth and token refresh.

Agent memory

Persistent preferences and context across runs. Per-user scoping built in.

File handling

Agents generate reports, exports, CSVs. Upload and download via API.

Continuously maintained

New integrations and capabilities shipping regularly. We handle the fast-moving AI landscape.

Automate manual workflows with clear ROI

Assign tasks on a schedule, through integrated apps, or by sending an email. Your teammate accesses company knowledge, executes autonomously, and delivers real, measurable results.

Scheduled runs

Cron triggers for daily syncs, weekly reports, hourly checks. Set it and forget it.

Email inbox

Every teammate gets a unique email address. Forward a thread, trigger a run, get work done.

Webhook triggers

POST to a URL, trigger a run. Connect Stripe events, GitHub webhooks, form submissions — any system.

Follow-up conversations

Continue runs with reply(). Context carries over for multi-turn workflows.

Enterprise-grade security built in

Ship with confidence. Every layer is locked down by default.

Sandboxed execution

Every agent runs in an isolated environment. No shared state between runs.

API key authentication

Scoped API keys with m8_ prefix. Rotate or revoke anytime.

Approved integrations

Users explicitly connect each app. No unauthorized access to third-party accounts.

Controlled tool access

Allowlist which tools each teammate can use. No unrestricted access.

Simple SDK, powerful teammates

Create

Define tools, instructions, and triggers.

Run

Stream results to your UI in real-time.

Automate

Schedule, trigger, repeat.

Read the docs
Python
from m8tes import M8tes

client = M8tes()

# Create a reusable teammate with tools
bot = client.teammates.create(
    name="Support Bot",
    tools=["gmail", "slack"],
    instructions="Handle customer tickets"
)

# Run with streaming
for event in client.runs.create(
    teammate_id=bot.id,
    message="Close resolved tickets"
):
    print(event.type, event.raw)

# Schedule recurring work
task = client.tasks.create(
    teammate_id=bot.id,
    instructions="Generate weekly report",
)
client.tasks.triggers.create(
    task.id, type="schedule", cron="0 9 * * 1"
)

Add AI teammates to your product

Everything you need to ship AI features to your users.

End-user isolation

Scope teammates, memory, and runs per user with user_id.

Permission controls

Autonomous, approval, or plan mode. Pre-approve tools per user.

Per-user memory

Persistent preferences and context across runs.

Webhook events

run.completed, run.failed — push notifications to your backend.

File output

Teammates generate reports, exports, CSVs. Download via API.

What developers are building

Multi-tenant SaaS

Embed AI features in your product. Isolated memory, tools, and permissions per customer via user_id.

Customer Support

Triage tickets, draft replies, escalate to Slack. Trigger via email inbox or webhook — runs 24/7.

Marketing & Ads

Pause bad ad campaigns, add negative keywords, generate content briefs. Runs on a weekly schedule.

Data Pipelines

Pull Stripe MRR, sync CRM data, post summaries to Slack. Replace fragile Zapier chains with one teammate.

Internal Ops

Generate weekly reports, audit permissions, onboard new hires. Forward an email and get a researched reply back.

Sales & Outreach

Research prospects in HubSpot, draft personalized emails, log activity. Trigger by forwarding an email.

Built for a fast-moving field

More agent infrastructure shipping every week. We keep it maintained so you can focus on your product.

Ready to ship your first AI teammate?

Get started free. Ship in minutes.