Skip to main content

Terminal tool to view and manage GitHub Copilot CLI sessions

Project description

🤖 Copilot Sessions

A rich terminal UI (TUI) to view and manage your GitHub Copilot CLI sessions — track usage, costs, premium requests, kill stale sessions, and clean up old ones.

Python License PyPI

Features

  • Full TUI — interactive Textual-based terminal dashboard
  • List & filter all Copilot CLI sessions with live search
  • View details with full 💰 usage breakdown (tokens, models, premium requests, cost)
  • Active sessions — see what's running live with ● LIVE indicators
  • Ghost detection — identify empty sessions (👻 ghost: 0 B, 0 Msgs)
  • Kill stale/orphan live sessions (SIGTERM)
  • Delete & cleanup old or ghost sessions in bulk
  • Sort by clicking column headers (Status, Created, Size, etc.)
  • Export sessions to CSV, JSON, or styled HTML report
  • Statistics — total usage, premium reqs, disk, ghost count at a glance
  • Resume command — copy-paste to jump back into any session
  • About & Help screens built in (i / ?)

Installation

pipx (Recommended)

pipx install copilot-sessions

pip

pip install copilot-sessions

From source

git clone https://github.com/sk3pp3r/copilot-sessions.git
cd copilot-sessions
pipx install .

Usage

copilot-sessions              # launch TUI dashboard
copilot-sessions --version    # show version
copilot-sessions --help       # CLI help + keyboard shortcuts

Keyboard Shortcuts

Key Action
l List all sessions
a Show active (live) sessions only
f Toggle search / filter bar
v / Enter View session detail + usage
k Kill a live session
d Delete an idle session
c Cleanup ghost sessions (0 B, 0 Msgs)
e Export (CSV / JSON / HTML)
r Refresh session list
? Help screen
i About screen
Escape Back
q Quit

Mouse: Click row to select · Click header to sort · Scroll wheel to navigate

Requirements

  • Python 3.10+
  • textual + rich (installed automatically)
  • GitHub Copilot CLI (~/.copilot/session-state/ must exist)

License

MIT © Haim Cohen 2026

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

copilot_sessions-2.1.0.tar.gz (16.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

copilot_sessions-2.1.0-py3-none-any.whl (15.8 kB view details)

Uploaded Python 3

File details

Details for the file copilot_sessions-2.1.0.tar.gz.

File metadata

  • Download URL: copilot_sessions-2.1.0.tar.gz
  • Upload date:
  • Size: 16.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for copilot_sessions-2.1.0.tar.gz
Algorithm Hash digest
SHA256 f536164c1adb67e1132d1b940d45449f3da59697a7bdf0d5f99518c6eae88199
MD5 03b47895ccfe5fa1b15d6d97d6fac17a
BLAKE2b-256 c1900c27a8b43596b240d2dd3e2d74da2821424b73cba7af112d6cad542b4801

See more details on using hashes here.

File details

Details for the file copilot_sessions-2.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for copilot_sessions-2.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1fe453219fec9d5edbf216ec3ca01ef86d10ec30c4cd80bcba30cb9954c5614b
MD5 106b32d7fe486ecd81ec59b05b5d9515
BLAKE2b-256 ba14262069e67dafaa4b6a3bbb75c6af0bcef458c521740d654023f833c84cbe

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page