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

srift-transfer

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

srift-transfer

Secure P2P file transfer, encrypted chat and MCP server for AI coding agents. Zero accounts, zero tokens, end-to-end encrypted. Works with Claude, Cursor, Continue, Zed, Codex and any MCP client.

Source
npmnpm
Version
2.2.12
Version published
Weekly downloads
457
12.01%
Maintainers
1
Weekly downloads
 
Created
Source

srift

Secure peer-to-peer file transfer and encrypted chat for AI agents and humans. Ships an MCP (Model Context Protocol) server so Claude, Cursor, Continue, Zed, Codex and any MCP-compatible agent can send and receive files directly — no accounts, no API keys, no cloud storage.

npm install -g srift-transfer

Why

Coding agents can read and write files in their own sandbox, but they have no good way to get a file to you — or to another machine. Attaching, uploading and pasting all break down for anything large or binary.

SRIFT gives an agent one tool call that produces a link a human can open:

srift_quick_share({ filepath: "./build/report.pdf" })
→ https://srift.app/d/a1b2c3d

No signup on either end. Payloads are AES-256-GCM encrypted end-to-end; keys derive locally from the session ID (plus an optional room secret) and are never sent to the server.

Quick start

npm install -g srift-transfer

srift quick-share ./report.pdf      # public link, open anywhere
srift session start                 # long-lived room, host approves joins
srift status                        # daemon + session + transfers
srift doctor                        # full health check

Use as an MCP server

Register SRIFT with any MCP client:

srift install-mcp            # print config snippets for every supported IDE
srift install-mcp --auto     # write directly into Claude Desktop's config

Or configure it manually:

{
  "mcpServers": {
    "srift": {
      "command": "srift",
      "args": ["mcp"]
    }
  }
}

Works in Claude Desktop, Claude Code, Cursor, Continue, Zed, Codex, Windsurf and any client speaking MCP 2025-06-18 (backward compatible with 2024-11-05).

Transports

TransportEndpoint
stdiosrift mcp
Streamable HTTPPOST http://127.0.0.1:3822/mcp
SSE (legacy)GET http://127.0.0.1:3822/mcp/sse

Tools exposed

ToolPurpose
srift_quick_shareOne-step public download link for a file
srift_start_sessionOpen a session; returns 7-character ID + URL
srift_join_sessionRequest to join a session
srift_session_statusCurrent session, peers, state
srift_close_sessionTear down the session
srift_send_fileOffer a file to joined peers
srift_accept_transferAccept an incoming offer
srift_list_transfersList active transfers
srift_approve_join / srift_reject_join / srift_kick_userHost controls
srift_send_chat / srift_chat_historyEncrypted chat
srift_read_stateRead workspace state

Resources: srift://session/status, srift://transfers/active, srift://chat/messages, srift://workspace/state, srift://docs/quickstart

Prompts: send_file_to_user, receive_file_from_user, start_collab_session

CLI reference

Sessions    srift session start | join <id> | status | close
Transfers   srift quick-share <file> [--ttl 15m] [--once] [--max-downloads N]
            srift send <file> | receive <file-id> | list | monitor <file-id>
Public      srift pubshare list | add <file> | revoke <token>
Host        srift approve <id> | reject <id> | kick <id>
Chat        srift chat send "<msg>" | chat history
Agents      srift install-mcp [--auto] | bootstrap [dir] | info
Daemon      srift daemon start | stop | restart | status
Maintenance srift status | doctor | logs | version | self-update | reset | config

Every command accepts --json for machine-readable output — intended for agent use.

How transfers work

  • Small/medium files stream over an authenticated WebSocket channel.
  • Large files (>10 MB) switch to WebTorrent swarm transfer where available.
  • Browser-to-browser sessions negotiate WebRTC data channels directly.
  • Content is encrypted client-side with AES-256-GCM before it leaves your machine. Relay infrastructure forwards ciphertext and does not hold decryption keys.

webtorrent is an optional dependency — it pulls native modules that don't build everywhere. If it's unavailable, SRIFT logs a warning and falls back to WebSocket transfer; every other feature keeps working.

Configuration

VariableDefaultPurpose
SRIFT_DAEMON_PORT3822Daemon port
SRIFT_NO_UPDATE_CHECK–Set to 1 to disable update checks

Config file: ~/.srift/config.json (srift config get|set|delete)

Requirements

Node.js >= 20.

License

MIT

Keywords

mcp

FAQs

Package last updated on 08 Sep 2026

Related posts