# Add Deltachat

Add DeltaChat channel integration via @deltachat/stdio-rpc-server.

- Repository: https://github.com/nanocoai/nanoclaw (31069 stars)
- Category: Engineering
- License: MIT
- Last updated: 2026-10-30
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add nanocoai/nanoclaw --skill add-deltachat -g -a claude-code -y`
Codex: `npx skills add nanocoai/nanoclaw --skill add-deltachat -g -a codex -y`
Cursor: `npx skills add nanocoai/nanoclaw --skill add-deltachat -g -a cursor -y`
Gemini CLI: `npx skills add nanocoai/nanoclaw --skill add-deltachat -g -a gemini-cli -y`

## Description

Add DeltaChat channel integration via @deltachat/stdio-rpc-server. Native adapter, no Chat SDK bridge. Email-based messaging with end-to-end encryption.

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# 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

### 1. Copy the adapter and its registration test

Fetch the `channels` branch from the configured remote that carries it, then
overwrite the skill-owned files with the canonical registry copies:

```nc:copy from-branch:channels
src/channels/deltachat.ts
src/channels/deltachat-registration.test.ts
```

### 2. Append the self-registration import

Append to `src/channels/index.ts` (skip if already present):

```nc:append to:src/channels/index.ts
import './deltachat.js';
```

### 3. Install the adapter package (pinned)

```nc:dep
@deltachat/stdio-rpc-server@2.49.0
```

### 4. Build and validate

```nc:run effect:build
pnpm run build
```
```nc:run effect:test
pnpm exec vitest run src/channels/deltachat-registration.test.ts
```

Both 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.

The rest: https://github.com/nanocoai/nanoclaw/blob/HEAD/.claude/skills/add-deltachat/SKILL.md
