Skip to main content

caudex

Run your Jupyter notebooks on Kaggle's free GPUs, from your terminal.

Write a notebook on your laptop, send it to Kaggle, watch it run, get your files back. No browser tabs, no dropdown menus, no refreshing a page to see if it finished.

It uses your own Kaggle account and your own free weekly quota. Your notebooks, credentials and outputs go straight to Kaggle from your machine — never through anyone else's servers — and every file stays on your machine.


Install

pip install caudex

To update later:

pip install --upgrade caudex

You need Python 3.11 or newer and a free Kaggle account.

caudex --version tells you what you have. On Windows, close any running caudex first — an open shell or editor panel holds caudex.exe and the upgrade fails on a file lock rather than a permissions problem.

Works on Windows, Linux, and macOS on Apple Silicon (M1 and later). Intel Macs are not supported — pip will say it cannot find a matching distribution rather than installing something that does not run.


Step 1 — connect your Kaggle account

You do this once.

caudex auth --setup

It asks for a Kaggle API token. To get one:

  1. Go to kaggle.com, click your profile picture → Settings → API Tokens
  2. Click Generate New Token and copy it (it starts KGAT_)
  3. Paste it into the prompt — it stays hidden while you paste, and no username is needed

caudex checks the token with Kaggle before saying it worked. A legacy key still works too: Create Legacy API Key downloads a kaggle.json; paste its key, then its username.

Check it worked:

caudex whoami

Step 2 — make a notebook project

caudex init train.ipynb

This creates a folder with a starter notebook inside it, and tells you where it is. Open that notebook in Jupyter, VS Code, or whatever you normally use, and write your code.

One thing to know: anything you want to keep must be saved to /kaggle/working/.

model.save("/kaggle/working/model.keras")
df.to_csv("/kaggle/working/scores.csv", index=False)

That folder is the only thing that comes back to you. Everything else on the Kaggle machine disappears when the run ends.


Step 3 — run it

caudex execute --gpu

That one command does the whole job: uploads your notebook, starts it on Kaggle, streams the output to your screen as it happens, waits for it to finish, and downloads your files.

Leave off --gpu and it runs on a CPU instead — which doesn't use any of your GPU hours, so it's the cheap way to check your code works before spending quota on it.

When it finishes you'll see where your files went, and a summary of how long each cell took.


The easier way: open the shell

Typing caudex on its own opens an interactive session:

 ██████╗ █████╗ ██╗   ██╗██████╗ ███████╗██╗  ██╗
██╔════╝██╔══██╗██║   ██║██╔══██╗██╔════╝╚██╗██╔╝
██║     ███████║██║   ██║██║  ██║█████╗   ╚███╔╝
██║     ██╔══██║██║   ██║██║  ██║██╔══╝   ██╔██╗
╚██████╗██║  ██║╚██████╔╝██████╔╝███████╗██╔╝ ██╗
 ╚═════╝╚═╝  ╚═╝ ╚═════╝ ╚═════╝ ╚══════╝╚═╝  ╚═╝

  0.9.12
  your-username  ·  GPU 12h left
  no project — try:  init train.ipynb
  /  commands    ^C  cancel    ^D  exit

Inside it you can drop the caudex prefix and the folder name — it remembers which project you're working on:

> use ./my-experiment
> execute --gpu
> logs

Press / to see every command in a menu; arrow keys to pick one, Enter to accept it, Enter again to run. Ctrl-C cancels whatever is running without closing the session. Ctrl-D or exit leaves.

It remembers your history between sessions, and Tab completes commands, options and file paths.


Watching a long run

caudex ui

A live dashboard: your notebooks on the left, the current run's status and log tail on the right, your remaining quota along the bottom. j/k to move, Enter to follow a notebook's log, q to leave.

If you'd rather just tail the log:

caudex logs --follow

Things you'll want sooner or later

I want to… Type this
See how much GPU time I have left caudex quota
List my notebooks on Kaggle caudex notebooks
Check on a run I stopped watching caudex status
See hardware, timing and quota for a run caudex status --detail
See which notebooks are running right now caudex notebooks --status
Re-check a long log without re-reading it caudex logs --cursor, then --since N
Read the log of a run that failed caudex logs
Download the results again caudex pull
Download just the metrics, not the checkpoints caudex pull --only "metrics*.json"
Download everything except the weights caudex pull --exclude "*.pt"
Check whether an uploaded dataset is ready caudex dataset status owner/name
Switch a project between CPU and GPU caudex runtime use gpu
Find where my files are being saved caudex paths show
Run a .py script directly — no conversion caudex init train.py, then caudex execute
Turn a .py script into a notebook (optional) caudex convert script.py
Use a Kaggle dataset in my notebook caudex dataset attach owner/name

Add --help to anything for the full list of options.

caudex pull works on any run, including one that crashed — whatever the notebook wrote before it stopped comes back, which is usually the log you need. And caudex dataset upload --update --message "epoch-2 weights" records why this version exists, right on Kaggle.


Where your files go

