Run your local Jupyter notebooks on Kaggle GPUs, across your research team's own Kaggle accounts,
from the terminal, a local web panel, or an AI agent.
Install · Quick start · Web panel · AI agents · Changelog
pipx install kaggle-fleet
kfleet account login --label "Me"
kfleet run push train.ipynb --watch # runs on a Kaggle GPU, downloads outputs when done
Why KaggleFleet?
Kaggle gives every account a free weekly GPU quota. A research group with several co-authors has several quotas, but using them means logging in and out of Kaggle, copying notebooks around, and tracking who ran what. KaggleFleet does that part for you:
- Keep your notebooks local. Edit in your own editor and git repo; KaggleFleet stages and pushes them as Kaggle kernels.
- One machine, many co-author accounts. Each Kaggle account lives in its own credential sandbox, so runs can go to different accounts at the same time without leaking into each other.
- Push, watch, collect. Pick an account and accelerator (T4, P100, TPU or CPU), push, follow status and logs, and download the outputs when the run finishes.
- A web panel for the team. Accounts, approximate GPU hours used per account this week, live job status, logs, and one-click launches.
- Built for AI agents. Every CLI command has
--jsonoutput and meaningful exit codes, andAGENTS.mddocuments the workflow for coding agents. - No runtime dependencies besides the official
kaggleCLI. The tool itself is pure Python standard library.
| Accounts | Jobs |
|---|---|
Contents
- Install
- Quick start
- Adding co-author accounts
- Running notebooks
- Queue and background worker
- Parameters, sweeps, long runs, datasets and pipelines
- Notifications
- Reports
- Sign-in watchdog and quota digest
- Web panel
- Using KaggleFleet from AI agents and scripts
- Configuration
- How credential isolation works
- CLI reference
- Limitations
- Development
- Contributing and releases
Install
You need Python 3.9 or newer on Linux or macOS. On Windows, use WSL.
pipx install kaggle-fleet # recommended: isolated, puts `kfleet` on your PATH
# or
pip install kaggle-fleet
To try the latest unreleased code: pipx install git+https://github.com/towhaEL/KaggleFleet.git.
This installs two commands, kfleet and its longer alias kaggle-fleet, and pulls in the official kaggle CLI.
Browser sign-in (kfleet account login) requires Kaggle CLI 2.x. API-key accounts work with 1.7 and newer.
Check your setup:
kfleet doctor
Quick start
cd my-research-project/ # a folder with your notebooks, or a ./notebooks subfolder
kfleet account login --label "Me" # sign in with your Kaggle account in the browser
kfleet notebook list # see what KaggleFleet found
kfleet run push train.ipynb --watch
To try it on something small first, push examples/hello_gpu.ipynb, which reports the GPU it got.
With --watch, KaggleFleet polls the run until it finishes and then downloads the kernel's
output files to ./outputs/<kernel-slug>/. Without it, the push returns right away and you can
check on the run later:
kfleet run list
kfleet run status # latest job; or pass a job id / kernel slug
kfleet run logs
kfleet run download
Or open the web panel:
kfleet serve --open # http://127.0.0.1:8080
Adding co-author accounts
Each co-author adds their own account once, on the machine that runs KaggleFleet.
Option A: browser sign-in (recommended)
kfleet account login --label "Co-author B"
This opens Kaggle's sign-in page in your normal browser. Whichever Kaggle account is signed in
there is the account that gets added, so switch the browser to the co-author's account first,
or use --no-browser to get a link you can open in a private window or on another device and
paste the verification code back.
The login runs inside a throwaway sandbox. Your own ~/.kaggle login is never read or changed,
and adding an account that is already configured and valid is refused. If an account has become
invalid (for example its token expired or was revoked), sign in again as that account: its
credentials are replaced in place and it keeps its ID and job history.
In the web panel, Sign in with browser offers the same flow as a link plus a code field, which works well when a co-author signs in from their own laptop.
Option B: API key (kaggle.json)
The co-author creates a token at kaggle.com → Settings → API → Create New Token and sends you
the kaggle.json file, or its username and key:
kfleet account add --username alice --key 0123456789abcdef... --label "Alice"
Option C: import what is already on this machine
kfleet account import # picks up ~/.kaggle/kaggle.json and ~/.kaggle/credentials.json
Managing accounts
kfleet account list
kfleet account test alice # checks that the credentials authenticate as *alice*, not just as someone
kfleet account switch alice # change the default account for pushes
kfleet account remove alice # deletes the local sandbox only; the Kaggle account is untouched
Moving accounts to another machine
kfleet account export -f csv -o team.csv # inventory and this week's usage, no secrets
kfleet account export --include-secrets -o fleet.enc # encrypted bundle WITH credentials (asks for a passphrase)
kfleet account restore fleet.enc --test # on the new machine; --overwrite replaces existing ones
The bundle is encrypted with openssl (AES-256-CBC, key from PBKDF2-SHA256 with 600,000 rounds) and
authenticated with HMAC-SHA256, so a wrong passphrase or a changed file is refused before anything is
decrypted. It is written with mode 0600, and the passphrase reaches openssl through a pipe, never the
command line. For scripts, use --passphrase-file FILE or KAGGLE_FLEET_BUNDLE_PASSPHRASE. Restored
accounts are untested until kfleet account test (or --test) passes. OAuth tokens keep refreshing
on the old machine, so an old bundle can go stale: sign in again if a restored account fails its test.
Exporting credentials is CLI-only; the web panel and the REST API never offer it.
Running notebooks
kfleet run push 02_train.ipynb \
--account bob \
--accelerator NvidiaTeslaP100 \
--dataset bob/preprocessed-data \
--kernel-source alice/nb-00-data-prep \
--max-runtime 7200 \
--watch
| Option | Meaning |
|---|---|
--account, -a |
Account id or username, or auto to pick the valid account with a free session slot and the most estimated quota left. Defaults to the active account. |
--accelerator |
NvidiaTeslaT4 (default), NvidiaTeslaP100, TpuV5E8 or None |
--no-gpu |
Run on CPU |
--no-internet |
Disable internet access inside the kernel |
--dataset, --competition, --kernel-source, --model |
Attach Kaggle inputs. Each flag can be repeated. |
--title, --slug |
Override the kernel title and slug, which are derived from the notebook by default |
--max-runtime SECONDS |
Ask Kaggle to stop the kernel after this long. The default is Kaggle's own session limit. |
--watch, -w |
Wait for completion, then download outputs (turn this off with --no-download). Without --watch, a running kfleet worker or kfleet serve downloads them. |
--timeout SECONDS |
How long --watch waits. The kernel itself is not affected. |
--strip-outputs |
Upload a copy of the notebook without saved cell outputs. Your file is not changed. |
--force |
Push even when preflight checks fail (see below) |
--on-complete CMD, --on-error CMD |
Shell command to run when the watched job completes, or fails or is cancelled. Gets the event as JSON on stdin and KFLEET_* environment variables. |
Kernel naming. The kernel title comes from the notebook's first # heading. The slug comes from the
file name: 02_train.ipynb becomes <username>/nb-02-train. File names that start with a digit get
a prefix, nb- by default; set KAGGLE_FLEET_SLUG_PREFIX=myproject to use your project's name instead.
Kernels are always created as private.
Re-running a notebook pushes a new version of the same kernel. Every push starts a new run on Kaggle and uses GPU quota.
Stopping a run. kfleet run stop <job> (or the stop button in the web panel) ends a queued or
running run. Kaggle offers no public way to cancel a run from outside kaggle.com, so this deletes the
kernel on Kaggle, together with its earlier versions and their outputs. Before deleting, it checks that
the run is still going (a run that has finished is left alone) and downloads whatever output Kaggle still
has for the kernel into <outputs>/<slug>/before-stop-<job>/ (--no-save-outputs skips this). It asks
you to type the kernel slug; pass --yes in scripts. The job becomes CANCELLED, and the pending later
chunks of a --max-chains run are cancelled too.
Preflight checks. Before pushing, KaggleFleet checks for problems that would waste a push and stops
without contacting Kaggle if it finds one. It blocks the push when the notebook has no non-empty code
cells, the account's last sign-in test failed, the account already has 2 active GPU/TPU runs, or its
estimated weekly quota is used up. It also warns when fewer than 2 quota hours are left or the notebook
carries more than 1 MB of saved outputs. --force pushes anyway. Usage is estimated from KaggleFleet's
own job history, so if a run that already finished still shows as active, refresh it with
kfleet run status <job>.
Queue and background worker
kfleet worker keeps an eye on your runs so you don't have to keep a terminal watching them. Every
60 seconds it polls each run that is queued or running on Kaggle, downloads the outputs of runs that
finish (unless they were pushed with --no-download), sends notifications, and pushes queued runs whose
turn has come. Because it reads the job history on startup, it picks up runs pushed by earlier commands or
by a previous worker that was stopped.
kfleet worker # foreground; run it in tmux or as a systemd --user / launchd service
kfleet worker --once # a single pass, for cron
kfleet worker status # is one running?
Only one worker runs per state directory. kfleet serve runs the same loop inside the server
(--no-worker turns that off) unless a separate kfleet worker is already running.
kfleet doctor and GET /api/status report whether a worker is alive.
The queue holds runs to start later. Queuing uses no quota; the worker pushes each item when its dependencies have finished and its account has a free session (Kaggle allows 2 per account):
kfleet queue add 00_data_prep.ipynb --account alice
kfleet queue add 02_train.ipynb --after q_20261130_101500_nb-00-data-p_3f2a --attach-outputs
kfleet queue add 03_train.ipynb --account auto --priority 5
kfleet queue list # --all includes finished items
kfleet queue cancel <item> # pending items only
kfleet queue clear # drop finished items (--pending also cancels pending ones)
queue add takes the same options as run push, plus:
| Option | Meaning |
|---|---|
--after ID |
Start only after this queue item or job (id or kernel slug) is COMPLETE or DOWNLOADED. Repeatable. |
--on-failure stop|continue |
If a dependency fails, skip this item (stop, the default) or run it anyway |
--priority N |
Higher numbers are pushed first (default 0) |
--attach-outputs |
Attach the dependencies' outputs as kernel sources. The item then runs on the same account as its dependencies, because private kernels can't be read from another account. |
--bridge |
Like --attach-outputs, but the item may run on another account. Outputs from other accounts are downloaded and uploaded as a private dataset of the account that runs it. With --account auto, the dependencies' account is still preferred when it has a free session. |
The queue is careful with quota. An account never gets more than 2 active runs from it. If Kaggle
turns a push down for a temporary reason (session limit, rate limit), the item goes back to waiting and
is retried with growing delays, from 2 minutes up to 1 hour, at most 8 times. If the estimated weekly
quota is used up, the item waits for the reset. If a push fails in a way that leaves it unclear whether
Kaggle started the run (a timeout, or the worker being killed mid-push), the item is marked FAILED and
is never pushed again automatically. Check kaggle.com before queueing it again.
Parameters, sweeps, long runs, datasets and pipelines
These features all go through the queue, so they need a running kfleet worker or kfleet serve.
Parameters. --param KEY=VALUE (repeatable, on run push and queue add) sets a variable in the
uploaded copy of the notebook. Your file is not changed. Values are read as JSON when they can be
(1e-4, true, [64,64]) and as strings otherwise. Like papermill, the assignments go in a new cell
right after the cell tagged parameters, so they override the defaults there. Without such a cell, they
go at the top. The values are also available as the dict FLEET_PARAMS.
Sweeps. run sweep queues one run per combination of grid values. Each run gets its own kernel slug,
so runs don't overwrite each other on Kaggle. With --account auto, they spread over every account with
a free session.
kfleet run sweep 02_train.ipynb --grid lr=1e-4,3e-4 --grid seed=1,2 --account auto --dry-run
kfleet run sweep 02_train.ipynb --grid lr=1e-4,3e-4 --grid seed=1,2 --account auto --param epochs=30
Each combination is a separate run that uses quota, so grids larger than --max-runs (default 16) are
refused.
Runs longer than 12 hours. --max-chains N splits a run into up to N chunks on the same account and
kernel slug. When chunk k completes, the worker pushes chunk k+1 with chunk k's output attached, so
checkpoints saved to /kaggle/working/ show up under /kaggle/input/<slug>/. The notebook receives
FLEET_CHAIN_INDEX, FLEET_MAX_CHAINS and FLEET_RESUME_DIR (None in chunk 1):
import os, time
start = time.time()
ckpt = os.path.join(FLEET_RESUME_DIR, "ckpt.pt") if FLEET_RESUME_DIR else None
# ... load ckpt if present, then train; stop well before --max-runtime and save to /kaggle/working ...
if finished:
open("/kaggle/working/DONE", "w").close() # with --stop-file DONE, later chunks are skipped
kfleet queue add 02_train.ipynb --account bob --max-chains 3 --max-runtime 39600 --stop-file DONE
A chunk that fails stops the chain. A kernel stopped by Kaggle's time limit may not keep its outputs, so
make the notebook stop on its own and use --max-runtime only as a safety net. Anything queued with
--after the chained run waits for its last chunk. run push --max-chains pushes chunk 1 right away and
queues the rest.
Local data. kfleet dataset sync ./data uploads a folder as a private dataset
(<account>/kfleet-data, or --slug), or adds a new version if it exists, then waits until Kaggle has
processed it. The folder is not modified, sub-folders are uploaded as zip archives (--dir-mode), and
hidden files are skipped. run push --local-data ./data does the same for the run's account and attaches
the dataset. kfleet dataset status OWNER/SLUG reports whether it is ready.
Pipelines. Describe a multi-stage workflow in fleet.json (or fleet.toml on Python 3.11+). Notebook
paths are relative to the file:
{
"name": "paper-v1",
"defaults": {"account": "auto"},
"stages": [
{"id": "prep", "notebook": "00_data_prep.ipynb", "accelerator": "None"},
{"id": "features", "notebook": "01_extract_features.ipynb", "after": "prep"},
{"id": "train", "notebook": "02_train.ipynb", "after": "features",
"params": {"epochs": 30}, "max_chains": 2, "max_runtime": 39600, "stop_file": "DONE"},
{"id": "report", "notebook": "05_results_report.ipynb", "after": "train", "accelerator": "None"}
]
}
kfleet pipeline validate fleet.json # checks every stage, dependency and notebook; queues nothing
kfleet pipeline run fleet.json # queues every stage at once
kfleet pipeline status # latest run, stage by stage (or pass an id or name)
kfleet pipeline list
kfleet pipeline cancel <id> # cancels stages that have not started
Stage keys: id, notebook, after, account, accelerator, internet, datasets, competitions,
kernel_sources, models, params, max_runtime (seconds), max_chains, stop_file,
attach_outputs, bridge, on_failure, priority, slug, title, strip_outputs, auto_download
and force. Any of them except id, notebook, after, slug and title can go in defaults.
A stage with after attaches its dependencies' outputs unless "attach_outputs": false. With an
automatic account, it runs on the dependencies' account. When a stage names its own account, outputs
from other accounts come through a dataset bridge ("bridge": false turns that off). The worker sends a
PIPELINE_DONE notification when every stage has finished. A complete example is in
examples/fleet.json.
Notifications
KaggleFleet can tell you when a run finishes or fails, through Telegram, a webhook (Slack, Discord or anything that accepts JSON) or a local shell command:
kfleet notify telegram --chat-id 123456789 # asks for the bot token without echoing it
kfleet notify webhook https://hooks.slack.com/services/...
kfleet notify command 'notify-send "KaggleFleet" "$KFLEET_MESSAGE"'
kfleet notify events COMPLETE ERROR CANCELLED DOWNLOADED
kfleet notify test
kfleet notify status # secrets are never shown
Settings are stored in ~/.kaggle_fleet/notifications.json (mode 0600). For Telegram you can instead
set KAGGLE_FLEET_TELEGRAM_BOT_TOKEN and KAGGLE_FLEET_TELEGRAM_CHAT_ID. Credentials that appear in
error text are masked before a message is sent.
Notifications are sent by the kfleet process that notices a change: kfleet worker, kfleet serve,
run push --watch or run status. Run a worker to get them without watching. The worker also sends
QUEUE_EMPTY once every queued run has been started and has finished, an ERROR when a queued run
can't be started, and PIPELINE_DONE when every stage of a pipeline has finished. TOKEN_INVALID and
QUOTA_DIGEST come from the watchdog. RUN_REPORT (off by
default; turn it on with kfleet notify events ... RUN_REPORT) sends a short run summary, with
parameters and metrics, after the worker downloads a run's outputs.
Usage reports
kfleet report usage # Markdown, current quota week
kfleet report usage --since 30d -f html -o usage.html
kfleet report usage --since all -f csv -o usage.csv
For each account the report shows GPU and TPU hours used and GPU hours left this quota week, active runs,
jobs by outcome, average run time, average queue wait and overhead, and the size of downloaded outputs.
--since (week, all, 7d or an ISO date) sets the period for the job counts. Quota hours always
cover the current quota week.
Run reports and comparisons
kfleet report run nb-02-train # Markdown summary of one run (latest job if omitted)
kfleet report run nb-02-train -f html -o run.html # one self-contained file, plots embedded
kfleet report run nb-02-train --fetch-logs --send # use the full Kaggle log; also send a text summary
kfleet report compare nb-train-lr-1e-4 nb-train-lr-3e-4 -f html -o sweep.html
A run report reads the run's downloaded outputs (kfleet run download first) and shows its parameters,
metrics from JSON files named like metrics.json, results.json or *_scores.json (nested keys are
flattened; a list of numbers shows its last value), a summary of each CSV (rows, and last/min/max of
numeric columns), every plot (.png, .jpg, .svg, ...), the file list, the last progress line found in
the logs (epoch 3/10 loss=0.41) and the log tail. The HTML version embeds the plots as data URIs, so it
opens anywhere offline. compare lines up the parameters (differing ones in bold), metrics and the final
CSV values of two or more runs, which suits a sweep.
Sign-in watchdog and quota digest
While kfleet worker or kfleet serve runs, two checks run in the background:
- Sign-in watchdog. Every 6 hours each account is checked with one read-only call
(
kaggle kernels list --mine --page-size 1). If Kaggle rejects its credentials (for example an expired OAuth token), the account is markedinvalid, so--account autoand the queue stop using it, and aTOKEN_INVALIDnotification is sent once, saying how many queued runs are waiting for it. Network errors and rate limits never change an account's status. A later successful check marks it valid again. - Quota digest. 24 hours before the weekly quota reset, one
QUOTA_DIGESTnotification lists each account's estimated unused GPU hours, so the team can use them before they expire.
kfleet watchdog # settings, last check per account, next digest
kfleet watchdog config --auth-every 12 --digest-before 36 # hours; 0 turns a check off
kfleet watchdog check [--account bob] # check sign-ins now
kfleet watchdog digest [--send] # show (or send) the digest now
kfleet worker --no-watchdog # run the worker without either check
Settings and the last results are stored in ~/.kaggle_fleet/watchdog.json (mode 0600, no secrets).
Web panel
kfleet serve # http://127.0.0.1:8080
kfleet serve --port 9000 --open
The panel has five views:
- Accounts: add, test, switch and remove accounts, with each account's estimated GPU hours this quota week and a countdown to the weekly reset.
- Launch notebook: pick a notebook, an account and hardware, then push.
- Jobs: status for every run, with a progress bar parsed from the latest log line (
epoch 3/10 loss=0.41, tqdm bars). Logs streams new output live while a run is active (the server checks Kaggle every 15 s and sends only new lines) and shows the current epoch and metrics. The folder button browses downloaded outputs: text and JSON files, CSV tables and plots are previewed in place, and Run report opens the HTML run report. - Queue: worker and watchdog status, queued runs (raise or lower the priority of pending runs, or cancel them), and pipelines with each stage's state. Run pipeline validates a
fleet.jsondefinition, shows how many runs it starts, then queues it. The Jobs tab has a stop button for queued and running runs (it deletes the kernel on Kaggle; see Stopping a run). - Settings: notification channels (Telegram, webhook, shell command), which events notify, and a test message; watchdog intervals, a sign-in check and the quota digest (preview or send); uploading a local folder as a private dataset; and the usage report.
The launch form runs a notebook now, adds it to the queue (with dependencies, on-failure, priority and attached or bridged outputs) or plans a sweep (it shows the run count before queueing anything). It also takes parameters, extra sources (competitions, kernel outputs, models), chained runs longer than 12 hours, and local data folders to upload. Account cards have an Edit button for the label, quota note and notes.
Bot tokens and webhook URLs typed into Settings are stored in notifications.json (mode 0600) and are never sent back to the browser. The shell-command channel can only be changed from a panel bound to 127.0.0.1 (or with kfleet notify command), since it runs commands on the server.
The artifact browser only serves files inside the panel's outputs folder (--outputs-dir), never follows
symbolic links, and shows images as data URIs, so files a notebook wrote cannot run scripts in the panel.
The panel has no login. It listens on 127.0.0.1 and rejects requests from other websites
(it checks the Origin and Host headers and requires JSON request bodies). To use it from another
machine, prefer an SSH tunnel over exposing it:
ssh -L 8080:127.0.0.1:8080 your-gpu-box # then open http://127.0.0.1:8080 locally
The panel is backed by a small JSON REST API, documented in docs/rest-api.md.
Using KaggleFleet from AI agents and scripts
Add --json to any command, before or after the subcommand, to get a single JSON document on stdout.
Failures print {"error": "..."} and exit with a non-zero code. Account secrets are never printed.
$ kfleet run push 02_train.ipynb --account bob --json
{
"success": true,
"job": {
"id": "job_20261121_101500_nb-02-train_3f2a",
"kernel_id": "bob/nb-02-train",
"status": "RUNNING",
...
}
}
$ kfleet run status job_20261121_101500_nb-02-train_3f2a --json
$ kfleet run logs job_20261121_101500_nb-02-train_3f2a --json
$ kfleet run download job_20261121_101500_nb-02-train_3f2a --json # lists the downloaded files
MCP server
kfleet mcp runs a Model Context Protocol server on stdio, so agents
can call KaggleFleet as tools (list_accounts, push_notebook, queue_job, run_status, run_logs,
download_outputs, stop_run, run_report, compare_runs, usage_report, and more). Each tool runs the
matching --json command, so results have the same shapes and never contain credentials. Signing in,
changing accounts, exporting credentials and notification settings are not exposed. For example, with
Claude Code:
claude mcp add kaggle-fleet -- kfleet mcp --notebooks-dir ./notebooks
Or in a client's JSON config: {"mcpServers": {"kaggle-fleet": {"command": "kfleet", "args": ["mcp"]}}}.
AGENTS.md is a guide written for coding agents such as Claude Code or Codex:
the workflow, the JSON shapes, how to pick an account with spare GPU quota, and what not to do.
Copy it, or link to it, from your research repo's own AGENTS.md / CLAUDE.md.
Configuration
| Environment variable | Default | Purpose |
|---|---|---|
KAGGLE_FLEET_DIR |
~/.kaggle_fleet |
State: accounts, credential sandboxes, job history, staging |
KAGGLE_FLEET_NOTEBOOKS_DIR |
./notebooks if it exists, else . |
Where notebooks are discovered |
KAGGLE_FLEET_OUTPUTS_DIR |
./outputs |
Where kernel outputs are downloaded |
KAGGLE_FLEET_KAGGLE_BIN |
auto-detected | Path to the kaggle executable |
KAGGLE_FLEET_SLUG_PREFIX |
nb |
Prefix for slugs derived from file names that start with a digit |
KAGGLE_FLEET_TELEGRAM_BOT_TOKEN, KAGGLE_FLEET_TELEGRAM_CHAT_ID |
unset | Telegram notifications without a config file |
KAGGLE_FLEET_BUNDLE_PASSPHRASE |
unset | Passphrase for account export --include-secrets / account restore without a prompt |
KAGGLE_FLEET_OPENSSL_BIN |
openssl on PATH |
The openssl used to encrypt account bundles |
KAGGLE_FLEET_QUOTA_RESET |
sat 00:00 |
Weekly quota reset as <weekday> HH:MM in UTC; change it if Kaggle's quota page shows a different reset |
--notebooks-dir and --outputs-dir override the matching variables for a single command.
How credential isolation works
Every account gets a private directory, ~/.kaggle_fleet/envs/<account-id>/ (mode 0700, files 0600).
Each kaggle command for that account runs with:
KAGGLE_CONFIG_DIRpointing at that directory, andHOMEset to a per-account home whose.kagglelinks to that directory. The Kaggle SDK reads OAuth tokens from the hard-coded path~/.kaggle/credentials.jsonand ignoresKAGGLE_CONFIG_DIR, so without a separateHOME, every OAuth account would silently run as whoever is logged in to your real~/.kaggle.- Any
KAGGLE_KEYorKAGGLE_API_TOKENfrom your shell removed, because those take priority over all other credentials.
When the Kaggle CLI refreshes an OAuth token, the new token is copied back into accounts.json.
kfleet account test checks the identity Kaggle reports (kaggle config view), so a credential
leaking from another account would be caught instead of passing silently.
Credentials are stored unencrypted on disk and protected only by file permissions, the same way
the Kaggle CLI stores them. Run KaggleFleet on a machine you trust. See SECURITY.md.
CLI reference
kfleet [--json] [--notebooks-dir DIR] [--outputs-dir DIR] <command>
account list | add | add-oauth | login | switch | test | remove | import
| export [-f json|csv] [-o FILE] [--include-secrets] | restore <file> [--overwrite] [--test]
notebook list | inspect <notebook>
run push <notebook> [--param K=V] [--max-chains N] [--local-data DIR] | sweep <notebook> --grid K=V1,V2
| list | status [job] | logs [job] | download [job] | stop <job> [--yes]
queue add <notebook> [--after ID] [--on-failure] [--priority] [--attach-outputs|--bridge]
| list | cancel <item> | priority <item> <N> | clear
dataset sync <dir> [--slug OWNER/SLUG] | status <OWNER/SLUG>
pipeline validate <file> | run <file> | status [id] | list | cancel <id>
worker [--interval SECONDS] [--once] [--no-download] [--no-dispatch] [--no-watchdog] | status
watchdog status | config [--auth-every H] [--digest-before H] | check [--account A] | digest [--send]
serve [--host] [--port] [--open] [--allow-host HOST] [--no-worker]
doctor
mcp (MCP server on stdio for AI agents)
notify status | telegram | webhook <url> | command <cmd> | events <EVENT...> | remove <channel> | test
report usage [--since] [--format md|html|csv|json] [-o FILE]
| run [job] [--format md|html|json] [-o FILE] [--fetch-logs] [--send]
| compare <job> <job>... [--format md|html|json] [-o FILE]
Run kfleet <command> <subcommand> --help for every option.
python -m kaggle_fleet works the same way as kfleet.
Limitations
- The GPU hours shown are estimates. They count only runs launched through KaggleFleet, and a run's end time is when KaggleFleet noticed it finished. Kaggle's own quota page is authoritative.
- Status is polled. Status comes from
kaggle kernels status, so runs are refreshed only while akfleet workerorkfleet serveis running, while you watch them (--watch), or when you ask (run status). - Stopping a run deletes its kernel. Kaggle has no public cancel call, so
kfleet run stopdeletes the kernel (and its earlier versions and outputs) on Kaggle. To keep the kernel, stop the run on kaggle.com instead. - Linux and macOS only (symlink-based sandboxes). On Windows, use WSL.
Development
git clone https://github.com/towhaEL/KaggleFleet.git
cd KaggleFleet
python -m venv .venv && source .venv/bin/activate
pip install -e ".[dev]"
pytest # or: python -m unittest discover -s tests -t .
ruff check src tests
The test suite never contacts Kaggle: the kaggle CLI is mocked or replaced with a fake script.
See CONTRIBUTING.md.
Contributing and releases
Bug reports, feature ideas and pull requests are welcome. Please read
CONTRIBUTING.md first, and report
security issues privately as described in SECURITY.md.
Releases are listed on the GitHub releases page and
PyPI. Maintainers: see
docs/RELEASING.md.
License
Metadata
Release files for kaggle-fleet 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| kaggle_fleet-0.4.0.tar.gz | 249.3 kB | With provenance | Details for kaggle_fleet-0.4.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| kaggle_fleet-0.4.0-py3-none-any.whl | Python 3 | none | any | Details for kaggle_fleet-0.4.0-py3-none-any.whl |
Total release size: 434.2 kB
Release files / kaggle_fleet-0.4.0.tar.gz
| Download URL | kaggle_fleet-0.4.0.tar.gz |
|---|---|
| Size | 249.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
28633b1a49c34dff5223b0a8058a305db5984f53dbb2b02cb991b955032c0641
|
|
BLAKE2b-256 checksum How to use checksums |
463f5104cde81eb2f88eb5af0052e4735f0714eefb640b07cf70bb7967fb02a2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 30, 2026.
Transparency logRelease files / kaggle_fleet-0.4.0-py3-none-any.whl
| Download URL | kaggle_fleet-0.4.0-py3-none-any.whl |
|---|---|
| Size | 184.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8d6f354ffe52371919807fb6756d18117bcfa0a79ab0e77df8c98c63b9ae78e5
|
|
BLAKE2b-256 checksum How to use checksums |
744b6a938afea88d0244319e918a6c071706484929564f5a9aa3843f2686d00b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 30, 2026.
Transparency logSecurity for kaggle-fleet 0.4.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.
Attestation for kaggle_fleet-0.4.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 Nov 30, 2026.
Transparency logA 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.