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

Download files

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

Source Distribution

kagitch-1.5.2.tar.gz (128.5 kB view details)

Uploaded Source

Built Distribution

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

kagitch-1.5.2-py3-none-any.whl (67.1 kB view details)

Uploaded Python 3

File details

Details for the file kagitch-1.5.2.tar.gz.

File metadata

  • Download URL: kagitch-1.5.2.tar.gz
  • Upload date:
  • Size: 128.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for kagitch-1.5.2.tar.gz
Algorithm Hash digest
SHA256 71113167833d72e568d765ec57babf56740e00f7b0040c5eed210f35e8a69477
MD5 77cc57f3279ffbf76ae1e1763b7c0581
BLAKE2b-256 7e6f264d08fd79c5e795a1b084bfd833721e74c9c7f83efdf429013e71a9591c

See more details on using hashes here.

File details

Details for the file kagitch-1.5.2-py3-none-any.whl.

File metadata

  • Download URL: kagitch-1.5.2-py3-none-any.whl
  • Upload date:
  • Size: 67.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for kagitch-1.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0b67e15833f4a61825efc60e064a7456e7c2545cf81ba945239deb68df2cafed
MD5 3aa7d9a94d42b594b9cc4b71e0eaeb72
BLAKE2b-256 560b4e742fefa9b80d87219f4d66b03594544026b9d890ea5d4dee2a624e5759

See more details on using hashes here.

Release history Release notifications | RSS feed

1.5.3

2 files

This release

1.5.2 This release

2 files

1.5.1

2 files

1.4.1

2 files

1.4.0

2 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