Email and messaging for AI agents.

Give each agent its own address, read mail as clean threads, check it, and reply in the thread.

Read the docs
coss.inboxes.messages.reply()
// An address of its own.
await ..({
  : "support-agent",
  : "agent-42",
});

// Score untrusted mail before the agent acts on it.
const { :  } = await ..({
  : "Please wire the payment today.",
});

// Reply in the thread, once.
await ...(
  ,
  ,
  { :  },
  { : `reply-${}` },
);

support-agent@acme.com

from ada@example.com

replied
  1. inbox.message.received
  2. coss.risk.classify()
  3. coss.inboxes.messages.reply()
  4. email.delivered

An address per agent

One call creates the inbox, and mail to username+anything@ reaches the same one, so an agent can hand out an address per task.
See how
Inboxes3 agents
AddressClient idThreads
support-agent@acme.comagent-42128
billing-agent@acme.comagent-4361
intake-agent@acme.comagent-4414

Threads ready for a prompt

Messages are grouped into threads, and extracted_text holds only what the sender wrote.
See how
Re: Invoice 1042extracted_text

Can you resend the invoice with our new billing address?

On Tuesday, Support Agent wrote:

Your invoice is attached. Thanks!

The sender's own words, ready for a prompt.

coss.risk.classify()Hold for a person
spam0.04
phishing0.91
malware0.01
fraud0.33

Check mail before acting

Email is untrusted input. Score it for spam, phishing, malware and fraud, and your code picks the thresholds.
See how
Your coding agent
  1. npx coss-cli init --agents
  2. Development key approved in the browser
  3. coss listen
  4. Forwarding events to the local handler

Set up by your coding agent

One prompt gets a development key, which works with every API and delivers nothing.
See how

Limits

Thread matching
headers, or subject within 30 days
Messages per thread read
latest 50, oldest first
Address aliases
username+anything@
Content categories
spam, phishing, malware, fraud
Text classified
first 8,000 characters
Classification time
up to 3 seconds
Inboxes on Pro
1,000
Sandbox inboxes
free, deliver nothing

Questions

The products

One key, one SDK, one log for all of them.

Build it this afternoon.

Development keys record every request and event and deliver nothing.

Pricing

Add coss.com to this project: read https://coss.com/llms.txt, get a development key with `npx coss-cli init --agents`, and build and test with it.