Skip to main content

Kagitch — switch Kaggle accounts and keep your flow

kagitch add · kagitch switch · kagitch check


Install

pip install kagitch
kagitch init        # interactive setup wizard (one time)

Requires pip install kaggle and Python 3.8+.

Windows / PowerShell: kagitch init detects $PROFILE for both PowerShell 5.1 and 7+. Run kagitch init -r to print a . $PROFILE reload command.

Config path: %APPDATA%\kagitch\accounts.json on Windows, ~/.config/kagitch/accounts.json on Linux/macOS.


Quick start

kagitch add work      # OAuth login — opens browser
kagitch add personal  # or: kagitch add personal ~/kaggle.json (legacy key)
kagitch 2             # switch to account 2
kagitch check         # check quota for all accounts
kaggle quota          # kaggle CLI follows the switched account
kaggle push kernels -p . # push current folder as a Kaggle kernel
$ kagitch

╭─────────────────── Dashboard ───────────────────╮
│   Active  #1 account1                           │
│                                                 │
│   Run kagitch switch to choose another account. │
╰─────────────────────────────────────────────────╯
┏━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━┓
┃   # ┃ Name         ┃  Auth    ┃ Path                         ┃ Status   ┃
┡━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━┩
│   1 │ account1     │   OAuth  │  ~/.kaggle-account1          │ ● active │
│   2 │ account2     │   OAuth  │  ~/.kaggle-account2          │          │
│   3 │ account3     │   OAuth  │  ~/.kaggle-account3          │          │
└─────┴──────────────┴──────────┴──────────────────────────────┴──────────┘

Commands

Command Aliases What it does
kagitch Show dashboard + active account
kagitch list ls List accounts
kagitch <N|name> Switch to account
kagitch switch [N|name] Prompt or switch to account
kagitch current cur, . Show active account
kagitch add <name> login Add account via OAuth
kagitch add <name> <file> Add account via legacy API key
kagitch remove <N|name> rm Remove an account (deletes credentials)
kagitch rename <N> <name> Rename an account
kagitch patch [path] Patch kernel-metadata.json id
kagitch kernel init Create kernel-metadata.json interactively
kagitch kernel logs [kernel] Stream kernel logs (interactive browse, follow)
kagitch kernel output [owner/slug] Download kernel outputs (interactive tree picker, or -a for all)
kagitch check Check quota & auth for all accounts
kagitch doctor System diagnostics
kagitch update Pull latest version from git
kagitch init Interactive setup wizard (7 steps)
kagitch init -r Print shell reload command
kagitch completions <sh> Print shell completion script
kagitch help -h, --help Show help
kagitch version -v, --version Show version

Kernel commands

kagitch kernel init                      # create kernel-metadata.json interactively
kagitch kernel logs <owner/slug>         # stream kernel logs (no ref = interactive browse)
kagitch kernel output <owner/slug>       # download outputs: pick files on the tree
kagitch kernel output <owner/slug> -a    # download every output file
kagitch kernel output <owner/slug> -p out -f   # target dir + overwrite existing

kagitch kernel output shows the kernel's output structure as an interactive tree with per-file sizes, lets you pick individual files or whole directories (space toggles, a selects/deselects all, arrow keys navigate), streams downloads with a live progress bar, and finishes with a summary card. The kernel picker supports type-to-filter and color-coded statuses. Requires kaggle>=2.2.4 (bundles kagglesdk>=0.1.33).


How it works

Each account lives in ~/.kaggle-<name>/.

The shell wrapper sets KAGGLE_CONFIG_DIR when you switch.

Config stored at:

  • Windows: %APPDATA%\kagitch\accounts.json
  • Linux/macOS: ~/.config/kagitch/accounts.json

Metadata

Release files for kagitch 1.5.3

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

Source distribution (sdist)

Source distribution for kagitch 1.5.3
File Size Uploaded Provenance Actions
kagitch-1.5.3.tar.gz 129.7 kB Without provenance Details for kagitch-1.5.3.tar.gz

Built distribution (wheel)

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

Total release size: 197.1 kB

Release files / kagitch-1.5.3.tar.gz

Download URL kagitch-1.5.3.tar.gz
Size 129.7 kB
Tags Source
SHA-256 checksum
How to use checksums
1c0c9a21939c385e656f41d125e29d44c3dcea0686506e31447bd91349eef350
BLAKE2b-256 checksum
How to use checksums
bc29df9271069f3258980c5df215f1cba48d19ea86ee5a4afb9bbde3e5ba4172
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / kagitch-1.5.3-py3-none-any.whl

Download URL kagitch-1.5.3-py3-none-any.whl
Size 67.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1ec4444a0586996eb2911c97e35832606f6ac6a4f944cc7116e0df921e90ecea
BLAKE2b-256 checksum
How to use checksums
1874f3a25c8f1d6ca9e33a6d7635ce943192270a03bd6f00810c305ed3c3a3b1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Security for kagitch 1.5.3

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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