tail.surf is a streaming gist for live work and agent conversations.
Each stream gets a stable URL that can be concurrently written to, read from anywhere, and tailed in real-time.
Free to start with no sign-up required.
Use it to stream sandbox output, build output, deploy logs, sandbox sessions, or agent-to-agent messages. For example:
- Share long-running command output without keeping an SSH session, sandbox, or terminal attached.
- Give agents a reliable async channel with durable catch-up.
- Turn build, test, deploy, and debugging output into a permalink that can be inspected in real-time or after the fact.
Open tail.surf for the scrubbable live transcript, or install the tsf CLI below.
Install the prebuilt CLI on macOS or Linux:
curl --proto '=https' --tlsv1.2 -LsSf https://tail.surf/install | shInstall it from PowerShell on Windows:
irm https://tail.surf/install.ps1 | iexThe direct installer puts tsf in ~/.local/bin. It writes an installer receipt so tsf can update only the files that installer owns.
Cargo remains the Rust-native fallback:
cargo install tailsurf-cli --lockedUpdate a direct installation explicitly:
tsf updateCheck without installing:
tsf update --checkInstaller-owned binaries may contact GitHub Releases and print an update hint after a successful interactive command against https://tail.surf. Successful checks run at most once per day. Failed checks retry after one hour. Each request waits at most three seconds and never installs an update. Set TSF_NO_UPDATE_CHECK or DO_NOT_TRACK to disable hints. CI and non-interactive commands do not check.
Installations owned by a package manager do not check or print the hint. Cargo users rerun cargo install tailsurf-cli --locked. cargo-binstall users rerun cargo binstall tailsurf-cli.
Create a private stream:
tsf new --title 'Production deploy'Create a public stream:
tsf new --publicChoose a shorter initial lifetime with a human duration:
tsf new --expires 7d
make test | tsf new --title 'Test run' --expires 6hStreams expire after 10 days by default. Their complete history remains readable until expiry.
tsf new prints the title, Stream ID, expiry, and initial links. Private streams get a read link and an owner link. Public streams get a public URL and an owner link. The title is optional.
Create custom links with --link LINK_ID=PERMISSION. Link IDs are short semantic names such as deploy-bot. Permissions are read, write, read-write, and owner. The short forms r, w, rw, and o are also accepted. A stream may have up to three initial links, including defaults. Links are shown once.
Stream command output into a new stream:
make test | tsfBare tsf captures piped input in a new stream. With terminal input and no subcommand, it prints help.
Creation details and links go to stdout. Durability progress goes to stderr.
Use write to send input to an existing stream. It accepts a write-capable link and creates no links.
Run a command through tsf when you want tsf to propagate the command exit status:
tsf new -- make testHost an interactive command in a multiplayer web terminal:
tsf terminal
tsf terminal -- htop
tsf terminal --public -- bash
tsf terminal --show-owner-linkThe command runs in a local PTY. The hosted service does not run it.
Private sessions print separate observer and controller links. Public sessions print a public observer URL plus a controller link.
Pass --show-owner-link to print the private owner link for later administration. The owner link can change visibility, manage links, update metadata, and delete the session.
Observers see terminal output. Controllers can also send input and resize the PTY. Only an owner can publish terminal output. tsf terminal is the normal host.
Terminal output is durable. The browser timeline can pause, seek, and replay it. Input is enabled only at the live edge.
Closing a browser does not stop the command. Ctrl-C in the host stops it.
By default, tsf new creates a transcript stream. It makes input line boundaries record boundaries:
make test | tsf
make test | tsf write '{write-link}'The delimiting newline is not stored. Transcript reads append one newline after each logical record.
The writer splits a logical line into physical records and applies backpressure at its fixed in-flight window. A single larger logical line remains contiguous. tail and replay retain a 16 MiB reassembly safety bound by default. Raise --max-reassembly-bytes when reading larger logical records.
Use tsf new --bytes to create an opaque byte stream. Byte records flush at the physical record size limit, after a short linger, and at EOF:
cat artifact.bin | tsf new --bytes
cat artifact.bin | tsf write '{byte-stream-write-link}'tsf write learns the immutable stream kind during its handshake. It line-frames transcript input and byte-frames byte-stream input.
On Ctrl-C, tsf stops input, flushes the current input chunk, waits for durability acknowledgements, closes the writer, and exits with status 130. Press Ctrl-C again to stop immediately without waiting for pending acknowledgements.
Tail or replay a link or public stream URL:
tsf tail '{url}'
tsf tail -n 200 '{url}'
tsf tail --seq 0 --count 500 '{url}'
tsf tail --since 15m '{url}'
tsf replay '{url}'
tsf tail --sse '{url}'--last or -n starts relative to the durable tail. --seq starts at an absolute sequence number. --since accepts a duration or RFC 3339 timestamp. --count bounds the number of records.
tail follows new records unless --count bounds it. replay drains through the tail observed by its connection and exits.
--sse uses the resumable HTTP event-stream transport. The default binary WebSocket transport remains best for interactive CLI use.
Both commands preserve payload bytes. Transcript streams add one newline after each logical record. Byte streams add nothing. Both commands exit successfully when a downstream pipe closes normally.
Inspect stream metadata:
tsf info '{url}'
tsf info '{url}' --jsonOwner links contain #o= and can manage the stream:
tsf visibility '{owner-link}' public
tsf title set '{owner-link}' 'Production deploy — west'
tsf title clear '{owner-link}'
tsf renew '{owner-link}' 7d
tsf link create '{owner-link}' 'deploy-reader=read' --expires 7d
tsf link list '{owner-link}'
tsf link revoke '{owner-link}' 'deploy-reader'
tsf delete '{owner-link}'Deletion asks for confirmation on a terminal. Scripts must pass --yes.
Renewal extends an active stream from the current time. Link expiry accepts durations such as 1h or 7d, or never by default.
A stream title contains 1 to 120 Unicode code points. Leading or trailing whitespace, control characters, and line breaks are rejected. Titles may be duplicated, changed, or cleared. The immutable Stream ID remains the stream identity and URL component.
Every link has a client-chosen immutable Link ID. Link IDs contain 1 to 64 lowercase ASCII letters, digits, or hyphens. They cannot start or end with a hyphen. Link IDs are unique within a stream.
Link file options write complete URLs. Any command that accepts a link also accepts @PATH to read one complete URL from a file. On Unix, tsf creates and tightens link files to mode 0600.
Commands with structured output accept --json.
The repository also contains public Rust and TypeScript SDKs.
rustis thetailsurfRust SDK crate.typescriptcontains@tailsurf/clientand the lower-level@tailsurf/protocolpackage.
Install the TypeScript client with npm install @tailsurf/client. The unscoped tailsurf npm package is an alias for it. Rust API documentation is available on docs.rs.
The TSF v1 protocol defines the public REST, SSE, and WebSocket contract the SDKs and service implement. openapi.yaml is the machine-readable REST and SSE contract.
See Development for the workspace layout, local-service setup, checks, and diagnostics. Release maintainers should also read Release operations.
- Trust, Privacy, and Terms cover the hosted service.
- Report vulnerabilities through SECURITY.md.
- GitHub Issues is the public support path. Never post an owner, write, or private read link.
The SDKs and CLI are MIT licensed. See LICENSE.