Skip to main content

sessionbin CLI

CLI for uploading and managing sessionbin transcripts.

Supported harnesses

Claude Code sessions are read as files from ~/.claude/projects/.

Codex sessions are read as files from ~/.codex/sessions/. Sub-agent rollouts (reviews, spawned agents) are skipped.

Pi sessions are read as files from ~/.pi/agent/sessions/.

OpenCode sessions live in a local SQLite database rather than as files, so uploading one shells out to opencode export. The opencode binary must be on your PATH (or at ~/.opencode/bin/opencode).

Installation

uv tool install sessionbin
# or
pip install --user sessionbin

Usage

Upload a session

Upload a specific file:

sessionbin upload ~/.claude/projects/-home-user-repos-myproject/abc123.jsonl

Or pick from recent sessions interactively (Claude Code, Codex, OpenCode, and Pi):

sessionbin upload

Upload the most recent session directly:

sessionbin upload --latest

Use -y to skip the confirmation prompt:

sessionbin upload --latest -y

List uploads

sessionbin list

Shows locally-tracked uploads (URL, filename, upload time).

Delete an upload

sessionbin delete <slug>

Deletes the paste on the server and removes the local record.

Configuration

On first run, you'll be prompted for a server URL (defaults to https://sessionbin.dev). The choice is saved to ~/.config/sessionbin/config.toml.

You can override the server URL per-command:

sessionbin upload --server http://localhost:8000

Or via environment variable:

export SESSIONBIN_URL=http://localhost:8000

Priority: --server flag > SESSIONBIN_URL env var > config.toml > interactive prompt.

Session data

Upload metadata (slugs, delete tokens) is stored in ~/.config/sessionbin/sessions.json with 0600 permissions. This file is local-only — the list command reads from it without contacting the server.

Metadata

Release files for sessionbin 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sessionbin 0.2.1
File Size Uploaded
sessionbin-0.2.1.tar.gz 8.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sessionbin 0.2.1
File Interpreter ABI Platform
sessionbin-0.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 18.5 kB

Release files / sessionbin-0.2.1.tar.gz

Download URL sessionbin-0.2.1.tar.gz
Size 8.2 kB
Tags Source
SHA-256 checksum
How to use checksums
c4c91a19a24c3cc720b7b540ce0143ead32b80405f9bd918453f4cd573f03710
BLAKE2b-256 checksum
How to use checksums
6ccd315f189d5d9cbcde79dfd40f1d409875fa4f0c655ee89d8cf1a33517ec57
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 15, 2026.

Transparency log

Release files / sessionbin-0.2.1-py3-none-any.whl

Download URL sessionbin-0.2.1-py3-none-any.whl
Size 10.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b08bbdca25fda84b261e8b57abadb8397f5bc6973afd5837d1de70917797b252
BLAKE2b-256 checksum
How to use checksums
5aab082b707379bcd31ce59ee67786b9a5867753b701bac73edfe4f7ee56d040
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 15, 2026.

Transparency log

Release history Release notifications | RSS feed

0.3.0

2 release files

This release

0.2.1 This release

2 release files

0.2.0

2 release files

0.1.0

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page