rclone_serve_sftp

rclone_serve_sftp is a command for Claude Code from olorehq/olore. It costs 7 tokens per session (8,017 once invoked), scanned C, a copy of rclone_serve_dlna, MIT.

A command that runs an SFTP server backed by a remote storage path. SFTP is a file-transfer protocol commonly accessed through SSH clients.

In plain words
What is it for?
Use it to expose cloud or other remote storage to SFTP clients, with authentication and optional transfer limits.
Why use it?
It lets SFTP clients work with storage that rclone can access, while filters can limit the files being served.

Command for Claude Code

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

Good fit Use it to expose cloud or other remote storage to SFTP clients, with authentication and optional transfer limits.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/olorehq/olore/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/olorehq/olore

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/olorehq/olore/rclone_serve_sftp/github.svg)](https://agentmods.dev/commands/olorehq/olore/rclone_serve_sftp)
Your own site
<a href="https://agentmods.dev/commands/olorehq/olore/rclone_serve_sftp"><img src="https://agentmods.dev/badge/commands/olorehq/olore/rclone_serve_sftp/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for rclone_serve_sftp

Your own site · 80×15
<a href="https://agentmods.dev/commands/olorehq/olore/rclone_serve_sftp"><img src="https://agentmods.dev/badge/commands/olorehq/olore/rclone_serve_sftp.svg" alt="Reviewed on agentmods" width="80" 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,017 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 88% 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.08017
Opus 5 $0.00003 $0.04008
Sonnet 5 $0.00001 $0.01603
Haiku 4.5 $0.00001 $0.00802

Measured 5d ago against content hash f97db96fa818, 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

88% identical to rclone_serve_dlna — 192 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.

vault/packages/rclone/1.74.3/contents/commands/rclone_serve_sftp.md · 745 lines

How it starts

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

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/

This will socket-activate rclone on the first connection to port 2222 over TCP.

Read the full file on GitHub · 745 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 · 745 lines · 7 tokens per session scan C f97db96fa818

Subscribe to this mod's changes

rclone_serve_sftp is a command published in the GitHub repository olorehq/olore (103 stars, last pushed today), licensed MIT. It adds 7 tokens to every session and 8,017 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 88% identical to rclone_serve_dlna, differing in 192 lines, and is treated as a copy.