add-deltachat
Skill1 starsChanged 42 days agoMITView on GitHub
Add DeltaChat channel integration via @deltachat/stdio-rpc-server. Native adapter — no Chat SDK bridge. Email-based messaging with end-to-end encryption.
- Reads credentials
- Installs packages
6 other projects use a version of this, 6 of them edited.
Adopted by
Most recently taken up by
- nanocoai/nanoclawedited, first seen Nov 3, 2026
- prathish-ks/isthmusedited, first seen Oct 12, 2026
- gavrielc/nanoclawedited, first seen Oct 8, 2026
- qwibitai/nanoclawedited, first seen Oct 8, 2026
- TomGranot/groupguardedited, first seen Sep 3, 2026
- microsoft/amplifier-app-nanoclawedited, first seen Jun 12, 2026
Used with
Projects with it also use add-anydoc, add-clidash and 9 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
TomGranotSkilladd-anydoc
Add local office-document-to-Markdown conversion to NanoClaw agent containers with the pinned Firecrawl AnyDoc CLI. Use when agents need to read attached Word, PowerPoint, Excel, OpenDocument, RTF, EPUB, CSV, or text-based PDF files without uploading them to a hosted parser.
Also in 5 projects that use this
TomGranotSkilladd-clidash
Add clidash — a zero-dependency, read-only web dashboard that derives its tabs and tables at runtime from any CLI that lists resources as JSON. Ships pre-wired for NanoClaw's ncl CLI (agent groups, sessions, channels, users, roles), plus message-activity charts, a log tail, and a read-only file viewer for group skills/CLAUDE.md/profiles.
Also in 5 projects that use this
qwibitaiSkilladd-iron-proxy
Install or refresh Iron Proxy and its official Iron Control web console for NanoClaw. Use when selecting the Iron gateway, adding its management UI, configuring credentials and grants, or restoring the proxy, approval bridge, and agent guidance.
Also in 4 projects that use this
qwibitaiSkilladd-mattermost
Add a self-hosted or cloud Mattermost bot channel through the Chat SDK bridge, reusing a healthy server when available and linking to official server setup guidance when needed.
Also in 4 projects that use this
nanocoaiSkilladd-cursor
Use Cursor (local Agent SDK) as a full agent provider — planning, tool orchestration, MCP tools, session resume — alongside or instead of Claude. Cursor-account sign-in or API key, held by the credential gateway. Per-group via `ncl groups config update --provider cursor`. Distinct from using Cursor as a cloud agent (those run on Cursor VMs and are not this provider).
Also in 3 projects that use this
- +5 more from TomGranot
- +1 more from qwibitai
Other versions6 projects use a version of this.
Word for word · 0
None found.
Edited · 6
- gavrielc/nanoclaw★ 31k89% same
- nanocoai/nanoclaw★ 31k89% same
- qwibitai/nanoclaw★ 31k89% same
- microsoft/amplifier-app-nanoclaw★ 599% same
- TomGranot/groupguard★ 389% same
- prathish-ks/isthmus★ 289% same
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository54 other files it gives its agents.
- container/AGENTS.mdAGENTS.md
- container/CLAUDE.mdCLAUDE.md
- add-atomic-chat-toolSkill
- add-codexSkill
- add-dashboardSkill
- add-discordSkill
- add-emacsSkill
- add-gcal-toolSkill
- add-gchatSkill
- add-githubSkill
- add-gmail-toolSkill
- add-imessageSkill
- add-karpathy-llm-wikiSkill
- add-linearSkill
- add-macos-statusbarSkill
- add-matrixSkill
- add-mnemonSkill
- add-ollama-providerSkill
- add-ollama-toolSkill
- add-opencodeSkill
- add-piSkill
- add-resendSkill
- add-rtkSkill
- add-signalSkill
- add-slackSkill
- add-teamsSkill
- add-telegramSkill
- add-vercelSkill
- add-webexSkill
- add-wechatSkill
- add-whatsapp-cloudSkill
- add-whatsappSkill
- archive-tripSkill
- customizeSkill
- debugSkill
- get-qodo-rulesSkill
- init-first-agentSkill
- init-onecliSkill
- learnSkill
- manage-channelsSkill
- manage-mountsSkill
- migrate-from-openclawSkill
- migrate-from-v1Skill
- migrate-memorySkill
- migrate-nanoclawSkill
- nano-pvt-hubSkill
- new-knowledge-graph-tutorSkill
- new-tripSkill
- qodo-pr-resolverSkill
- reflectSkill
- setupSkill
- update-nanoclawSkill
- update-skillsSkill
- use-native-credential-proxySkill
The file
We split this skill into the rules it gives an agent
11 rules. 4 are common, 0 are distinctive, and 7 are very specific to this project.
4
Common
Most of the 6 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Common: line 108
Run from your NanoClaw project root:
- Common: line 130
After the service starts, the adapter logs the invite URL and writes a QR SVG:
- Common: line 147
After accepting, DeltaChat exchanges keys and creates the chat automatically.
- Very specific: line 170
Add the bot email to a DeltaChat group.
- Very specific: line 174
If you're in the middle of /setup, return to the setup flow now.
- Common: line 197
Not supported: DeltaChat reactions, message editing/deletion, read receipts.
- Very specific: line 218
All six required vars (DC_EMAIL, DC_PASSWORD, DC_IMAP_HOST, DC_IMAP_PORT, DC_SMTP_HOST, DC_SMTP_PORT) must be present in .env.
- Very specific: line 237
Check the service is running and the adapter started: grep "Channel adapter started.*deltachat" logs/nanoclaw.log
- Very specific: line 239
Check the sender has been granted access — run /init-first-agent to create their user record and wire the chat
- Very specific: line 240
Verify the messaging group is wired: pnpm exec tsx scripts/q.ts data/v2.db "SELECT mg.platform_id, mga.agent_group_id FROM messaging_groups …
- Very specific: line 265
If the group has no entry in messaging_group_agents, wire it with /manage-channels.
“Common” is measured: kept by at least 6 in 10 of the 6 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Add DeltaChat Channel
The adapter drives the @deltachat/stdio-rpc-server JSON-RPC subprocess directly — pure Node.js against the DeltaChat core library. Messages are delivered over email with Autocrypt/OpenPGP encryption.
Install
Pre-flight (idempotent)
Skip to Credentials if all of these are already in place:
src/channels/deltachat.tsexistssrc/channels/deltachat-registration.test.tsexistssrc/channels/index.tscontainsimport './deltachat.js';@deltachat/stdio-rpc-serveris listed inpackage.jsondependencies
Otherwise continue. Every step below is safe to re-run.
1. Fetch the channels branch
git fetch origin channels2. Copy the adapter and its registration test
git show origin/channels:src/channels/deltachat.ts > src/channels/deltachat.ts
git show origin/channels:src/channels/deltachat-registration.test.ts > src/channels/deltachat-registration.test.ts3. Append the self-registration import
Append to src/channels/index.ts (skip if already present):
import './deltachat.js';4. Install the adapter package (pinned)
pnpm install @deltachat/stdio-rpc-server@2.49.05. Build and validate
pnpm run build
pnpm exec vitest run src/channels/deltachat-registration.test.tsBoth must be clean before proceeding. deltachat-registration.test.ts is the one integration test: it imports the real channel barrel and asserts the registry contains deltachat. It goes red if the import './deltachat.js'; line is deleted or drifts, if the barrel fails to evaluate (so the channel genuinely would not register), or if @deltachat/stdio-rpc-server isn't installed (the import throws) — so it also implicitly verifies the dependency from step 4. Importing is safe: deltachat instantiates the rpc client only in setup() (at host startup), never at import.
End-to-end message delivery against a real email account is verified manually once the service is running — see Wiring and Troubleshooting.
Account Setup
A dedicated email account is strongly recommended — it will accumulate DeltaChat-formatted messages and store encryption keys. Not all providers work well with DeltaChat; check https://providers.delta.chat/ before picking one.
Default security modes: IMAP uses SSL/TLS (port 993), SMTP uses STARTTLS (port 587). Both are configurable via .env — see Credentials below.
To find the correct hostnames for a domain:
node -e "require('dns').resolveMx('example.com', (e,r) => console.log(r))"Most providers publish their IMAP/SMTP hostnames in their help docs under "manual setup" or "IMAP access."
Credentials
Add to .env:
DC_EMAIL=bot@example.com
DC_PASSWORD=your-app-password
DC_IMAP_HOST=imap.example.com
DC_IMAP_PORT=993
DC_IMAP_SECURITY=1 # 1=SSL/TLS (default), 2=STARTTLS, 3=plain
DC_SMTP_HOST=smtp.example.com
DC_SMTP_PORT=587
DC_SMTP_SECURITY=2 # 2=STARTTLS (default), 1=SSL/TLS, 3=plainSecurity settings are applied on every startup, so changing them in .env and restarting takes effect without wiping the account.
Sync to container: mkdir -p data/env && cp .env data/env/env
Optional settings
The following are read from the process environment (not .env). To override them, add Environment= lines to the systemd service unit or your launchd plist:
| Variable | Default | Description |
DC_ACCOUNT_DIR | dc-account | Directory for DeltaChat account data (IMAP state, keys, blobs) |
DC_DISPLAY_NAME | NanoClaw | Bot display name shown in DeltaChat |
DC_AVATAR_PATH | (none) | Absolute path to avatar image; set at startup only |
The /set-avatar command (send an image with that caption) is the easiest way to set the avatar at runtime without modifying the service file. Only users with owner or global admin role can use it.
Restart
Run from your NanoClaw project root:
source setup/lib/install-slug.sh
# Linux
systemctl --user restart $(systemd_unit)
# macOS
launchctl kickstart -k gui/$(id -u)/$(launchd_label)On first start the adapter configures the email account (IMAP/SMTP credentials, calls configure()). Subsequent starts skip straight to startIo(). Account data is stored in dc-account/ in the project root (or your DC_ACCOUNT_DIR).
Wiring
DMs
DeltaChat contacts cannot be added by email alone — to start a chat, the user must open the bot's invite link in their DeltaChat app or scan its QR code. This triggers the SecureJoin handshake.
Step 1 — Get the invite link
After the service starts, the adapter logs the invite URL and writes a QR SVG:
grep "invite link" logs/nanoclaw.log | tail -1
# url field contains the https://i.delta.chat/... invite link
# also written to dc-account/invite-qr.svg (or $DC_ACCOUNT_DIR/invite-qr.svg)The invite URL is stable (tied to the bot's email and encryption keys) so it stays valid across restarts.
Step 2 — Add the bot in DeltaChat
Two options for the user to connect:
- Link: Copy the
https://i.delta.chat/...URL and open it on the device running DeltaChat. The app recognises it and shows a "Start chat" prompt. - QR code: Open
dc-account/invite-qr.svgin a browser or image viewer, display it on screen, and scan it from the DeltaChat app using the QR-scan button on the new-chat screen.
After accepting, DeltaChat exchanges keys and creates the chat automatically.
Step 3 — Wire the chat to an agent
Once the first message arrives the router auto-creates a messaging_groups row. Look up the chat ID:
pnpm exec tsx scripts/q.ts data/v2.db \
"SELECT platform_id, name FROM messaging_groups WHERE channel_type='deltachat' AND is_group=0 ORDER BY created_at DESC LIMIT 5"Then run /init-first-agent — it creates the agent group, grants the user owner access, and wires the messaging group in one step:
pnpm exec tsx scripts/init-first-agent.ts \
--channel deltachat \
--user-id deltachat:user@example.com \
--platform-id <platform_id from above> \
--display-name "Your Name"Groups
Add the bot email to a DeltaChat group. When any member sends a message, the router creates a messaging_groups row with is_group = 1. Run /manage-channels to wire it to an agent group.
Next Steps
If you're in the middle of /setup, return to the setup flow now.
Otherwise, run /init-first-agent to create an agent and wire it to your DeltaChat DM (see Wiring above), or /manage-channels to wire this channel to an existing agent group.
Channel Info
- type:
deltachat - terminology: DeltaChat calls them "chats" (1:1 DMs) and "groups"
- supports-threads: no — DeltaChat has no thread model
- platform-id-format: numeric chat ID as a string (e.g.
"12") — the DeltaChat core's internal chat identifier - user-id-format:
deltachat:{email}— the contact's email address - how-to-find-id: Send a message from DeltaChat to the bot email, then query
messaging_groupsas shown above - typical-use: Personal assistant over DeltaChat DMs; small groups where participants use DeltaChat
- default-isolation: One agent per bot identity. Multiple chats with the same operator can share an agent group; groups with other people should typically use
isolatedsession mode
Features
- File attachments — inbound and outbound; inbound waits up to 30 seconds for large-message download to complete
- Invite link logged on every startup — URL + QR SVG written to
dc-account/invite-qr.svg; see Wiring for the bootstrap flow /set-avatar— send an image with this caption to change the bot's DeltaChat avatar (admin/owner only)- Connectivity watchdog — restarts IO if IMAP goes quiet for 20 minutes or connectivity drops below threshold for two consecutive 5-minute checks
- Network nudge —
maybeNetwork()called every 10 minutes to recover from prolonged idle
Not supported: DeltaChat reactions, message editing/deletion, read receipts.
Connectivity model
isConnected() returns true when the internal connectivity value is ≥ 3000:
| Range | Meaning |
| 1000–1999 | Not connected |
| 2000–2999 | Connecting |
| 3000–3999 | Working (IMAP fetching) |
| ≥ 4000 | Fully connected (IMAP IDLE) |
Troubleshooting
Adapter not starting — credentials missing
grep "Channel credentials missing" logs/nanoclaw.log | grep deltachatAll six required vars (DC_EMAIL, DC_PASSWORD, DC_IMAP_HOST, DC_IMAP_PORT, DC_SMTP_HOST, DC_SMTP_PORT) must be present in .env.
Account configure fails
grep "DeltaChat" logs/nanoclaw.log | tail -20Common causes:
- Wrong IMAP/SMTP hostnames — double-check provider docs
- App password not generated — Gmail and some others require this when 2FA is enabled
- Port/security mismatch — defaults are port 993 + SSL/TLS for IMAP and port 587 + STARTTLS for SMTP; override with
DC_IMAP_PORT/DC_IMAP_SECURITYorDC_SMTP_PORT/DC_SMTP_SECURITYin.env
Provider uses SMTP port 465 (SSL/TLS) instead of 587
Set DC_SMTP_SECURITY=1 and DC_SMTP_PORT=465 in .env, then restart.
Messages not arriving
- Check the service is running and the adapter started:
grep "Channel adapter started.*deltachat" logs/nanoclaw.log - Check connectivity:
grep "DeltaChat: IO started" logs/nanoclaw.log - Check the sender has been granted access — run
/init-first-agentto create their user record and wire the chat - Verify the messaging group is wired:
pnpm exec tsx scripts/q.ts data/v2.db "SELECT mg.platform_id, mga.agent_group_id FROM messaging_groups mg JOIN messaging_group_agents mga ON mg.id = mga.messaging_group_id WHERE mg.channel_type='deltachat'"
Stale lock file after crash
rm -f dc-account/accounts.lock
systemctl --user restart "$(. setup/lib/install-slug.sh && systemd_unit)"Bot not responding after restart
The account is already configured — IO restarts automatically on service start. If the RPC subprocess is stuck, restart the service. Check for errors:
grep "DeltaChat" logs/nanoclaw.error.log | tail -20Messages received but agent not responding
The messaging group exists but may not be wired to an agent group. Run:
pnpm exec tsx scripts/q.ts data/v2.db "SELECT id, platform_id, name FROM messaging_groups WHERE channel_type='deltachat'"If the group has no entry in messaging_group_agents, wire it with /manage-channels.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