Run caudex paths show and it will tell you exactly. By default:

  • Your notebook projects live wherever you made them
  • Results come back to a folder per notebook, under your user directory
  • Your Kaggle token sits in ~/.kaggle/access_token (or a legacy key in ~/.kaggle/kaggle.json) — the same files the official kaggle command uses, so the two work side by side

You can change where results land:

caudex paths set output_dir ~/kaggle-results

If something goes wrong

"Kaggle auth failed", or a 401 from Kaggle — your token has expired or been revoked. Make a new one at kaggle.com → Settings → API Tokens → Generate New Token, then run caudex auth --setup again.

The run stops and says it timed out — that means caudex gave up watching, not that your notebook died. It is probably still running on Kaggle and still using your quota. Check it with caudex status, or use caudex execute --on-timeout cancel next time if you'd rather it stopped the run too.

Your notebook produced no files — anything you want back has to be written to /kaggle/working/. Files written anywhere else are thrown away when the run ends.

You ran out of GPU hours — Kaggle gives you a fixed number per week and resets them on a fixed day; caudex quota shows both. CPU runs don't touch that budget, so you can keep working while you wait.


Exit codes, for scripts

0 worked · 1 failed · 2 you typed something wrong · 124 gave up waiting

124 is deliberately not 1: a run that outlives your patience is not a run that broke.


Licence

Business Source License 1.1, from 0.6.0 onward. Free to use for real work; not to resell as a hosted service, and not to strip the licence check out of. It converts automatically to Apache-2.0 on 2030-08-20.

Versions 0.2.0–0.5.2 were released under Apache-2.0 and remain so permanently.

The full text ships in every release as LICENSE. For alternative licensing, contact mdsohanurislamshuvo@gmail.com.

What talks to the network

reaches
notebooks, datasets, runs, outputs kaggle.com only, with your credentials
caudex auth --licence / --licence-key caudexstudio.space, when you run them
a gated command, at most once a day caudexstudio.space — the licence check
free commands, and gated ones already checked today nothing of ours

Your Kaggle credentials are never sent to us and no file passes through our servers.

What needs a licence

From 0.7.0, the commands that send work to Kaggle need one. Getting it is free: sign in with your Caudex Studio account (Google or GitHub).

caudex auth --licence

That prints a short code and opens your browser; approve the same code there and the terminal finishes signing in. Every machine you sign in on is listed at caudexstudio.space/cli, where you can sign one out. For CI, set CAUDEX_LICENCE_KEY to the key a sign-in saved in licence.json.

Free without one — enough to see whether caudex is for you:

caudex quota how much GPU time you have left
caudex notebooks your notebooks on Kaggle
caudex whoami which account you are on
caudex auth, caudex paths sign in, and find your own files
caudex (the shell), and --help on anything look around

Needs a licence — push, execute, pull, logs, status, watch, run, ui, dataset, init, convert, runtime.

The check reads a file on your machine and is silent when it passes. It asks our server at most once a day, and if we are unreachable caudex keeps working for another two weeks rather than blaming your key for our outage.

From 0.8.0 that file holds a licence we sign. Its plan, expiry, id and the key it belongs to are covered by an Ed25519 signature, checked against a public key built into caudex — locally, no network. Editing the file no longer works.

Two honest caveats. A signature proves what your licence says, not that it is still live, which is what the daily check is for. And the public key sits in a binary you own, so this is not tamper-proofing — anyone who can patch that binary can bypass any check it makes. What changed is that forging a licence went from editing JSON in Notepad to patching a compiled extension.

From 0.11.0, licences come from Caudex Studio. A licence or key from the previous licence server (any caudex before 0.11.0) is no longer accepted: run caudex auth --licence once to sign in again. It is still free. A licence renews itself at the daily check, so you will not be asked to sign in again because of its expiry date.

Metadata

Release files for caudex 0.11.2

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

Built distributions (wheels)

Table of built distributions (wheels) for caudex 0.11.2
File Actions
caudex-0.11.2-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details for caudex-0.11.2-cp313-cp313-win_amd64.whl
caudex-0.11.2-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.17+ x86-64, Linux glibc 2.28+ x86-64 Details for caudex-0.11.2-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
caudex-0.11.2-cp313-cp313-macosx_11_0_arm64.whl CPython 3.13 CPython 3.13 macOS 11.0+ ARM64 Details for caudex-0.11.2-cp313-cp313-macosx_11_0_arm64.whl
caudex-0.11.2-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details for caudex-0.11.2-cp312-cp312-win_amd64.whl
caudex-0.11.2-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.17+ x86-64, Linux glibc 2.28+ x86-64 Details for caudex-0.11.2-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
caudex-0.11.2-cp312-cp312-macosx_11_0_arm64.whl CPython 3.12 CPython 3.12 macOS 11.0+ ARM64 Details for caudex-0.11.2-cp312-cp312-macosx_11_0_arm64.whl
caudex-0.11.2-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details for caudex-0.11.2-cp311-cp311-win_amd64.whl
caudex-0.11.2-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.17+ x86-64, Linux glibc 2.28+ x86-64 Details for caudex-0.11.2-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
caudex-0.11.2-cp311-cp311-macosx_11_0_arm64.whl CPython 3.11 CPython 3.11 macOS 11.0+ ARM64 Details for caudex-0.11.2-cp311-cp311-macosx_11_0_arm64.whl

