New:Microsoft Teams Notifications Are Now Available in Socket.Learn more
Get Started

@agenticmail/enterprise

Package Overview
Dependencies
Maintainers
1
Versions
621
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@agenticmail/enterprise

AgenticMail Enterprise — cloud-hosted AI agent identity, email, auth & compliance for organizations

latest
Source
npmnpm
Version
0.5.615
Version published
Weekly downloads
696
-5.43%
Maintainers
1
Weekly downloads
 
Created
Source

@agenticmail/enterprise

The Complete AI Agent Workforce Platform

Deploy, manage, and govern AI agents as first-class employees — each with their own email, phone number, calendar, browser, tools, memory, and identity. Enterprise-grade security, compliance, and multi-tenant isolation built in.

GitHub App Install

New: AgenticMail for GitHub — tag @agenticmail in any issue or pull request and an AI agent reads the thread and replies inline. Free on the GitHub Marketplace.

npx @agenticmail/enterprise

One command. Interactive setup wizard. Full platform in under 2 minutes.

Getting Started (5 Minutes)

Get a free yourcompany.agenticmail.io subdomain — live in under 2 minutes.

npx @agenticmail/enterprise

The wizard will ask you to:

  • Select deploy target → Choose "AgenticMail Cloud"
  • Pick your subdomain → e.g., acme → your dashboard is at https://acme.agenticmail.io
  • Create admin account → Name, email, password
  • Done → Dashboard opens. Create your first agent.
$ npx @agenticmail/enterprise

  Deploy target: AgenticMail Cloud (free)
  Subdomain: acme.agenticmail.io
  ✓ Database provisioned
  ✓ Schema migrated (32 tables)
  ✓ Admin account created

  Dashboard: https://acme.agenticmail.io
  ✓ Live! Create your first agent →

No servers to manage. No Docker. No ports to open. No infra. Everything runs on our infrastructure — you just configure from the dashboard.

Option B: Self-Hosted

Same wizard, different deploy target:

npx @agenticmail/enterprise

The wizard walks you through:

  • Database — Pick SQLite (zero config) or paste a Postgres URL. We auto-detect Supabase/Neon and optimize connection pooling automatically.
  • Admin Account — Name, email, password
  • Deploy Target — Cloudflare Tunnel (free, no ports to open), Docker, Railway, Fly.io, or local
  • Dashboard — Opens automatically. Everything is managed from the UI.

Database Options

OptionBest ForSetup
SQLiteTrying it out, local devZero config — built-in
Supabase (Free)Production, cloudCreate free project → copy connection string
Any PostgresEnterprise, existing infraPaste your connection string
MySQL, MongoDB, etc.Special requirements10 backends supported — see Database Backends

Supabase users: The wizard auto-optimizes your connection string — switches to transaction mode, adds PgBouncer params, and generates a direct URL for migrations. Zero manual config.

What You Get

Once setup completes, open the dashboard and you'll see:

  • Setup Checklist — guided steps to configure email, create agents, etc.
  • Create Agent — pick from 51 personality templates or build your own
  • Full Admin Dashboard — 28 pages covering every aspect of agent management

Everything is managed from the dashboard — agent creation, permissions, email setup, channel connections, DLP rules, workforce schedules, compliance reports. No code needed.

