Skip to main content

OctoTrack

An async CLI client for GitHub, built to track commits, pull requests, issues, releases, and general repository activity — straight from your terminal.

OctoTrack talks directly to the GitHub REST API using httpx, so there's no dependency on the gh CLI or any GitHub SDK.

Table of Contents

Installation

Install via pip:

pip install octotrack

Requires Python 3.13+.

Quick Start

# One-time setup: creates config/data directories
octotrack setup

# Add a GitHub personal access token
octotrack config set-token

# Set a default repo so you don't have to type it every time
octotrack repo default JKG-cpu/OctoTrack

# Pull general info on a repo
octotrack repo info

Commands

All commands are grouped under three top-level subcommands: setup, config, and repo. Run octotrack --help, or --help on any subcommand, to see this reference from the CLI itself.

setup

Manages the local files OctoTrack needs to run (config directory, data directory, and env file for your token).

Command Description
octotrack setup Creates the config and data directories, and the settings file, if they don't already exist. Safe to run again — existing valid setups are left untouched.
octotrack setup validate Checks that all required paths exist and reports whether a GitHub token is set.
octotrack setup remove Deletes all data and config files created by OctoTrack, after a confirmation prompt.

config

Reads and writes local configuration, including your GitHub token.

Command Description
octotrack config show Prints all current config values.
octotrack config set-token Prompts for a GitHub token and stores it as a local environment variable. Never written to the config file.
octotrack config set <key> <value> Sets a config value directly. Valid keys: default_owner, default_repo, default_pr_state, api_base_url.
octotrack config clear [--key/-k <key>] Resets a single config key to its default. Omit --key to reset the entire config.
octotrack config path Prints the path to the config settings file.
octotrack config github-token-help An explanation on how to create a GitHub Authentication Token

repo

Fetches and displays information about a GitHub repository.

Command Description
octotrack repo info [owner/repo] Shows general repository info: description, language, visibility, stars, forks, license, and README preview.
octotrack repo default <owner/repo> Sets a default owner and/or repo, used whenever owner/repo is omitted from other repo commands.
octotrack repo readme [owner/repo] Fetches and renders just the repository's README.
octotrack repo contents [owner/repo] [options] Lists the contents of a repository.

repo contents options:

Flag Description
-p, --path <path> List contents of a specific folder in the repository.
-h, --hidden Include hidden files (dotfiles) in the listing.
-l, --list Print as a flat list instead of a tree.
--depth <int> How many levels deep to recurse into subdirectories (default: 3).

Every repo command that accepts owner/repo will fall back to your configured default (set via octotrack repo default) for whichever part — owner, repo, or both — you omit.

commits

Get the commits for a repository

Command Description
octotrack commits [owner/repo] Shows the commits for the current repository
Flag Description
-a, --all List every single commit

Every commits command that accepts owner/repo will fall back to your configured default (set via octotrack repo default) for whichever part - owner, repo, or both - you omit.

Configuration

OctoTrack stores its config in an OS-appropriate location via platformdirs. Run octotrack config path to see the exact file on your system.

Your GitHub token is never stored in the config file — it lives exclusively in a local .env file managed by octotrack config set-token, and is loaded as an environment variable at runtime.

License

MIT — see LICENSE for details.

Contributing

See Contributing.md for details.

Metadata

Release files for OctoTrack 0.3.0

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

Source distribution (sdist)

Source distribution for OctoTrack 0.3.0
File Size Uploaded Provenance Actions
octotrack-0.3.0.tar.gz 12.8 kB With provenance Details for octotrack-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for OctoTrack 0.3.0
File Interpreter ABI Platform Actions
octotrack-0.3.0-py3-none-any.whl Python 3 none any Details for octotrack-0.3.0-py3-none-any.whl

Total release size: 33.9 kB

Release files / octotrack-0.3.0.tar.gz

Download URL octotrack-0.3.0.tar.gz
Size 12.8 kB
Tags Source
SHA-256 checksum
How to use checksums
e8519c1c81f5cf731bb34b933049dac586d7d1db6dc70c6aab3d421663c569a3
BLAKE2b-256 checksum
How to use checksums
bed758745a2f67f6842bd2eeafc371fe64ec65f71ed1246378641f8979d2a093
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 Aug 15, 2026.

Transparency log

Release files / octotrack-0.3.0-py3-none-any.whl

Download URL octotrack-0.3.0-py3-none-any.whl
Size 21.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c37f255a30adeb747280e5085994d8e1d2b74d14714f3a9a29a536fe48fdf9bf
BLAKE2b-256 checksum
How to use checksums
e79690d8c496c3854a1fed1f6deb4cbc504e5478558aaf51923b9452fc9263f2
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 Aug 15, 2026.

Transparency log

Security for OctoTrack 0.3.0

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for octotrack-0.3.0.tar.gz

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 Aug 15, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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