You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using [Claude Code for web](https://claude.ai/code) you can export your session as a `session.json` file using the `teleport` command (and then hunting around on disk).
26
+
This tool converts Claude Code session files into browseable multi-page HTML transcripts.
27
27
28
-
This tool converts that JSON into a browseable multi-page HTML transcript.
28
+
There are three commands available:
29
29
30
-
The quickest way to view a recent session is to import it directly and open in your browser:
30
+
-`local` (default) - select from local Claude Code sessions stored in `~/.claude/projects`
31
+
-`web` - select from web sessions via the Claude API
32
+
-`json` - convert a specific JSON or JSONL session file
33
+
34
+
The quickest way to view a recent local session:
31
35
32
36
```bash
33
-
claude-code-publish import --open
37
+
claude-code-publish
34
38
```
35
39
36
40
This shows an interactive picker to select a session, generates HTML, and opens it in your default browser.
The preview URL uses [gistpreview.github.io](https://gistpreview.github.io/) to render your HTML gist. The tool automatically injects JavaScript to fix relative links when served through gistpreview.
88
+
On macOS, API credentials are automatically retrieved from your keychain (requires being logged into Claude Code). On other platforms, provide `--token` and `--org-uuid` manually.
89
+
90
+
### JSON/JSONL files
80
91
81
-
When using `--gist` without `-o`, files are written to a temporary directory (shown in the output). You can combine both options to keep a local copy:
The preview URL uses [gistpreview.github.io](https://gistpreview.github.io/) to render your HTML gist. The tool automatically injects JavaScript to fix relative links when served through gistpreview.
105
131
106
-
You can import sessions directly from the Claude API without needing to export a `session.json` file:
On macOS, the API credentials are automatically retrieved from your keychain (requires being logged into Claude Code). On other platforms, provide `--token` and `--org-uuid` manually.
148
+
This will output:
149
+
```
150
+
JSON: ./my-transcript/session_ABC.json (245.3 KB)
151
+
```
126
152
127
-
The `--json` option for the import command saves the session data fetched from the API as `{session_id}.json` in the output directory.
153
+
This is useful for archiving the source data alongside the HTML output.
0 commit comments