Create Your First Agent

  • Click "Create Agent" in the dashboard
  • Choose a soul template (e.g., "Executive Assistant", "Sales Rep", "Developer")
  • Add your LLM API key in Settings → API Keys (or in the agent's config)
  • Configure permissions — set what tools the agent can use, package managers it can access, sudo privileges, etc.
  • Start the agent — it gets its own email, tools, and identity

What's Next?

  • Connect Gmail — Give your agent real email access via OAuth (Agent Detail → Email tab)
  • Add Telegram/WhatsApp — Connect messaging channels (Agent Detail → Channels tab)
  • Set up DLP — Apply pre-built rule packs to protect sensitive data (DLP page → Rule Packs)
  • Configure Shifts — Set work hours and on-call schedules (Workforce page)
  • Set Dependency Policy — Control what packages agents can install, allow sudo, set computer password (Agent Detail → Permissions tab)

Table of Contents

Why AgenticMail Enterprise

Most AI agent platforms give you a chatbot. We give you a workforce.

  • Real Identity — Each agent gets a real email address, phone number (Google Voice), Google Workspace access, and digital presence
  • Real Autonomy — Agents clock in/out, check email, respond to messages, join Google Meet calls and speak like humans, and work independently
  • Real Governance — DLP scanning, guardrails, approval workflows, compliance reporting, action journaling with rollback
  • Real Scale — Multi-tenant isolation, org-scoped everything, role-based access control, budget gates
  • Real Integration — 145 SaaS adapters, 13 Google Workspace tools, full browser automation, shell access, filesystem tools

By the Numbers

MetricCount
Source files770+
Engine modules82
Dashboard pages28 + 23 agent detail tabs
Documentation pages49
Database backends10
SaaS integration adapters145
Enterprise skill definitions52
Google Workspace tools13 services
Microsoft 365 tools13 services, 90+ tools
Agent tools270+ (smart tiered loading)
Soul templates51 (14 categories)
DLP rule packs7 (53 pre-built rules)
Compliance report types5 (SOC 2, GDPR, SOX, Incident, Access Review)

Quick Start

npx @agenticmail/enterprise

The wizard walks you through:

  • Database — Pick from 10 backends with smart auto-configuration (auto-detects Supabase/Neon pooler mode, generates direct URLs for migrations, adds ?pgbouncer=true automatically)
  • Admin Account — Name, email, password, company name
  • Email Delivery — Optional SMTP/OAuth setup
  • Custom Domain — Optional: point your own domain via Cloudflare tunnel
  • First Agent — Create your first AI agent with a soul template

Option B: Programmatic

import { createServer, createAdapter, smartDbConfig } from '@agenticmail/enterprise';

const db = await createAdapter(smartDbConfig(process.env.DATABASE_URL));
await db.migrate();

const server = createServer({
  port: 3000,
  db,
  jwtSecret: process.env.JWT_SECRET,
  runtime: {
    enabled: true,
    apiKeys: { anthropic: process.env.ANTHROPIC_API_KEY },
  },
});

await server.start();

Option C: Standalone Agent

Run an agent as its own process (recommended for production):

node dist/cli.js agent --env-file=.env.fola

Each agent runs independently with its own port, connects to the shared database, and registers with the main server for health checks and lifecycle management.

Architecture

┌──────────────────────────────────────────────────────────────┐
│                     Admin Dashboard (28 pages)                │
│         React · Dark/Light themes · Real-time updates         │
│   Agents · Workforce · DLP · Compliance · Vault · Knowledge   │
│   Activity · Journal · Guardrails · Task Pipeline · Audit     │
├──────────────────────────────────────────────────────────────┤
│                      Hono API Server                          │
│   Auth · Admin · Engine (82 modules) · Middleware (9 layers)  │
├──────────────────────────────────────────────────────────────┤
│                    Engine Core                                │
│  Lifecycle · Permissions · DLP · Guardrails · Compliance      │
│  Journal · Approvals · Policies · Knowledge · Memory          │
│  Communication · Workforce · Vault · Storage · Autonomy       │
│  Onboarding · Soul Library · Tool Catalog · OAuth Connect     │
│  Meeting Monitor · Voice Intelligence · Activity Tracking     │
├──────────────────────────────────────────────────────────────┤
│                   Agent Runtime                               │
│  LLM Client (multi-provider) · Session Manager               │
│  Tool Executor (270+ tools) · Sub-Agent Spawning              │
│  Budget Gates · Model Fallback · Streaming                    │
├──────────────────────────────────────────────────────────────┤
│              Messaging & Channels                             │
│  Email (Gmail/Outlook) · Telegram · WhatsApp                  │
│  Google Chat · Browser Automation · Voice/Meetings            │
├──────────────────────────────────────────────────────────────┤
│            Integration Layer                                  │
│  145 SaaS Adapters · 13 Google Workspace Services             │
│  MCP Framework · OAuth Connect · Dependency Manager           │
├──────────────────────────────────────────────────────────────┤
│               Database Adapter Layer                          │
│  Postgres · MySQL · SQLite · MongoDB · DynamoDB · Turso       │
│  Supabase · Neon · PlanetScale · CockroachDB                  │
│  Smart pooler detection · Auto-optimized connections          │
└──────────────────────────────────────────────────────────────┘

Middleware Stack

LayerPurpose
Request IDUUID per request for distributed tracing
Transport EncryptionOptional AES-GCM encryption for all API responses
Security HeadersCSP, HSTS, X-Frame-Options, X-Content-Type-Options
CORSConfigurable origins
Rate LimitingPer-IP, configurable RPM (default: 120)
IP FirewallCIDR-based access control
Audit LoggingEvery mutating action logged with actor, org, timestamp
RBACRole-based access (owner, admin, member, viewer)
Org ScopingAutomatic data isolation for multi-tenant deployments

Dashboard

28 full pages + 23 agent detail tabs, served directly from the enterprise server:

Platform Pages

PageDescription
DashboardSetup checklist, quick stats, getting started guide
AgentsCreate, configure, start/stop, monitor all agents
UsersUser management, roles, org assignment, impersonation
OrganizationsClient org management, billing, access control
Org ChartVisual organizational hierarchy
WorkforceShifts, schedules, on-call, capacity, clock records
Task PipelineVisual task flow, node-based pipeline editor
MessagesAgent-to-agent communication hub
KnowledgeDocument upload, chunking, RAG search
Knowledge ContributionsAgent-contributed knowledge review
Knowledge ImportBulk import from external sources
SkillsEnterprise skill management and assignment
Community SkillsMarketplace: browse, install, configure, update
Skill ConnectionsOAuth and credential management for skills
DLPRules, rule packs (7 enterprise packs), violations, scanning
GuardrailsIntervention rules, anomaly detection, agent safety
ComplianceSOC 2, GDPR, SOX, Incident, Access Review reports
JournalAction journal with detail modal and rollback
Audit LogComplete audit trail with org filtering
ActivityReal-time tool calls, conversations, cost tracking
ApprovalsHuman-in-the-loop approval queue
VaultEncrypted credential storage, API keys, OAuth tokens
Database AccessAgent database connection management
Memory TransferCross-agent memory sharing
RolesCustom agent role template management (51 built-in)
SettingsCompany, security, SSO, 2FA, branding, email config
Domain StatusCloudflare tunnel, DNS, deployment health
LoginSetup wizard (first run) / login with 2FA support

Agent Detail Tabs (per agent)

TabDescription
OverviewStatus, health, metrics, quick actions
Personal DetailsName, email, phone, avatar, identity
ConfigurationModel, temperature, system prompt, soul
PermissionsTool-level allow/deny, preset profiles
SkillsAssigned skills with risk levels
ToolsAvailable tools with security policies
Tool SecurityPer-tool DLP and guardrail overrides
EmailGmail OAuth / IMAP+SMTP (app password), send-as alias, signature, auto-polled inbox
ChannelsTelegram, WhatsApp, Google Chat setup
WhatsAppWhatsApp Business integration
CommunicationAgent messaging preferences
MemoryLong-term memory viewer/editor
AutonomyClock, daily catchup, goals, knowledge schedules
BudgetToken limits, cost caps, alerts
WorkforceShift assignments, availability
GuardrailsAgent-specific intervention rules
ActivityAgent-specific activity feed
SecurityAPI keys, access controls
DeploymentRuntime config, health endpoint
ManagerSupervisor/manager assignment
Meeting BrowserMeeting attendance and voice config
Personal DetailsBirthday, timezone, language

Features

  • Dark/Light themes with CSS custom properties
  • Dynamic brand color from company settings
  • Org switcher on every page for multi-tenant filtering
  • Real-time SSE streaming for live updates
  • 49 built-in documentation pages accessible from the dashboard
  • Transport encryption — Optional AES-GCM encryption for all API traffic

Agent Runtime

Full standalone agent execution — agents run as independent processes with their own port, tools, memory, and messaging channels.

Runtime Features

FeatureDescription
Multi-Provider LLMAnthropic, OpenAI, xAI (Grok), Google — with automatic model fallback
Session ManagerIncremental message persistence, crash recovery, session resume
Tool Executor270+ tools with permission checking and DLP scanning
Sub-Agent SpawningSpawn child agents for parallel work
Budget GatesCost check before every LLM call, hard limits with alerts
StreamingSSE streaming for real-time dashboard updates
MultimodalProcess images, videos, documents from Telegram/WhatsApp
Dependency ManagerAuto-detect, install, and clean up system dependencies
Email ChannelBi-directional Gmail/Outlook with OAuth
MessagingTelegram long-polling, WhatsApp webhook
BrowserFull Playwright-based web automation
VoiceElevenLabs TTS, meeting voice intelligence
MemoryDB-backed long-term memory with semantic search
HeartbeatConfigurable periodic checks (email, calendar, health)
AutonomyClock in/out, morning triage, daily catchup, goal tracking

Standalone Agent Mode

# .env.fola
DATABASE_URL=postgresql://...  # Shared DB (auto-optimized for pooler)
AGENT_ID=3eecd57d-03ae-440d-8945-5b35f43a8d90
PORT=3102
ANTHROPIC_API_KEY=sk-ant-...

# Start
node dist/cli.js agent --env-file=.env.fola

The agent automatically:

  • Connects to the shared database (with smart pooler detection)
  • Loads its configuration, permissions, and soul from DB
  • Starts messaging channels (Telegram, WhatsApp, email)
  • Begins autonomy features (clock in, morning triage)
  • Registers health endpoint for dashboard monitoring

Agent Tools

270+ tools organized by category, with intelligent tiered loading to minimize token costs:

Smart Tool Loading

Tools are loaded on-demand using a 3-tier system — agents don't pay for 270 tool definitions on every message:

TierWhen LoadedExample
Tier 1 — EssentialAlways loaded (~20 tools, ~3K tokens)File I/O, memory, management, search
Tier 2 — ContextualAuto-loaded by channel + conversation signalsGmail when user says "email", Teams when on Teams
Tier 3 — SpecialistOn-demand via request_toolsSlides, Forms, Power BI, security scanning

A simple "Thank you" on Telegram loads ~50 tools (~8K tokens) instead of 270 (~33K tokens) — 75% token savings. The agent can always request more tools mid-conversation, and conversation signals auto-promote relevant tools (mention "calendar" → calendar tools load automatically).

Core Tools

ToolDescription
bash / shellShell command execution
browserFull Playwright web automation (screenshots, navigation, interaction)
editPrecise file editing with search/replace
read / writeFile I/O
glob / grepFile discovery and text search
web_fetchHTTP requests with content extraction
web_searchWeb search (Brave API)

Google Workspace Tools

ToolDescription
gmail_search / gmail_read / gmail_send / gmail_replyFull Gmail access
gmail_forward / gmail_trash / gmail_modify / gmail_labelsGmail management
gmail_drafts / gmail_thread / gmail_attachment / gmail_profileAdvanced Gmail
gmail_get_signature / gmail_set_signatureSignature management
calendar_list / calendar_create / calendar_update / calendar_deleteCalendar CRUD
calendar_find_free / calendar_rsvpScheduling
drive_list / drive_search / drive_read / drive_uploadGoogle Drive
drive_create_folder / drive_share / drive_exportDrive management
contacts_list / contacts_search / contacts_createGoogle Contacts
google_chat_send_message / google_chat_list_spacesGoogle Chat
google_docs_* / google_sheets_* / google_slides_*Document editing
google_forms_* / google_tasks_*Forms and Tasks
google_meetings_*Meet integration

Microsoft 365 Tools

ToolDescription
outlook_mail_* (20 tools)Read, send, reply, forward, search, drafts, rules, categories, auto-reply, thread
outlook_calendar_* (7 tools)Events, create with Teams link, respond to invites, free/busy
teams_* (15 tools)Channel messages, chats, file sharing, members, presence, status
onedrive_* (12 tools)Files, search, share, move, copy, versions, permissions
excel_* (16 tools)Read/write ranges, tables, charts, formulas, sessions, named ranges, formatting
sharepoint_* (10 tools)Sites, document libraries, lists, search, upload
onenote_* (6 tools)Notebooks, sections, pages, create, update
planner_* (6 tools)Plans, buckets, tasks with ETag concurrency
todo_* (6 tools)Task lists, create, update, complete
powerpoint_* (5 tools)Info, export PDF, thumbnails, templates, embed URLs
powerbi_* (8 tools)Workspaces, reports, dashboards, datasets, DAX queries, refresh
ms_contacts_* (5 tools)Contacts CRUD, people/directory search

Microsoft tools auto-detect via OAuth provider — if the agent has Microsoft OAuth configured, all Graph API tools become available. Includes production-grade retry with exponential backoff, 429 rate-limit handling, auto-pagination, and JSON batch support.

Enterprise Tools

ToolDescription
enterprise-code-sandboxIsolated code execution
enterprise-databaseDatabase queries
enterprise-documentsDocument processing
enterprise-httpAdvanced HTTP client
enterprise-security-scanVulnerability scanning
enterprise-spreadsheetSpreadsheet operations
knowledge-searchRAG search across knowledge bases

Agent Management Tools

ToolDescription
management_escalateEscalate to supervisor
management_delegateDelegate task to another agent
management_status_updateReport status to manager

Messaging Tools

ToolDescription
msg_telegram / msg_whatsappSend messages via channels
telegram_download_fileDownload media from Telegram

Dependency Management

ToolDescription
check_dependencyCheck if system tool is installed
install_dependencyAuto-install missing dependencies
list_dependenciesList all agent-installed packages
cleanup_dependenciesRemove session-installed packages

Google Workspace Integration

Deep, native integration with 13 Google Workspace services:

ServiceToolsOAuth Scopes
Gmail16 toolsgmail.modify, gmail.send
Calendar6 toolscalendar, calendar.events
Drive7 toolsdrive
DocsCRUD + formattingdocuments
SheetsCRUD + formulasspreadsheets
SlidesCRUD + layoutpresentations
FormsCreate + responsesforms
TasksList + managetasks
ContactsSearch + managecontacts
ChatSend + spaceschat.messages, chat.spaces
MeetSchedule + joincalendar
MapsPlaces APIAPI key
Meeting VoiceTTS + transcriptionElevenLabs + virtual audio

Agents can:

  • Read and respond to emails
  • Create and manage calendar events
  • Upload and share Drive files
  • Edit Google Docs, Sheets, and Slides
  • Join Google Meet calls with voice (ElevenLabs TTS + virtual audio device)

Microsoft 365 Integration

Deep, native integration with 13 Microsoft services via Microsoft Graph API:

ServiceToolsKey Features
Outlook Mail20 toolsFull CRUD, threads, rules, categories, auto-reply, drafts, attachments
Outlook Calendar7 toolsEvents, Teams meeting links, free/busy, invite responses
Teams15 toolsChannels, chats, file sharing, members, presence, status messages
OneDrive12 toolsFiles, search, share, move, copy, versions, permissions
Excel16 toolsRanges, tables, charts, formulas, sessions, named ranges, formatting
SharePoint10 toolsSites, document libraries, lists, content search
OneNote6 toolsNotebooks, sections, pages CRUD
Planner6 toolsTeam task management with concurrency control
To Do6 toolsPersonal task lists with reminders
PowerPoint5 toolsExport, thumbnails, templates, embedding
Power BI8 toolsReports, dashboards, DAX queries, dataset refresh
Contacts5 toolsContact CRUD, people/directory search

Auto-detected via OAuth provider — connect Microsoft OAuth in the dashboard and all tools become available. Each service has its own dedicated system prompt with tool usage guidance.

Production-grade Graph API client:

  • Retry with exponential backoff (3 attempts)
  • 429 rate-limit handling with Retry-After header
  • Auto-pagination via @odata.nextLink (up to 500 items)
  • JSON batch support (up to 20 requests per batch)
  • Beta endpoint support for preview APIs

145 SaaS Integration Adapters

Pre-built MCP adapters for connecting agents to any SaaS tool:

Full adapter list (145)

ActiveCampaign · Adobe Sign · ADP · Airtable · Apollo · Asana · Auth0 · AWS · Azure DevOps · BambooHR · Basecamp · BigCommerce · Bitbucket · Box · Brex · Buffer · Calendly · Canva · Chargebee · CircleCI · ClickUp · Close · Cloudflare · Confluence · Contentful · Copper · Crisp · CrowdStrike · Datadog · DigitalOcean · Discord · Docker · DocuSign · Drift · Dropbox · Figma · Firebase · Fly.io · FreshBooks · Freshdesk · Freshsales · Freshservice · Front · GitHub · GitHub Actions · GitLab · Gong · Google Ads · Google Analytics · Google Cloud · Google Drive · GoToMeeting · Grafana · Greenhouse · Gusto · HashiCorp Vault · Heroku · HiBob · Hootsuite · HubSpot · Hugging Face · Intercom · Jira · Klaviyo · Kubernetes · Lattice · LaunchDarkly · Lever · Linear · LinkedIn · LiveChat · Loom · Mailchimp · Mailgun · Microsoft Teams · Miro · Mixpanel · Monday · MongoDB Atlas · Neon · Netlify · NetSuite · New Relic · Notion · Okta · OpenAI · OpsGenie · Outreach · Paddle · PagerDuty · PandaDoc · PayPal · Personio · Pinecone · Pipedrive · Plaid · Postmark · Power Automate · QuickBooks · Recurly · Reddit · Render · RingCentral · Rippling · Salesforce · SalesLoft · Sanity · SAP · Segment · SendGrid · Sentry · ServiceNow · Shopify · Shortcut · Slack · Smartsheet · Snowflake · Snyk · Splunk · Square · Statuspage · Stripe · Supabase · Teamwork · Telegram · Terraform · Todoist · Trello · Twilio · Twitter/X · Vercel · Weaviate · Webex · Webflow · WhatsApp · Whereby · WooCommerce · WordPress · Workday · Wrike · Xero · YouTube · Zendesk · Zoho CRM · Zoom · Zuora

Each adapter provides:

  • Tool definitions with parameter schemas
  • API executor with credential resolution from Vault
  • OAuth flow configuration
  • Rate limit handling and pagination

Enterprise Skills

59 pre-built skill definitions:

Google Workspace Suite (14)

Gmail · Calendar · Drive · Docs · Sheets · Slides · Forms · Meet · Chat · Keep · Sites · Groups · Admin · Vault

Microsoft 365 Suite (13 services, 90+ tools)

Outlook Mail (20 tools) · Outlook Calendar (7) · Teams (15) · OneDrive (12) · Excel (16) · SharePoint (10) · OneNote (6) · Planner (6) · To Do (6) · PowerPoint (5) · Power BI (8) · Contacts (5) · Each with dedicated system prompts and Graph API integration with retry, rate-limit handling, pagination, and batch support.

Polymarket Trading Suite (10 skills, 126 tools)

Institutional-grade prediction market trading on Polymarket. Full details in the Polymarket Trading Suite section below.

  • polymarket (63 tools) — Trading infrastructure, orders, wallet, risk controls, learning system
  • polymarket-quant (14) — Kelly criterion, Black-Scholes, Bayesian, Monte Carlo, RSI/MACD/Bollinger, VaR
  • polymarket-onchain (6) — Whale tracking, orderbook depth, on-chain flow, wallet profiling, liquidity mapping
  • polymarket-optimizer (6) — Daily scorecard, momentum scanner, quick edge, position heatmap, profit lock, capital recycler
  • polymarket-social (5) — Twitter/Reddit/Telegram sentiment, Polymarket comments, social velocity
  • polymarket-feeds (5) — Event calendar, official sources (SCOTUS/SEC/Fed/ESPN), odds aggregation, breaking news
  • polymarket-analytics (5) — Market correlation, arbitrage scanning, regime detection, smart money index
  • polymarket-execution (4) — Sniper orders, TWAP/VWAP scale-in, hedging, automated exit strategies
  • polymarket-counterintel (3) — Manipulation detection, resolution risk scoring, counterparty analysis
  • polymarket-portfolio (3) — Portfolio optimization, drawdown monitoring, P&L attribution

Enterprise Custom Suite (16+)

Calendar · Code Sandbox · Database · Diff · Documents · Finance · HTTP · Knowledge Search · Logs · Notifications · Security Scan · Spreadsheet · Translation · Vision · Web Research · Workflow

Soul Templates (51)

14 categories of agent personality templates:

CategoryExamples
EngineeringFull-Stack Developer, DevOps Engineer, QA Engineer
DataData Analyst, ML Engineer, BI Analyst
SupportCustomer Support, IT Help Desk, Onboarding Specialist
MarketingContent Creator, SEO Specialist, Social Media Manager
SalesSales Rep, Account Executive, BDR
FinanceFinancial Analyst, Accountant, Revenue Operations
HRRecruiter, HR Coordinator, People Operations
LegalLegal Assistant, Compliance Officer
OperationsProject Manager, Executive Assistant, Office Manager
SecuritySecurity Analyst, GRC Specialist
DesignUX Designer, Brand Designer
ProductProduct Manager, Technical Writer
ResearchResearch Analyst, Competitive Intelligence
CustomBuild your own from scratch

Custom role templates can be created and managed via the Roles dashboard page.

Polymarket Trading Suite

Institutional-grade autonomous prediction market trading on Polymarket (Polygon/USDC). Deploy AI agents that research, analyze, execute, and learn from trades — with full risk management, multi-layer monitoring, and a 23-tab real-time dashboard.

126 tools across 10 skill modules. 23 dashboard tabs. 17+ database tables. 75+ API routes. 12 watcher types. 3 trading modes.

Trading Modes

ModeBehavior
Approval (default)All trades queue to "Pending Trades" for human review. Manager approves/rejects from the dashboard.
AutonomousAuto-executes trades that pass all risk checks: size < max, count < daily limit, positive Kelly edge, no circuit breaker. All trades logged and auditable.
PaperSimulated trading. Records predictions, tracks P&L as if real money. Useful for testing strategies.

Dashboard (23 Tabs)

The Polymarket dashboard is a full trading terminal with real-time data:

GroupTabs
TradingOverview, Wallet, Pending Orders, Trades, Paper, Goals
AutomationMonitors, Signals
JournalJournal, Strategies, Lessons
OrdersOrders, Hedges, Exit Rules
IntelligenceOn-Chain, Social, Events, Alerts
AnalyticsAnalytics, Drawdown, Attribution, Calibration
SettingsProxy

Key dashboard features:

  • Live Position Chart — Real-time streaming prices from Polymarket CLOB, updated every 3 seconds, multi-line chart showing % change from entry for each open position
  • Daily Scorecard — Realized + unrealized P&L, win rate, target progress, available capital, open positions
  • Buy/Sell Modals — Search markets, review orderbook depth, confirm trades with risk checks
  • SSE Real-Time Updates — Dashboard auto-refreshes on new trades, signals, alerts, and position changes
  • Wallet Management — Balance, transactions, transfers, token swaps, conditional token redemption, whitelisted addresses, security PIN

Monitoring & Automation

Two independent monitoring layers run 24/7, even with no active agent session:

Watchers (AI-Powered, 12 Types)

Server-side every 15 seconds. AI analyzes raw data with configurable LLM (Grok, GPT-4o-mini, etc.):

Watcher TypeWhat It Detects
price_levelPrice crosses a target threshold (above/below)
price_changePercentage price movement (e.g., 10% move)
news_intelligenceBreaking news impact on markets (AI-analyzed)
geopoliticalWar, elections, sanctions, regime changes (AI-analyzed)
sentiment_shiftTwitter/Reddit consensus shifts
volume_surgeUnusual trading activity spikes
crypto_priceCryptocurrency price tracking for crypto-exposed markets
resolution_watchMarket resolution detection
portfolio_driftCategory exposure exceeds threshold
cross_signalCorrelation between multiple market signals
arbitrage_scanYES+NO != $1.00 or multi-outcome inconsistencies
market_scanBulk market scanning by category or keyword

Auto-trade capability: Watchers can auto-execute trades when critical signals fire:

{ "auto_action": { "action": "SELL", "token_id": "...", "size": 10, "market_question": "..." } }

Alerts (Simple Price Triggers)

Price-level triggers with optional auto-trade execution:

PatternHow It Works
Stop-lossAlert at max loss threshold → auto-SELL
Take-profitAlert at profit target (e.g., entry $0.52, target $0.676) → auto-SELL
Dip buyAlert when price drops below target → auto-BUY
News-drivenWatcher detects bad/good news → auto-exit/enter

Automatic Exit System (3-Layer OCO)

Every BUY is auto-protected with three layers — no manual setup required:

  • Bracket Take-Profit — Auto-sells at +15% above buy price
  • Bracket Stop-Loss — Auto-sells at -10% below buy price
  • Trailing Stop — Tracks peak price, sells if drops 12% from peak

All three are OCO (One-Cancel-Other): when any fires, the others auto-cancel. Configurable via poly_bracket_config.

126 Agent Tools (10 Skill Modules)

Market Discovery & Screening

ToolPurpose
poly_search_marketsKeyword search across all markets
poly_screen_marketsStrategy-based screening (high_volume, momentum, contested, closing_soon, best_opportunities)
poly_get_marketGet full market data by slug
poly_momentum_scannerFind price movers right now
poly_breaking_newsNews-driven opportunities
poly_calendar_eventsUpcoming market-moving events
poly_odds_aggregatorCompare odds vs other prediction/betting platforms

Quantitative Analysis (14 Tools)

Kelly criterion, Black-Scholes binary pricing, Bayesian probability updates, Monte Carlo simulations, RSI/MACD/Bollinger Bands, historical/implied volatility, statistical arbitrage, Value-at-Risk, market entropy, and more.

On-Chain Intelligence (6 Tools)

Whale tracking, L2 orderbook depth analysis, net buy/sell flow detection, wallet sophistication profiling, liquidity mapping, CTF framework transaction decoding.

Social & News Intelligence (5 Tools)

Twitter sentiment analysis, Reddit consensus, Telegram alpha monitoring, Polymarket community discussion, social velocity (sentiment acceleration).

Market Analytics (5 Tools)

Pearson correlation detection, arbitrage scanning (free money when YES+NO != $1), regime detection (trending vs mean-reverting via Hurst exponent), smart money index (composite of whale + orderbook + momentum), manipulation detection (wash trading/spoofing).

Execution (4 Tools)

ToolPurpose
poly_place_orderStandard order execution
poly_sniperTrailing limit orders for time-sensitive entries
poly_scale_inTWAP/VWAP for large positions (>$50)
poly_hedgeCorrelation-based hedging

Position & Portfolio Management

ToolPurpose
poly_exit_strategyConfigure SL/TP/trailing/time-based exits per position
poly_position_heatmapUrgency-ranked view of open positions (CRITICAL/HIGH/MEDIUM/LOW)
poly_portfolio_optimizerConcentration analysis and rebalancing suggestions
poly_drawdown_monitorPortfolio drawdown tracking with threshold alerts
poly_capital_recyclerEvaluate redeployment opportunities for freed capital
poly_profit_lockCircuit breaker — halts trading if daily loss threshold exceeded
poly_daily_scorecardDaily P&L dashboard with realized/unrealized breakdown
poly_pnl_attributionP&L breakdown by market and category

Learning & Calibration System

ToolPurpose
poly_record_predictionPre-trade journal: predicted outcome, confidence, signals, reasoning
poly_resolve_predictionPost-trade: actual outcome, was_correct, P&L
poly_trade_reviewWin/loss analysis with lessons extraction
poly_record_lessonStore actionable lessons by category (entry timing, risk management, etc.)
poly_recall_lessonsRetrieve relevant lessons before trading similar markets
poly_calibrationConfidence calibration: tracks overconfidence/underconfidence across 10 buckets
poly_strategy_performanceWin rate, total P&L, Brier score by strategy

Counter-Intelligence (3 Tools)

Manipulation detection (wash trading, spoofing, layering), resolution risk scoring (ambiguous resolution criteria), counterparty analysis (retail vs whale distribution).

Risk Management

Built-in risk rules enforced at the system level:

RuleLimit
Max position size5% of bankroll (half-Kelly or quarter-Kelly)
Max single-market exposure20% of portfolio
Max category exposure30% of portfolio
Drawdown > 15%Reduce all positions by 50%
Drawdown > 25%Close all positions
Daily loss > 5%Halt trading
Min liquidity$5K (skip markets below this)
Slippage > 2%Limit orders only
Slippage > 5%Walk away
Resolution proximityExit 24h before unless >90% conviction

Circuit breakers: poly_profit_lock enforces trading mode changes based on daily P&L (NORMAL → CONSERVATIVE → LOCKED).

Trading Philosophy

The system prompt enforces profit over activity with four time horizons:

HorizonDurationStrategy
ScalpMinutes-hoursMomentum, news spikes, mispricing
Swing1-7 daysTrend-following, event anticipation
Position1-4 weeksFundamental conviction, value bets
Hold to resolutionWeeks-monthsDeep research, contrarian, >15% edge

Agents are guided to prioritize managing existing positions over placing new trades. No good setups = no new trades.

Wallet & Security

FeatureDescription
Encrypted storagePrivate keys and API credentials stored encrypted in poly_wallet_credentials
Multi-RPC fallback5 Polygon RPCs tried sequentially — never caches failed $0 balances
Whitelisted addressesPer-address transfer limits (per-tx + daily caps)
Transfer approvalAll transfers require dashboard approval
Security PINOptional PIN for sensitive wallet operations
Token swapsUSDC.e/USDC/MATIC swaps from dashboard
Conditional token redemptionRedeem winning positions directly from dashboard

Proactive Agent Behavior

The watcher engine periodically wakes trading agents for portfolio checks:

  • Priority 1 — Manage Positions: Check unread signals, review daily P&L, check position heatmap, verify exit conditions, monitor drawdown
  • Priority 2 — Review Performance: Check calibration accuracy, review P&L attribution, evaluate goals
  • Priority 3 — Find Opportunities: Only if genuine edge exists — momentum scan, breaking news, then full analysis pipeline

Agents are never pressured to hit trade count targets. The system respects agent pause commands and balance gates (won't wake if wallet < $5).

Database Tables (17+)

TablePurpose
poly_wallet_credentialsEncrypted keys, API creds, RPC URLs
poly_trading_configAgent trading parameters, mode, limits
poly_pending_tradesApproval-gated trade queue
poly_trade_logComplete trade history with fills, fees, P&L
poly_price_alertsPrice triggers with optional auto-trade
poly_paper_positionsPaper trading simulation positions
poly_daily_countersDaily trade count + loss tracking
poly_auto_approve_rulesAuto-approval by category/size
poly_whitelisted_addressesApproved withdrawal addresses
poly_transfer_requestsTransfer approval queue
poly_predictionsPre-trade prediction journal
poly_strategy_statsStrategy win rates, P&L, Brier scores
poly_lessonsDistilled lessons learned
poly_calibrationConfidence calibration buckets
poly_watchersWatcher configurations
poly_watcher_eventsAI-analyzed signals
poly_watcher_configLLM model + budget for watchers
poly_proxy_configCLOB proxy (HTTP/SSH SOCKS)

Getting Started with Polymarket

  • Create an agent with the Polymarket skill assigned
  • Agent runs poly_create_accountpoly_setup_walletpoly_set_allowances
  • Fund the wallet with USDC.e on Polygon
  • Configure watcher AI model: poly_watcher_config action=set provider=xai model=grok-3-mini
  • Agent runs poly_setup_monitors to create the full monitoring suite
  • Set trading mode: approval (default), autonomous, or paper
  • Monitor everything from the 23-tab dashboard

Database Backends

10 backends, all implementing the same adapter interface with full feature parity:

BackendTypeBest For
PostgreSQLSQLProduction (recommended)
SupabaseManaged PostgresQuick setup, free tier available
NeonServerless PostgresServerless deployments
CockroachDBDistributed PostgresGlobal scale
MySQL / MariaDBSQLExisting MySQL infrastructure
PlanetScaleManaged MySQLServerless MySQL
SQLiteEmbeddedDevelopment, small deployments
TursoLibSQL (edge)Edge deployments
MongoDBNoSQLDocument-oriented workloads
DynamoDBAWS NoSQLAWS-native deployments

Smart Connection Auto-Configuration

When you provide a DATABASE_URL, the system automatically:

  • Detects your provider — Supabase, Neon, or generic Postgres from the hostname
  • Optimizes the connection — Switches Supabase session mode (port 5432) to transaction mode (port 6543), adds ?pgbouncer=true
  • Generates a direct URL — For migrations and DDL operations that need real transactions (bypasses PgBouncer)
  • Configures pool sizing — Conservative pool limits for shared PgBouncer setups (max 3 per process), generous for direct connections (max 10)
  • Sets idle timeouts — 2s for PgBouncer (fast release), 30s for direct connections
  • Handles connection errors gracefully — Automatic retry with ROLLBACK recovery for aborted transactions
import { smartDbConfig, createAdapter } from '@agenticmail/enterprise';

// Automatically optimized — no manual config needed
const db = await createAdapter(smartDbConfig('postgresql://postgres.ref:pass@pooler.supabase.com:5432/postgres'));
// → Switches to port 6543, adds ?pgbouncer=true, generates direct URL for migrations

The setup wizard shows all auto-configurations in the UI:

  • 🟢 Provider detection (Supabase, Neon)
  • ✨ Auto-configured optimizations (pooler mode, pgbouncer param)
  • 🔗 Pooler URL and Direct URL (for migrations)

Security & Compliance

Authentication

FeatureDetails
Session cookieshttpOnly cookies (em_session, em_refresh, em_csrf) — not localStorage
CSRF protectionDouble-submit cookie pattern
2FA / TOTPTime-based one-time passwords with backup codes
SSOGoogle, Microsoft, GitHub, Okta, SAML 2.0, LDAP
Password hashingbcrypt with cost factor 12
JWTShort-lived access + long-lived refresh tokens
ImpersonationAdmin can impersonate users with full audit trail

Authorization

FeatureDetails
RBAC4 roles: owner, admin, member, viewer
Per-tool permissionsAllow/deny at individual tool level
5 preset profilesResearch Assistant, Customer Support, Developer, Full Access, Sandbox
Approval workflowsHuman-in-the-loop for sensitive operations
Escalation chainsMulti-level escalation with time-based auto-escalation
Budget gatesHard cost limits per agent with warning thresholds
Org-bound accessExternal client users see only their org's data

Transport Encryption

Optional AES-GCM encryption for all API responses:

  • Dashboard derives encryption key from user password
  • All API responses wrapped in {"_enc":"..."} in the network tab
  • SSE streams excluded (EventSource can't send custom headers)
  • Protects against network-level MITM even without HTTPS

Compliance Reporting

5 report types with full HTML export for auditors:

ReportStandardContent
SOC 2 Type IITrust Service Criteria CC1-CC9Executive summary, risk score (A-F), control effectiveness, findings
GDPR DSAREU Data ProtectionData subject access request processing
SOX Audit TrailSarbanes-OxleyFinancial controls and audit trail
Incident ReportCustomSecurity incident documentation
Access ReviewCustomUser and agent access audit

Reports include:

  • Agent names resolved (not raw UUIDs)
  • Organization/company name
  • Generator identity
  • Both positive (controls in place) and negative (gaps) findings
  • Professional HTML export with enterprise styling

Action Journal & Rollback

Every agent action is journaled with:

  • Before/after state snapshots
  • Actor identity and timestamp
  • Rollback capability for reversible actions
  • Detail modal with full context
  • Org-scoped filtering

Audit Logging

Every mutating API call is logged with:

  • Actor (user or agent)
  • Organization scope
  • Action type and details
  • IP address and request ID
  • Org-scoped filtering in dashboard

Data Loss Prevention (DLP)

Enterprise-grade DLP with real-time content scanning:

7 Pre-Built Rule Packs (53 rules)

PackRulesExamples
PII Protection8SSN, email, phone, address, DOB, passport, driver's license
Credentials & Secrets8API keys, passwords, private keys, tokens, connection strings
Financial Data8Credit cards, bank accounts, tax IDs, financial statements
Healthcare (HIPAA)7Medical records, diagnoses, prescriptions, insurance IDs
GDPR Compliance7EU personal data, consent records, genetic data, biometrics
Intellectual Property8Source code, trade secrets, patents, M&A, board minutes
Agent Safety7Prompt injection, jailbreak, unauthorized escalation, data exfil

DLP Features

  • One-click rule pack deployment — Apply entire packs from the dashboard
  • Per-rule enable/disable — Toggle rules without deleting them
  • Rule editing — Full modal editor for pattern, action, severity
  • Detail modal — Click any rule to see full configuration
  • Violation tracking — Real-time scanning with severity levels
  • Org-scoped — Rules and violations filtered by organization

Multi-Tenant & Organizations

Internal Organizations

  • Multiple organizations within one deployment
  • Org switcher on every dashboard page
  • Org-scoped data: agents, users, audit logs, vault, DLP, compliance, workforce, activity
  • 4 plan tiers: Free (3 agents), Team (25), Enterprise (unlimited), Self-Hosted (unlimited)

External Client Organizations

  • Create client organizations for external customers
  • Bind users to a client org with "full access"
  • Strict data isolation — org-bound users only see their client org's data
  • Impersonation respects org boundaries
  • Billing records per client org per agent per month

SSO Configuration

ProviderProtocol
GoogleOAuth 2.0
MicrosoftOAuth 2.0
GitHubOAuth 2.0
OktaOAuth 2.0 / SAML
SAML 2.0Generic
LDAPLDAP/LDAPS

Workforce Management

Manage agents like employees:

FeatureDescription
Shift SchedulesDefine work hours per agent, per day
On-Call RotationsAutomatic rotation schedules
Capacity PlanningTrack agent utilization and availability
Clock RecordsAutomatic clock in/out with timestamp logging
Off-Duty EnforcementGuardrails prevent agents from working outside shifts
Vacation Auto-ResponderAutomatic responses when agent is "on vacation"
Birthday AutomationSends birthday emails on agent DOB
Org-ScopedWorkforce data filtered by organization

Knowledge Base & RAG

FeatureDescription
Document IngestionUpload documents for chunking and indexing
BM25F SearchFull-text search across knowledge bases
RAG RetrievalAutomatic context injection into agent prompts
Multi-KB SupportMultiple knowledge bases per org
Agent Access ControlPer-agent knowledge base permissions
Contribution SystemAgents contribute learned knowledge back
Bulk ImportImport from external sources

Communication & Task Pipeline

Agent-to-Agent Messaging

  • Direct messages between agents
  • Broadcast messages to all agents
  • Topic-based channels
  • Priority levels: normal, high, urgent
  • Email-based delivery via agent addresses

Task Pipeline

  • Real-time table view — Paginated task list with search, sort, and status tabs (Active, Completed, Failed, All)
  • Live SSE updates — Tasks appear, update, and move between tabs instantly as agents work
  • Cross-process webhook relay — Standalone agent processes notify the enterprise server, so the dashboard updates in real-time even when agents run as separate processes
  • Delegation chain visualization — Click any task to see the full delegation flow (who assigned → who worked → review loops)
  • Stats cards — Active, completed, failed counts with today's metrics, token usage, and cost
  • Org-scoped views — Client org users only see their agents' tasks
  • Activity log — Per-task activity timeline with search and type filtering

External Channels

ChannelModeFeatures
Email (Gmail)OAuthFull CRUD, attachments, signatures
Email (Outlook)OAuthFull CRUD, attachments, rules, auto-reply, categories
Microsoft TeamsOAuthChannels, chats, file sharing, presence, status
TelegramLong-pollingText, media (images/video/docs), inline buttons
WhatsAppWebhookText, media, templates
Google ChatWebhook + APIMessages, spaces, reactions

Agent Autonomy System

Agents operate independently with configurable autonomy features:

FeatureDescription
Clock In/OutAgents clock in at shift start, out at end
Morning TriageScan overnight accumulation on first clock-in
Daily CatchupScheduled daily summary and planning
Weekly CatchupMonday morning weekly review
Goal TrackingCheck goal progress at configured times
Knowledge UpdatesWeekly knowledge base contribution
HeartbeatPeriodic health checks with configurable intervals

🎙️ Meeting & Voice Intelligence — Agents That Join Calls and Speak

Your AI agents join Google Meet calls and participate with natural human-like voice. This isn't a transcription bot — agents actually listen, understand context, and respond verbally in real-time using ElevenLabs TTS.

  • Join any Google Meet — Agent opens the browser, clicks "Join", and enters the meeting
  • Speak with natural voice — ElevenLabs TTS generates human-quality speech routed through a virtual audio device
  • Listen and understand — Real-time transcription feeds into the agent's context so it knows what's being discussed
  • Context-aware responses — Agent draws on its email, calendar, documents, and memory to give informed answers
  • Multi-agent meetings — Multiple agents can join the same call and collaborate
  • Automatic meeting notes — Agent generates summaries and action items after the call

Use cases: Daily standups, client demos, team syncs, investor updates, sales calls, onboarding sessions, interview screening.

FeatureDescription
Meeting VoiceElevenLabs TTS through virtual audio device
Meeting MonitorTrack Google Meet attendance
Voice IntelligenceReal-time transcription and analysis
Browser-BasedJoins via Playwright browser automation
sox + Virtual AudioAudio routing for meeting participation

Multimodal Support

Agents can process media sent via messaging channels:

Media TypeSupport
ImagesReceived as base64, sent to LLM as vision content blocks
VideosDownloaded and processed locally
DocumentsDownloaded for analysis
Voice NotesTranscription via Whisper

Media handling includes:

  • Automatic download from Telegram/WhatsApp
  • Base64 encoding for LLM vision models
  • Temporary file cleanup
  • Dependency auto-installation (ffmpeg, etc.)

Deployment

npx @agenticmail/enterprise

The setup wizard handles everything. After setup, the system is self-managing.

Automatic System Persistence

AgenticMail automatically configures itself to survive reboots, crashes, and network outages — you never run a single command:

FeatureWhat It Does
Auto-start on bootConfigures OS-level startup (launchd on macOS, systemd on Linux, Windows Service on Windows)
Crash recoveryExponential backoff restart (1.5s → 3s → 6s → 12s → 15s cap). Max 50 restarts before stopping
Memory protectionAuto-restart if process exceeds memory limit (512MB server, 384MB agents)
Log rotationAuto-installs pm2-logrotate: 10MB max per file, 5 rotated files, compressed
Process persistenceSaves process list on every boot — pm2 resurrect restores everything automatically
Graceful shutdown10s timeout for clean shutdown before force-kill

Works on every platform — automatically:

PlatformStartup MethodUser Action Needed
macOSlaunchd (LaunchAgent)None
Linux (Ubuntu/Debian/RHEL)systemd serviceNone
WindowsWindows ServiceNone
Dockerpm2-runtime in CMDNone
Raspberry PisystemdNone

All persistence setup runs once on first boot and writes a marker file. Subsequent boots just save the process list silently.

Self-Update System

AgenticMail includes a built-in self-update system — 4 ways to stay current:

MethodHowBest For
Dashboard bannerOne-click "Update Now" button when a new version is detectedGUI users
CLI commandagenticmail-enterprise updateTerminal users
Auto-update cronagenticmail-enterprise update --cron — checks every 6 hoursSet and forget
Background checkServer checks npm registry on startup + every 6 hours, logs when update availableAwareness
# One command to update everything
agenticmail-enterprise update

# Just check, don't install
agenticmail-enterprise update --check

# Set up automatic updates (cron job / Windows Task Scheduler)
agenticmail-enterprise update --cron

The update process: installs the latest npm package globally, finds all AgenticMail PM2 processes, restarts them, and saves the PM2 config. Zero downtime for agents — they restart in seconds.

Production Log Levels

LevelWhat Shows
debugEverything (verbose)
infoNormal operation (default)
warnWarnings and errors only (recommended for production)
errorErrors only

Set LOG_LEVEL=warn in your .env file for production deployments.

Manual PM2 (Advanced)

# Or use the ecosystem config for full control:
pm2 start ecosystem.config.cjs
pm2 save

Docker / Fly.io / Railway

npx @agenticmail/enterprise  # Select your deploy target
# Wizard handles everything

CLI Commands

# Interactive setup wizard (default)
npx @agenticmail/enterprise

# Start the server
npx @agenticmail/enterprise start

# Run a standalone agent
npx @agenticmail/enterprise agent --env-file=.env.fola

# Validate a community skill
npx @agenticmail/enterprise validate ./community-skills/my-skill/
npx @agenticmail/enterprise validate --all --json

# AI-assisted skill scaffolding
npx @agenticmail/enterprise build-skill

# Submit a skill to the marketplace
npx @agenticmail/enterprise submit-skill ./community-skills/my-skill/

# Domain recovery
npx @agenticmail/enterprise recover --domain agents.agenticmail.io --key <hex>

# DNS verification
npx @agenticmail/enterprise verify-domain

# Self-update
npx @agenticmail/enterprise update              # Update + restart all services
npx @agenticmail/enterprise update --check       # Check for updates without installing
npx @agenticmail/enterprise update --cron        # Set up automatic updates (every 6 hours)
npx @agenticmail/enterprise update --no-restart  # Update without restarting PM2

Environment Variables

VariableDescriptionDefault
DATABASE_URLDatabase connection string (auto-optimized for poolers)
JWT_SECRETJWT signing secret
ENCRYPTION_KEYVault encryption key
MASTER_KEYAdmin master key (first-run setup)
TRANSPORT_DECRYPT_KEYTransport encryption key for API responses
PORTServer port3000
LOG_LEVELLog verbosity: debug, info, warn, errorinfo
CORS_ORIGINSAllowed CORS origins (comma-separated)*
RATE_LIMITRequests per minute per IP120
DB_POOL_MAXOverride database connection pool sizeAuto (3 for pooler, 10 for direct)
AGENT_IDAgent ID (standalone agent mode)
ANTHROPIC_API_KEYAnthropic API key
OPENAI_API_KEYOpenAI API key
XAI_API_KEYxAI (Grok) API key
GOOGLE_API_KEYGoogle AI API key
ELEVENLABS_API_KEYElevenLabs TTS API key
BRAVE_API_KEYBrave Search API key
TELEGRAM_BOT_TOKENTelegram bot token
CLOUDFLARE_TUNNEL_TOKENCloudflare tunnel token

Community Skills Marketplace

Build and share skills:

Creating a Skill

npx @agenticmail/enterprise build-skill

Skill Manifest

{
  "name": "my-skill",
  "version": "1.0.0",
  "description": "What this skill does",
  "author": "your-name",
  "category": "productivity",
  "tools": [
    {
      "name": "my_tool",
      "description": "Tool description",
      "parameters": { "type": "object", "properties": {} },
      "riskLevel": "low",
      "sideEffects": ["read"]
    }
  ],
  "config": [
    { "name": "API_KEY", "type": "secret", "required": true }
  ]
}

Validation & Submission

npx @agenticmail/enterprise validate ./my-skill/
npx @agenticmail/enterprise submit-skill ./my-skill/

Skills are synced from the GitHub registry every 6 hours to all deployments.

API Reference

The API is organized into 3 major route groups:

Auth (/api/auth/*)

Login, refresh, logout, SSO callbacks, bootstrap, 2FA, impersonation

Admin (/api/admin/*)

Agent CRUD, user management, settings, audit log, bridge API

Engine (/api/engine/*)

82 modules exposed across 22+ route sub-apps:

Sub-AppRoutesDescription
Agents & Lifecycle/agents/*, /usage/*, /budget/*Agent management, health, budgets
DLP/dlp/*Rules, rule packs, violations, scanning
Guardrails/guardrails/*, /anomaly-rules/*Intervention rules, anomaly detection
Journal/journal/*Action journal, rollback, detail
Compliance/compliance/*5 report types, HTML export
Knowledge/knowledge-bases/*Documents, RAG, search
Communication/messages/*, /tasks/*Messaging, task pipeline
Workforce/workforce/*Schedules, shifts, capacity, clock records
Catalog/skills/*, /souls/*, /profiles/*, /permissions/*Registry
Approvals/approvals/*, /escalation-chains/*Approval workflows
Activity/activity/*, /stats/*Real-time tracking
Vault/vault/*Encrypted credentials
Storage/storage/*Dynamic agent databases
OAuth/oauth/*SaaS OAuth connect
Policies/policies/*Org policies
Memory/memory/*Agent memory
Onboarding/onboarding/*Agent onboarding
Community/community/*Skill marketplace
Roles/roles/*Custom role templates
Organizations/orgs/*Multi-tenant management
Skill Updates/skill-updates/*Auto-update management
Knowledge Contrib/knowledge-contribution/*Agent contributions

Requirements

  • Node.js 18+ (22+ recommended)
  • Database — Any of the 10 supported backends
  • LLM API Key — Anthropic, OpenAI, xAI, or Google (at least one)

License

MIT — See LICENSE

Built with AgenticMail · Docs · Discord

Keywords

ai

FAQs

Package last updated on 05 Jun 2026

Related posts