svc.nz is a service for storing and fetching files and other bytes over HTTPS, from curl, scripts or AI agents, for developers and teams who want a simple handoff without a shared drive or cloud account. It is free during the invite-only beta. Capability-addressable byte storage for scripts, agents, and humans: reading and writing a box that already exists needs only that box's capability token, and creating a new box or account is invite-only for now.
Box addresses
svc.nz/<box>
svc.nz is pronounced service. A box stores named files that clients read and write over HTTP, addressed by the box handle and authorised by a capability token in the Authorization header. Every PUT creates a new version of the stored file.
A capability, or cap for short, is a secret token written like cap_access_a3F2…9bQ. Anyone who holds a valid capability can use the permissions it grants for an existing box. The client sends this token in the Authorization header, never in the URL.
like a keyAnyone who holds the capability can use the permissions it grants. Sharing the capability gives the recipient those same permissions.
per-boxEach capability grants access to one box or a limited part of it. A capability for one box cannot authorize access to another.
rotatableA response can supply a replacement capability in cap_next. Clients adopt that replacement before their current access capability expires.
stored tokensA capability can be stored as bytes inside another box. Sharing a capability with limited permissions lets a recipient access a resource without receiving broader access.
See it in action
Terminal examples for common workflows
These seven examples illustrate file transfers and coordination between clients over HTTP. The panels include shell, HTTP, and Python examples with abbreviated tokens and response data. Creating any new box or account first requires an invitation.
agentcap rotated
Agent inbox with long polling
Worker B requests new data with ?wait=30 and receives a response when Worker A writes a message or the wait ends.
bob@worker-b · bash · 80×24
tmux 1/3
alice@worker-a~/agent$curl-sS-XPUT\-H"Authorization: Capability $CAP_W"\-H"Content-Type: application/json"\--data'{"task":"summarize","url":"…"}'\https://in.svc.nz/bbb222/_inbox← 200{"version":1,"cap_next":"cap_access_9b…3pQ"}bob@worker-bbob@worker-b~$curl-sS-H"Authorization: Capability $CAP_R"\"https://out.svc.nz/bbb222/_inbox/latest?after=v0&wait=30"# waits until the next version arrives← 200X-SVC-Version:1X-SVC-Cap-Next:cap_access_9b…3pQ{"task":"summarize","url":"…"}
PUT/bbb222/_inboxHTTP/1.1Host: in.svc.nzAuthorization:Capabilitycap_access_write_8a…7xKContent-Type: application/json{"task":"summarize","url":"https://…"}HTTP/1.1200 OKX-SVC-Version:1X-SVC-Cap-Next:cap_access_9b…3pQbob@worker-bGET/bbb222/_inbox/latest?after=v0&wait=30HTTP/1.1Host: out.svc.nzAuthorization:Capabilitycap_access_read_3b…aQ1HTTP/1.1200 OK
importhttpx# worker A writes a jobr=httpx.put("https://in.svc.nz/bbb222/_inbox",json={"task":"summarize"},headers={"Authorization":f"Capability {CAP_W}"},)CAP_W=r.json()["cap_next"]# adopt the replacement capabilitybob@worker-b# worker B waits for the next messager=httpx.get("https://out.svc.nz/bbb222/_inbox/latest",params={"after":"v0","wait":30},headers={"Authorization":f"Capability {CAP_R}"},timeout=35,)print(r.headers["x-svc-version"],r.json())# → 1 {'task': 'summarize', 'url': '…'}
handoffscoped read
Scoped capability handoff
Alice derives a read-only capability and writes it to Bob's inbox. That capability lets Bob read docs66/handoff.txt without granting access to other files.
After a worker crashes, its replacement reads the saved cursor at v17. The replacement uses that checkpoint to resume processing from the last saved position.
ops@k8s · bash · 80×24
tmux 3/3
# worker-old crashes after saving checkpoint v3ops@k8s~$kubectl get pod rollout-42← outNAME STATUS RESTARTS rollout-42 CrashLoopBackOff7# a replacement worker reads the checkpoint and resumesops@k8s~$curl-sS-H"Authorization: Capability $CAP_R"\https://out.svc.nz/home66/_resume/9f86d081…/latest← 200{"session":"rollout-42","cursor":"v17","checkpoint":"2026-05-07T03:14:21Z","cap_next":"cap_access_read_next_d2…7Lp"}ops@k8s~$./worker--resumev17--cap$CAP_NEXT[ok] loaded state, resume at v17[ok] emitted v18·v19·v20[ok] rollout-42 complete
async defresume(session_id):key=sha256(session_id.encode()).hexdigest()r=awaitclient.get(f"https://out.svc.nz/home66/_resume/{key}/latest",headers={"Authorization":f"Capability {CAP}"},)ifr.status_code==404:returncold_start()state=r.json()log.info("resume at %s",state["cursor"])returnreplay_from(state["cursor"])
cacheskip repeat work
Tool-result cache
The agent hashes (tool, args) to identify a stored result. A cache hit lets the agent reuse that result while it remains valid.
agent@runner · bash · 80×24
cache.py
agent@runner~$KEY=$(jq-cS'.' < tool.json |sha256sum|cut-c1-16)agent@runner~$echo$KEY← out3b8a7e21f4c0a991agent@runner~$curl-sS-w'%{http_code}\n'\-H"Authorization: Capability $CAP_R"\"https://out.svc.nz/home66/cache/$KEY/latest"← 200{"result":"london, 14°C, light rain","computed_at":"…"}200# cache hit, the stored result is reused# on a miss, run the tool and store the resultagent@runner~$./tool.sh|curl-sS-X PUT --data-binary@-\-H"Authorization: Capability $CAP_W"\"https://in.svc.nz/home66/cache/$KEY"
GET/home66/cache/3b8a7e21f4c0a991/latestHTTP/1.1Host: out.svc.nzAuthorization:Capabilitycap_access_read_…HTTP/1.1200 OK# hit, the stored result is usedX-SVC-Version:5Content-Type: application/json{"result":"london, 14°C, light rain"}# on a miss the server returns 404HTTP/1.1404 Not FoundPUT/home66/cache/3b8a7e21f4c0a991HTTP/1.1Authorization:Capabilitycap_access_write_…{"result":"london, 14°C, light rain"}
CI uploads build.tar.zst to an existing box using its write capability. The deployment job requests v1 with a read capability to fetch that specific version.
# deploy pulls and verifies the artifactimporthashlib,os,httpxCAP_R=os.environ["SVC_RELEASE_CAP"]URL="https://out.svc.nz/release7/build.tar.zst/v1"withhttpx.stream("GET",URL,headers={"Authorization":f"Capability {CAP_R}"},)asr:h=hashlib.sha256()withopen("build.tar.zst","wb")asf:forchunkinr.iter_bytes():h.update(chunk);f.write(chunk)asserth.hexdigest()==r.headers["x-svc-sha256"]
sealedbyte-blind
Encrypted file transfer
The client optionally encrypts the file before uploading any bytes. The encryption key stays on the client, and the server stores ciphertext.
aroha@laptop · fish · 100×28
aes-256-gcm
aroha@laptop~/photos$svcbox key← outk_aes256_a3F2…9bQ# 256-bit key in base32aroha@laptop~/photos$svcbox put oneuse2 photo.jpg --cap $CAP_W \--filephoto.jpg--encrypt-key$KEY--ttl3600--json← ok{"version":1,"box":"oneuse2","size":2104832,"encryption":"aes-256-gcm","expires_at":"2026-05-08T03:14:02.000Z"}svc@edge# the server stores ciphertext onlysvc@edge/srv#xxd oneuse2/photo.jpg/v1 |head-1← outa8 c4 1f e2 6b 9d 04 7f 3c 11 d6 22 91 5e 0a bb!# Decrypting photo.jpg requires the key held by the client.
fromcryptography.hazmat.primitives.ciphers.aeadimportAESGCMimportos,httpxkey=AESGCM.generate_key(bit_length=256)nonce=os.urandom(12)plain=open("photo.jpg","rb").read()ct=AESGCM(key).encrypt(nonce,plain,None)httpx.put("https://in.svc.nz/oneuse2/photo.jpg",content=nonce+ct,headers={"Authorization":f"Capability {CAP_W}","X-SVC-Encryption":"aes-256-gcm",},params={"ttl":3600},)# send the key by another channelprint("key:",b32encode(key).decode())
personalexpiring transfer
Hand someone a file
A sender needs an existing box or an invitation to create one. The recipient downloads it with the file URL and a capability in the Authorization header. Anonymous boxes expire when their configured lifetime runs out.
you@laptop · zsh · 80×24
share
# creating a box needs an inviteyou@laptop~/Desktop$svcbox share screenshot.png \--ttl86400--content-typeimage/png← ok{"url":"/out/sh7b3kp2/screenshot.png/latest","authorization":"Authorization: Capability cap_access_read_7m…Qp","expires_at":"2026-05-08T03:14:02.000Z"}friend@phone# the recipient downloads with the shared capfriend@phone~$curl-H"Authorization: Capability cap_access_read_7m…Qp"\https://svc.nz/out/sh7b3kp2/screenshot.png/latest-oscreenshot.png[ok] got 412 KB · expires tomorrow
importhttpx# the sender uploads with a write capwithopen("screenshot.png","rb")asf:r=httpx.put("https://in.svc.nz/sh7b3kp2/screenshot.png",params={"ttl":86400},content=f.read(),headers={"Content-Type":"image/png", "Authorization": f"Capability {CAP_W}"},)card=r.json()cap=card["cap_read_next"]url="https://svc.nz"+card["get_url"]friend@phone# use the URL and header from the responseimg=httpx.get(url,headers={"Authorization":f"Capability {cap}"}).content
PUT and GET
How it works
in
PUT
$curl-X PUT -H "Authorization: Capability $CAP" --data-binary@thing\https://in.svc.nz/<box>/<name>{"version":1,"cap":"cap_8a…7xK","cap_expires_at":"+24h","cap_next":"cap_9b…3pQ"}
The client uploads bytes to an existing box using its write capability. When the response supplies a replacement capability, the client adopts it for subsequent requests.
The client requests a specific version with /v2 or the most recent version with /latest. The capability must grant read access to the requested file and version.
Another PUT to the same path creates a new version. Previous versions stay readable until the box expires, or until someone holding the refresh capability deletes them.
What a box does
Storage properties
01
SECURE
Each request carries a capability in the Authorization header. Reading or writing an existing box requires a capability with the corresponding permissions.
02
VERSIONED
Every PUT creates a new version instead of overwriting bytes in place. A client can request any earlier version by its number, and a number is never reused.
03
COMPOSABLE
A capability can be stored inside another box to pass access to a recipient. Replacing that stored token does not invalidate copies a recipient already holds.
04
NON-PERSISTENT
Anonymous boxes expire when their configured lifetime runs out. Clients must retrieve any needed files before the box expires.
05
CLIENT-SIDEENCRYPTION
Client-side encryption is optional, and its key never leaves the client. When encryption is enabled, the server stores ciphertext that requires the key to decrypt.
Capability rotation
Capability rotation for long-running clients
Long-running clients adopt cap_next when a response provides a replacement access capability. The client saves that token for subsequent requests before the current capability expires.
The two-cap model separates a longer-lived cap_refresh, used at /refresh, from the cap_access used for reads and writes. Clients keep the refresh capability out of ordinary PUT and GET requests. Access capabilities belong in Authorization headers rather than request URLs.
sensor@field-7 · bash · rotate.sh
rotate.sh
#!/usr/bin/env bashset-euopipefailCAP="$CAP_INITIAL"whiletrue;doresp=$(curl-sS-X PUT --data-binary@reading\-H"Authorization: Capability $CAP"\"https://in.svc.nz/sensor7/reading")CAP=$(jq-r'.cap_next // .cap' <<< "$resp")sleep30done# adopt cap_next when the response carries one
Auth profiles
Available authentication profiles
Authentication profiles are configured separately for each HTTP method when a box is created. The setting auth.put=passkey&auth.get=none requires a passkey alongside the capability for writes, while reads use the capability alone.
A
NONE
The default profile accepts a capability with the required permissions. The client supplies it in the Authorization header for each request.
B
COMPOUND
The compound profile requires two capabilities for each request. The capabilities can be held separately until the request is made.
C
PASSKEY
This profile requires a capability plus a signed challenge from a key you hold (Ed25519 or P-256), such as the one passkey create generates. It suits human-operated boxes without adding a shared secret.
D
TOTP
This profile requires a capability and a time-based one-time password. The client supplies the current code along with its capability.
Quick answers
Frequently asked questions
What is svc.nz?
svc.nz is a service for storing and fetching files and other bytes over HTTPS. You PUT to a box, GET it back, and each new write keeps a new version.
Do I need an account to read or write a box?
No account is needed to read or write an existing box, only that box's capability token in the Authorization header, plus any extra factor the box requires for that operation. Creating a new box or account is invite-only during the beta.
Is svc.nz free?
Yes, it is free during the invite-only beta. Anonymous boxes expire.