rclone_serve_sftp

rclone_serve_sftp is a command for Claude Code from chaunsin/agent-skills. It costs 7 tokens per session (8,024 once invoked), scanned C, a copy of rclone_serve_dlna, Apache-2.0.

A command that runs an SFTP server, letting SFTP clients access files stored on an rclone remote. SFTP is a secure file-transfer protocol commonly used by servers and developer tools.

In plain words
What is it for?
Use it to expose a cloud or other remote storage location through an SFTP connection, with optional file filters and authentication.
Why use it?
It lets software that understands SFTP work with storage services that do not provide SFTP directly.

Command for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md).

Good fit Use it to expose a cloud or other remote storage location through an SFTP connection, with optional file filters and authentication.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/chaunsin/agent-skills/rclone_serve_sftp
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/chaunsin/agent-skills

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for rclone_serve_sftp

README.md
[![agentmods](https://agentmods.dev/badge/commands/chaunsin/agent-skills/rclone_serve_sftp.svg)](https://agentmods.dev/commands/chaunsin/agent-skills/rclone_serve_sftp)
Your own site
<a href="https://agentmods.dev/commands/chaunsin/agent-skills/rclone_serve_sftp"><img src="https://agentmods.dev/badge/commands/chaunsin/agent-skills/rclone_serve_sftp.svg" alt="Measured on agentmods" height="20"></a>
Per session 7 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 8,024 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin 84% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00007 $0.08024
Opus 5 $0.00003 $0.04012
Sonnet 5 $0.00001 $0.01605
Haiku 4.5 $0.00001 $0.00802

Measured 5d ago against content hash 0780d3de2789, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade C, and why

rclone_serve_sftp scanned grade C with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Reaches for credential fileshighPrivilege escalation

SSH keys, cloud credentials, git-credentials, .npmrc, /etc/shadow: reading these is how a config file becomes a credential leak.

be used with sshd via ~/.ssh/authorized_keys, for example:
Origin

This is a copy

84% identical to rclone_serve_dlna — 195 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/rclone-cli/references/commands/rclone_serve_sftp.md · 746 lines

How it starts

The opening of the file, as written. The whole thing — 746 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Official documentation: https://rclone.org/commands/rclone_serve_sftp/

rclone serve sftp

Serve the remote over SFTP.

Synopsis

Run an SFTP server to serve a remote over SFTP. This can be used with an SFTP client or you can make a remote of type sftp to use with it.

You can use the filter flags (e.g. --include, --exclude) to control what is served.

The server will respond to a small number of shell commands, mainly md5sum, sha1sum and df, which enable it to provide support for checksums and the about feature when accessed from an sftp remote.

Note that this server uses standard 32 KiB packet payload size, which means you must not configure the client to expect anything else, e.g. with the chunk_size option on an sftp remote.

The server will log errors. Use -v to see access logs.

--bwlimit will be respected for file transfers. Use --stats to control the stats printing.

You must provide some means of authentication, either with --user/--pass, an authorized keys file (specify location with --authorized-keys - the default is the same as ssh), an --auth-proxy, or set the --no-auth flag for no authentication when logging in.

If you don't supply a host --key then rclone will generate rsa, ecdsa and ed25519 variants, and cache them for later use in rclone's cache directory (see rclone help flags cache-dir) in the "serve-sftp" directory.

By default the server binds to localhost:2022 - if you want it to be reachable externally then supply --addr :2022 for example.

This also supports being run with socket activation, in which case it will listen on the first passed FD. It can be configured with .socket and .service unit files as described in https://www.freedesktop.org/software/systemd/man/latest/systemd.socket.html.

Socket activation can be tested ad-hoc with the systemd-socket-activatecommand:

systemd-socket-activate -l 2222 -- rclone serve sftp :local:vfs/

Read the full file on GitHub · 746 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 746 lines · 7 tokens per session scan C 0780d3de2789

Subscribe to this mod's changes

rclone_serve_sftp is a command published in the GitHub repository chaunsin/agent-skills (2 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 7 tokens to every session and 8,024 once invoked, about $0.0000 per session on Opus 5. A static security scan graded it C with 1 finding (reaches for credential files). It is 84% identical to rclone_serve_dlna, differing in 195 lines, and is treated as a copy.