Skip to content

Conversation

@stevemessick
Copy link
Contributor

No description provided.

@stevemessick stevemessick requested a review from rosbo November 19, 2025 20:07
Copy link
Contributor

@rosbo rosbo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Waiting for Erdal to confirm that KAGGLE_USERNAME is not necessary with the new token.

`chmod 600 ~/.config/kaggle/kaggle.json`

You can also choose to export your Kaggle username and token to the environment:
You can export your Kaggle username and token to the environment:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@erdalsivri Correct me if I am wrong but I think you don't need to set the username with the new API token

For example, if the file had the variable "proxy" you would export `KAGGLE_PROXY`
and it would be discovered by the client.

It is best to save the `export` commands to your shell init script so you don't have to re-run them for each new shell. Note that in some environments you need to log out and log back in for shell script updates to be fully propagated.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

instead of suggesting to export in your bashrc (or equivalent), should we document how you can save it and load it the ~/.kaggle/access_token.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! After rereading the auth code I simplified the docs to better match the implementation. PTAL.

@stevemessick stevemessick requested a review from rosbo November 19, 2025 23:47
Copy link
Contributor

@rosbo rosbo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks

docs/README.md Outdated
the `kaggle.json` in the format 'KAGGLE_<VARIABLE>' (note uppercase).
For example, if the file had the variable "proxy" you would export `KAGGLE_PROXY`
and it would be discovered by the client.
Note: If you already have a `~/.kaggle/kaggle.json` file it will continue to work.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: maybe rephrase to "If you already have a ~/.kaggle/kaggle.json file with legacy API credentials, it will continue to work".

Note, we use the term Legacy API Credentials on the settings page: https://screenshot.googleplex.com/74wnymz56e2fkNj

@stevemessick stevemessick merged commit 3f8e54c into main Nov 20, 2025
4 checks passed
@stevemessick stevemessick deleted the release-prep branch November 20, 2025 13:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants