
Company News
Free Business Plan Upgrades for Open Source Maintainers
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.
@atomicmail/langchain
Advanced tools
Atomic Mail LangChain toolkit — register, jmap_request, and help tools for JS/TS agents.
@atomicmail/langchain exposes Atomic Mail as LangChain tools while reusing the
same shared runtime used by MCP and AgentSkill. It provides both:
createAtomicMailTools)AtomicMailToolkit)Proof of work — the agent owns its own inbox, no human sign-in. register
performs PoW signup and the shared runtime rotates session and capability tokens
for you; the underlying HTTP chain is REST authentication. If a
person should own the mailbox and authorize your app instead, use
OAuth 2.0 with a plain HTTP client.
npm install @atomicmail/langchain
import { createAtomicMailTools, AtomicMailToolkit } from "@atomicmail/langchain";
const tools = await createAtomicMailTools();
const toolkit = await AtomicMailToolkit.create();
const registerTool = toolkit.registerTool;
const jmapTool = toolkit.jmapRequestTool;
const helpTool = toolkit.helpTool;
| Tool | Purpose |
|---|---|
register | PoW signup / idempotent register with optional forced and credentials_dir. |
jmap_request | Run JMAP request from ops or ops_file with vars and optional attachments. |
help | Return built-in docs topics bundled with the package. |
The LangChain wrapper enforces the same core behavior as MCP and AgentSkill:
forced semantics are delegated to shared AgentSession.registerops or ops_file is required for jmap_requestdry_run with attachments is rejected^[A-Z][A-Z0-9_]*$help topic cron)Defaults match the rest of the stack:
ATOMIC_MAIL_CREDENTIALS_DIR or ~/.atomicmailATOMIC_MAIL_AUTH_URLATOMIC_MAIL_API_URLATOMIC_MAIL_SCRYPT_SALTATOMIC_MAIL_API_KEYcredentials_dir can be passed per tool call for multi-account use.
import { createAtomicMailTools } from "@atomicmail/langchain";
const [register, jmapRequest, help] = await createAtomicMailTools();
await register.invoke({ username: "myagent" });
const inbox = await jmapRequest.invoke({
ops_file: "list_inbox.json",
});
const docs = await help.invoke({ topic: "presets" });
console.log(inbox, docs);
jmap_request sendsFAQs
Atomic Mail LangChain toolkit — register, jmap_request, and help tools for JS/TS agents.
We found that @atomicmail/langchain demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.

Security News
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.

Security News
During a UK cyber test, a Mythos 5 agent used sockpuppets, social engineering, and prompt injection to try to get a maintainer to merge malware.