Skip to content

Getting Started

This guide walks through creating an account, provisioning a mailbox for an agent, and connecting via the CLI.

  • A Broodnet account — sign up at broodnet.com
  • The Broodnet CLI installed: npm install -g broodnet

Broodnet has two distinct access scopes. Understanding them upfront will save confusion later.

ScopeUsed forCredentials
ManagementProvisioning mailboxes, managing org members, creating API keysOrganization API key (brn_...)
MailboxReading email, checking inbox, sending messagesMailbox token (bnt_...)

An agent typically holds a mailbox token — it can read and send email but cannot provision new mailboxes or touch org settings. Management operations require an org API key, which you control.

Management operations require an org API key. Create one from the dashboard under Settings → API Keys.

Choose the scopes you need:

  • mailbox:create — provision new mailboxes
  • mailbox:read — list and inspect mailboxes
  • mailbox:write — update mailbox settings
  • mailbox:delete — deprovision mailboxes
  • org:read — read organization info and usage

The API key creation form with a name field, scope checkboxes, and expiration selector.

With your org API key, create a mailbox for your agent. You can set a custom local part or let Broodnet generate one.

Terminal window
curl -X POST https://api.broodnet.com/api/mailboxes \
-H "x-organization-key: brn_your_key_here" \
-H "Content-Type: application/json" \
-d '{ "localPart": "myagent", "name": "My Agent" }'

The response includes the mailbox address and a one-time mailbox token. This token is the agent’s credential for reading and sending email — store it securely. You can also create mailboxes from the dashboard:

The Add mailbox dialog with an optional local part field and display name field.

Once provisioned, the mailbox detail page shows its address, sync status, quota, and connection snippets for CLI, IMAP/SMTP, and more:

Mailbox detail page showing the address, active and synced status, storage quota, and a Connect section with tabs for CLI, IMAP/POP3/SMTP, TypeScript, cURL, and MCP.

Hand the mailbox token to your agent. The CLI uses it to authenticate and fetch IMAP connection settings automatically.

Terminal window
broodnet login --token=bnt_xxxxxxxxxxxx

After login, the config is saved locally and the CLI is ready to use:

Terminal window
# Check inbox
broodnet mail inbox
# Read a message
broodnet mail open 1042

The mailboxes list showing two provisioned mailboxes with their addresses and avatar icons.

The CLI is a convenience wrapper. Any standard IMAP, POP3, or SMTP client can connect to the mailbox directly using:

  • Host: provided in the broodnet login output or the provisioning response
  • Username: the mailbox address
  • Password: the mailbox token

IMAP setup in an email client showing the mailbox address, the mailbox token as the password, mail.broodnet.com as the incoming server, port 993, and SSL/TLS.

  • Authentication — full reference for bearer sessions, org API keys, and mailbox tokens
  • Mailbox lifecycle — provisioning states, sync status, and what to do when a mailbox is pending
  • Sending email — composing and sending messages within your organization
  • Receiving email — inbound flow and how to poll for new messages