Total release size: 10.7 MB

Release files / caudex-0.11.2-cp313-cp313-win_amd64.whl

Download URL caudex-0.11.2-cp313-cp313-win_amd64.whl
Size 960.5 kB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
c3f11e7c1417a5015df4233b8a062fb77daa47c55053efb5b1c2675025bb0d4d
BLAKE2b-256 checksum
How to use checksums
1e5229d7b195005d846764b36e0d97e8128e9c53d0724822da3b184e73f40283
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 24, 2026.

Transparency log

Release files / caudex-0.11.2-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl

Download URL caudex-0.11.2-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Size 1.5 MB
Tags CPython 3.13 Linux glibc 2.17+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
5c011086370f01cf3cbc0998dfb1f28db7a8265f0db5dbec2dc1d181c2aa43f5
BLAKE2b-256 checksum
How to use checksums
05beda409be5acf03f7372ea58029cbc38b4a96426fd0f01ddc9dd74a4a7e653
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 24, 2026.

Transparency log

Release files / caudex-0.11.2-cp313-cp313-macosx_11_0_arm64.whl

Download URL caudex-0.11.2-cp313-cp313-macosx_11_0_arm64.whl
Size 1.2 MB
Tags CPython 3.13 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
2fd45e320dfeb94de741d9afd3417eda4bcc092de716d7d029069124621926b1
BLAKE2b-256 checksum
How to use checksums
7556df7ceafc965b4d2bab5cdcbf7a153b8fba67b58dee8bb355454a8e6b66fb
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 24, 2026.

Transparency log

Release files / caudex-0.11.2-cp312-cp312-win_amd64.whl

Download URL caudex-0.11.2-cp312-cp312-win_amd64.whl
Size 957.1 kB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
61ca39ebc1f368ab927a15209838e721032be383541bcab14a7351c0893a51ba
BLAKE2b-256 checksum
How to use checksums
a6def8e2398b6f146ad6304055f96cc86429b410ae207e39034cea919a11bbfd
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 24, 2026.

Transparency log

Release files / caudex-0.11.2-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl

Download URL caudex-0.11.2-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Size 1.5 MB
Tags CPython 3.12 Linux glibc 2.17+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
9669136bf5f5f75a9b7d3fd1a02ba4f26c540c53809bf92d0b74a41dd0180aff
BLAKE2b-256 checksum
How to use checksums
411c3a8f06faf738f99d864d3ecb0a0fcc655d5705f2d6f3b8ff304872f1744d
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 24, 2026.

Transparency log

Release files / caudex-0.11.2-cp312-cp312-macosx_11_0_arm64.whl

Download URL caudex-0.11.2-cp312-cp312-macosx_11_0_arm64.whl
Size 1.1 MB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
b3bd8d3a247225f07886c822c32156c9b4e3819dcba126d167afee7958e7557d
BLAKE2b-256 checksum
How to use checksums
a1bd6de011e2d6910cbc7170155b6faf4d6fdb365cd73614f01ee6f69b67ce8d
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 24, 2026.

Transparency log

Release files / caudex-0.11.2-cp311-cp311-win_amd64.whl

Download URL caudex-0.11.2-cp311-cp311-win_amd64.whl
Size 1.0 MB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
aca2ad4db015eb2ed8c6877dbce3c08cfbcab99d633f3ea5ac7b4974f99a2b30
BLAKE2b-256 checksum
How to use checksums
1b346bdb165fbdc16a1c7bb13ce77fb1b7c53d99fac1ad1d254fc29d72e6a06f
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 24, 2026.

Transparency log

Release files / caudex-0.11.2-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl

Download URL caudex-0.11.2-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Size 1.3 MB
Tags CPython 3.11 Linux glibc 2.17+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
2f3ba82846dfc02a355cd9d2d6786ef280c950dc67855afda30c66c7bcba6386
BLAKE2b-256 checksum
How to use checksums
493a01cd8cd63f1aa60d078fabbacb85adb1996bc7e6017ae618c4126579eeac
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 24, 2026.

Transparency log

Release files / caudex-0.11.2-cp311-cp311-macosx_11_0_arm64.whl

Download URL caudex-0.11.2-cp311-cp311-macosx_11_0_arm64.whl
Size 1.1 MB
Tags CPython 3.11 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
266fada27ed10a6161b8442fc4000fadab7938d8e984c98403a9cf7512f31817
BLAKE2b-256 checksum
How to use checksums
58a716f7b22c3c1aafb4e38de0fa3ad8ff8c30b8d7f6c761063eab1977ddc770
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 24, 2026.

Transparency log

Security for caudex 0.11.2

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

All 9 files in this release have been uploaded with provenance metadata.

Select from 9 files

Attestation for caudex-0.11.2-cp313-cp313-win_amd64.whl

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 24, 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