/network-tmp:use-network-tmpfrom network-tmp
Route large temporary files — model weights, checkpoints, ONNX exports, audio and video, datasets, archives, build outputs — to the network-tmp overflow instead of /tmp or the session scratchpad, and fall back to local disk when the server is unreachable. Use before downloading or generating anything over about 50 MB on a machine with network-tmp configured (`/etc/network-tmp.conf` exists), when /tmp is a tmpfs or nearly full, or when a write fails with "No space left on device".
Ships in network-tmp. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
nettmp prints a writable directory: the network overflow when the server is
reachable, otherwise a local-disk fallback (/var/tmp/network-tmp/<user>).
Either way, everything in it is deleted automatically after the TTL
(default 24 h since last write).
Check [ -r /etc/network-tmp.conf ]. If that file is absent, this machine isn't
set up, so offer the setup skill instead.
| Situation | Where it goes |
|---|---|
Anything expected to be over NETTMP_LARGE_MB (default 50 MB): weights, .onnx, .safetensors, audio/video, datasets, tarballs, model caches | $(nettmp path) |
/tmp over about 80% full (nettmp status shows it) | $(nettmp path) for anything new |
| Small scratch files, scripts, notes | the session scratchpad as usual |
Sockets, lock files, SQLite databases, anything opened with mmap or locked | never network-tmp, use local disk |
| Anything that must survive past the TTL | the project or real storage, not here |
Check where /tmp actually lives with findmnt /tmp. If it is tmpfs,
writing a large file there consumes RAM, not disk.
D=$(nettmp path) # or: nettmp path my-job → a named subdir
D=$(nettmp path --strict) # fail rather than fall back to local disk
F=$(nettmp mktemp) # unique file; nettmp mktemp -d for a dir
For tools that take a temp or cache dir, point them at it for that command only, rather than exporting it globally:
TMPDIR=$(nettmp path) some-tool ...
HF_HOME=$(nettmp path hf) python train.py
pip download -d "$(nettmp path wheels)" ...
Say in your reply which directory you used and that it expires.
Keeping something longer. nettmp keep <path> moves it into keep/, which
expires after NETTMP_KEEP_TTL (default 7 d). It is still temporary: copy real
results into the project.
soft, so if the server drops mid-write, the write fails with
EIO after about 15 s instead of hanging. Treat a failure there as a network
problem: rerun nettmp path (it will fall back) and retry.nettmp path (it falls back) over
--strict.What SKILL.md sets; muted values are Claude Code's defaults
network-tmp@danielrosehill is listed by danielrosehill/claude-code-plugins — review the source before installing
npx claudepluginhub danielrosehill/claude-code-plugins --plugin network-tmp3 skills in this plugin
/cleanup-network-tmpReport and clean the network-tmp overflow — show how full the share and the local /tmp are, what this machine has stored and how old it is, and delete it now instead of waiting for the automatic expiry. Use when the user says "clean up network temp", "clear the overflow", "how full is network tmp", "free space on nettmp", or when the share is filling up./setupSet up network-tmp end to end — a capped, self-cleaning overflow directory on a home server or NAS that a RAM-limited or small-disk machine uses when /tmp is full or too small. Creates the server-side image, NFS export and hourly expiry timer, then the client automount, config and `nettmp` helper, and verifies both. Use when the user says "set up network tmp", "add another machine to network-tmp", "change the overflow size or TTL", or when `nettmp` is missing.