What it looks like. Carol shares a file with pedit; Alice and Bob edit
it in their browsers. This is Alice's view:
Markdown, with a live preview and Bob's cursor
CSV as a table, with Bob's selected cell
Canvas as a board, with Bob's selected node
pedit is a CLI that lets people edit your local files together in their
browsers. Edits are saved back to your file:
❯ pedit notes.md
notes.md is ready to write together.
Send this link to the people you want to invite:
https://edit.piconic.ai/r/<room-id>#<key>
Press Ctrl+C when you are done. Everything is saved to notes.md.
● Alice and Bob are here
No install or account needed for collaborators on the public server.
If the connection drops, keep pedit running. It reconnects with the same
link and merges edits made while disconnected. The terminal keeps an offline
notice and confirms when syncing resumes. While the host is away, the browser
pauses editing; edits already made or still in transit merge when the host
returns. The public relay keeps guests waiting for up to two minutes.
Text, canvas changes, and comments save during the session, including while
edits continue. Saves normally start about a second after the first pending
change. A crash can lose changes still in memory, in transit, or waiting for a
save; failed or slow disk writes can extend that window. Ctrl+C flushes pending
changes and closes the room. Running pedit again creates a new link.
Collaborators who would rather stay in their own editor join from the command
line instead. Given the link, pedit mirrors the shared file to a temporary
copy and keeps it in sync both ways until they leave or the host closes the
room; the copy is removed then, like closing a browser tab. pedit names the
copy itself, from a number and the letters and digits of the host's name for
it, never as the room names it:
❯ pedit 'https://edit.piconic.ai/r/<room-id>#<key>'
Joined. Your copy of the shared file:
/tmp/pedit-<room-id>-2271/00-notes.md
Copied to your clipboard.
Edit it with any editor; changes sync both ways while you are in the room.
Press Ctrl+C to leave. The copies are temporary and removed then.
Quote the link in the shell: # starts a comment otherwise. Copy out what you
want to keep before you leave. Canvas rooms can only be joined in a browser
for now.
Several files in one room
Name several files to share them in one room, under one link. Guests switch
between them with the tabs above the editor:
❯ pedit agenda.md docs/spec.md board.canvas
While sharing, type the path of another file and press Enter to add it to the
room, without a new link: a meeting can start with the agenda and bring in the
spec when it comes up. Only the host adds files; nobody in the room can ask for
one. A room shares up to 20 files, each a regular UTF-8 file, as when sharing
one. Paths are shown relative to the directory pedit runs in.
A guest who joins from the command line gets a copy of each text file in the
same temporary directory, including files the host adds later, named after
the host's path: docs/spec.md is copied to 01-docs-spec.md. Canvases are
for the browser.
Comments
In the browser, select some text, a cell of a table (or a whole row or
column), or a node of a canvas, and write a comment in the panel beside it.
Everyone in the room sees it at once, marked where it points, and can reply
or resolve it; resolved threads stay under Resolved, to read again or reopen.
You can edit or delete your own comments from their ⋮ menu (deleting asks
first). Each file's tab (or its name, in a room of one file) shows how
many of its comments are still open, and the speech bubble in the header,
or Ctrl/⌘+Alt+M, shows or hides the comments. A comment never goes into the file: the host keeps the
comments of each file in .pedit/meta/<path>.json, and the next session
shows them again, found by the text, cells or node they pointed at. A
comment follows its place as people edit, and says so when that text changed
or is gone. A comment goes on up to 1,000 characters of text, or of a cell.
Comments are kept for files inside the project: the directory of
.pedit/config.yaml, or the one you run pedit in when there is none. Commit
.pedit/meta/ to keep them with the files. A guest on the command line, or
an older pedit, does not see them. See
the design for how they are anchored and checked.
Comment-only and read-only links
The link pedit prints lets people edit. To let someone only comment, or only
read, press Ctrl+L while sharing, or choose Share in the browser's header, and
send one of these instead:
Links with less access:
Comment only https://edit.piconic.ai/r/<room-id>#c.<key>
Read only https://edit.piconic.ai/r/<room-id>#r.<key>
Someone with a comment-only link reads the files and writes comments, and
someone with a read-only link reads both. They are listed among the
participants as comment only or read only. A comment-only link is offered while
some file keeps comments. Each link also gives the ones below it, never the
ones above, and every peer checks what the others may do, not the relay. These
links open in a browser; the command line joins with an edit link only.
Why pedit?
Local files work naturally with coding agents and your own editor. Keeping
documents in Git makes changes reviewable and preserves their history, but
asking someone to clone a repository and open a pull request adds friction
to a quick editing session.
pedit lets you invite people into the file with a link and edit together in
their browsers. They do not need to set up your development environment.
The edits land in the same local file, ready for your next agent task,
review or commit.
Install
macOS / Linux:
curl -fsSL https://edit.piconic.ai/install.sh | sh
install.sh is served by the relay. To install from GitHub instead, use one
of the methods below.
Homebrew (macOS / Linux):
brew install piconic-ai/tap/pedit
mise:
mise use -g github:piconic-ai/pedit
Go 1.25+:
go install github.com/piconic-ai/pedit/cmd/pedit@latest
Binaries: GitHub Releases (macOS / Linux / Windows · amd64 / arm64).
Each archive carries a build provenance attestation; check that it was built
by this repository's release workflow with
(releases up to v0.1.2 were signed by tagpr.yml instead). Releases after
v0.1.5 also carry the attestation as a file, pedit_<version>.sigstore.json,
for gh attestation verify <archive> --bundle <file> .... The archives are
reproducible: GoReleaser v2.18.3 (goreleaser release --clean --skip=publish
with .goreleaser.yaml) run on the same tag with the Go version from go.mod
on ubuntu-24.04 gives the same checksums.txt. Releases made before the
switch to GoReleaser were built by scripts/build-cli-release.sh; their tags
still carry it, so rebuild those with that script instead.
Configuration and templates
Run pedit at a Git repository root to create .pedit/config.yaml and
.pedit/templates/ with editable Markdown, CSV, and Canvas defaults.
server: https://edit.piconic.ai
output: notes
Add your own template files directly to .pedit/templates/:
.canvas files use JSON Canvas, an open format for
whiteboard-style diagrams.
-t / --template selects a template; -t csv and -t canvas select
default.csv and default.canvas. -d / --directory overrides output.
New files get a timestamp and a counter if needed. Existing files are preserved.
Configuration is found from the current directory up to the Git root.
output is relative to the project; -d is relative to the current directory.
Without configuration, the public server and built-in defaults work immediately.
Set server in the config instead of PEDIT_SERVER.
Privacy and security
In a browser, the editor's code comes from the relay, so you trust whoever
runs it and Cloudflare, which hosts it: a modified editor could read the key
and plaintext. The command line runs no code from the relay: guests can join
with pedit '<link>' instead of a browser, using a pedit installed from
Homebrew, go install or a release archive you verify, not from install.sh,
which the relay serves. Or self-host the relay and editor. See
security design for the encryption and what it does
not protect against, and the public relay for what
edit.piconic.ai logs and keeps.
This is a simplified illustration: pedit encrypts document updates rather than
raw text. The relay sees the room ID and encrypted bytes, but not the key.
Edits in the opposite direction follow the same process.
End-to-end encryption. Document updates and pasted images are encrypted
on your devices. The relay receives ciphertext; the key stays in the link's
#fragment and is never sent to the server.
Local files, temporary sessions. The relay does not store document text,
and attempts to delete encrypted images when the host leaves
(what the public relay keeps).
Private local copies. On Unix, new CLI join copies and saved attachments
use owner-only permissions, further restricted by your umask. Updates retain
an existing document's permissions; existing files are not retroactively made private.
Comments are encrypted too. They travel as updates of a document of
their own, end to end like edits, and only the host saves them, in
.pedit/meta/; commit that only if you want them in the repository. The
editor lets you change or delete only your own comments, but anyone with
an edit or comment-only link could change or delete any comment.
The link grants editing access. Anyone with the full link can read and
edit during the session. Share it only with people you trust, or send a
comment-only or read-only link, which
cannot change the files: editors sign what they send, and every peer drops
what a link cannot sign. Closing a session does not erase copies
participants have made.
Room IDs alone do not grant access. Clients derive a separate admission
token from the fragment key. The relay checks this token before accepting
connections or attachment requests; the token cannot decrypt content.
Your relay, your access rules. Use the public relay at edit.piconic.ai,
or self-host to require sign-in with Cloudflare Access.
Only the files you share. The CLI reads and writes the files you name,
images in assets/ beside each, its own .pedit/ configuration and a cache, and runs
only a clipboard tool and, for Access, cloudflared. See
what pedit does on your computer for every file and
what you accept.
You must also trust participant devices and browsers. Infrastructure can see
IP addresses, room IDs, request timing and ciphertext sizes; infrastructure and
Access logs have separate retention settings and are not erased when a room
closes.
Markdown previews can embed YouTube, Vimeo, Loom, Figma, CodePen, StackBlitz,
Observable, Spotify, SoundCloud and Miro players and public source files on
GitHub, and show external images and videos where the relay allows them (the
public relay does not). An embed loads only when someone clicks "Load from" on
it, or ticked "Always load" for its provider, so nobody in the room contacts a
third party just because a URL was written in the file. See
embeds for the list, sizes such as
https://youtu.be/dQw4w9WgXcQ#width=560&height=315, GitHub line ranges, privacy,
and how a self-hosted relay adds or drops providers. With Access,
avatars may load from an identity provider or Gravatar using an email hash.
Those providers can see the requests.
Besides the relay, the CLI itself connects only to api.github.com, to check
for a newer release, and keeps the answer for a day; it never downloads or
installs one.
Self-host when you need more, or when you want to limit who can join editing
sessions. Cloudflare Access lets you allow specific email addresses or identity
provider groups; participants need both an allowed identity and the session
link.
The button copies only the server workspace (packages/), without the Go CLI.
Deploy the relay and browser editor to your Cloudflare account, then:
# Set server: https://<worker>.<subdomain>.workers.dev in .pedit/config.yaml
pedit notes.md