Metadata-Version: 2.4
Name: sessionbin
Version: 0.1.0
Summary: CLI for uploading and managing sessionbin transcripts
Author: Martin Prpič
Author-email: Martin Prpič <martin.prpic@gmail.com>
License-Expression: MIT
Requires-Dist: click>=8.1
Requires-Dist: httpx>=0.27
Requires-Dist: platformdirs>=4.3
Requires-Dist: questionary>=2.1
Requires-Python: >=3.10
Project-URL: Homepage, https://github.com/sessionbin/sessionbin-cli
Project-URL: Repository, https://github.com/sessionbin/sessionbin-cli
Description-Content-Type: text/markdown

# sessionbin-cli

CLI for uploading and managing [sessionbin](https://sessionbin.dev) transcripts.

## Installation

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

## Usage

### Upload a session

Upload a specific file:

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

Or pick from recent Claude Code sessions interactively:

```bash
sessionbin upload
```

Upload the most recent session directly:

```bash
sessionbin upload --latest
```

Use `-y` to skip the confirmation prompt:

```bash
sessionbin upload --latest -y
```

### List uploads

```bash
sessionbin list
```

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

### Delete an upload

```bash
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:

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

Or via environment variable:

```bash
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.
