From 60c586001cf4d21ef1351be8c8ad7a269a6f005a Mon Sep 17 00:00:00 2001 From: Elvis Claros Castro Date: Sat, 3 Oct 2026 19:03:27 -0300 Subject: Share one session through a public link claude-logbook -s REF --share uploads a session to a share server and prints its link; --shares lists them, --unshare deletes them, --expire picks how long they live. Before uploading it shows what goes up and warns about anything that looks like a credential. server/ is that share server: Go, standard library only, a FROM scratch image. It serves /share/ as a page, .txt and .json, accepts only the JSON payload (never HTML), pins the template's scripts with a CSP, keeps secrets hashed and rate-limits per client IP. --- server/home.html | 101 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 101 insertions(+) create mode 100644 server/home.html (limited to 'server/home.html') diff --git a/server/home.html b/server/home.html new file mode 100644 index 0000000..6ae6ad1 --- /dev/null +++ b/server/home.html @@ -0,0 +1,101 @@ + + + + + + +claude-logbook + + + + +
+

claude-logbook

+

Browse, export and share your Claude Code sessions from the terminal.

+ +

Install

+
pipx install claude-logbook      # or: pip install --user claude-logbook
+claude-logbook                   # table of every session
+ +

Share a session

+

Pick a session by its number in the table or by a prefix of its UUID, then share it:

+
claude-logbook -s 3 --share                # asks before uploading
+claude-logbook -s 5d10f1ee --share --expire 7d
+claude-logbook --shares                    # what you have shared
+claude-logbook --unshare 5d10f1ee          # take it down
+

Sharing the same session again updates it in place: the link stays the same.

+ +

Links

+ + + + +
{{PUBLIC_URL}}/share/<id>the conversation as a page
{{PUBLIC_URL}}/share/<id>.txtplain text transcript
{{PUBLIC_URL}}/share/<id>.jsonthe raw data, as claude-logbook --json -s prints it
+ +

Before you share

+
+

A share holds the whole conversation: your prompts, Claude's answers, + the tool calls and the project path. Anyone with the link can read it. It is not + encrypted, and this server can read it too.

+
+
    +
  • --share warns if it spots things that look like API keys, tokens or private keys.
  • +
  • Shares expire after 30 days unless you pick --expire 1d, 7d or 90d.
  • +
  • Only the machine that created a share holds its secret and can update or delete it + (~/.local/state/claude-logbook/shares.json).
  • +
  • Share pages are marked noindex, but a link is only as private as the places you paste it.
  • +
+ +

API

+

The CLI talks to a small JSON API; you can use it directly:

+
POST   /api/shares          {"payload": {...}, "expire": "30d"}  → {id, url, secret, expires}
+PUT    /api/shares/<id>     Authorization: Bearer <secret>        replace the content
+DELETE /api/shares/<id>     Authorization: Bearer <secret>        delete it
+

The payload is the JSON of claude-logbook --json -s REF, one session. + The server builds the page itself and does not accept HTML.

+ + +
+ + -- cgit v1.2.3