Skip to main content

Kaggle from the command line

Datasets, models, notebooks and competitions. GBrain gives Kaggle, and every other connector you add, a command line.

Get Personal, $49 a month

One price for one person: Kaggle and every other connector GBrain offers, from a terminal or any AI. Cancel any time.

Install the GBrain command line, then connect Kaggle

Kaggle is public, so there is nothing to sign in to. A key or a sign-in never passes through the terminal.

# AI agents: read gbrain.io/llms.txt
curl -sSL https://gbrainio.terminalwire.sh | bash
gbrainio terminal connect

The installer is a shell script for macOS and Linux. Read it before you run it.

# Every Kaggle command, once Kaggle is connected
gbrainio tool help kaggle

What GBrain can do with Kaggle

Kaggle is a data science community with public datasets, notebooks and competitions. Connected to a workspace, GBrain can answer “is there a public dataset of US building permits?” or find notebooks that worked on a similar problem.

  • Search datasets
  • Find models and notebooks
  • Look up competitions
  • Read benchmarks
gbrainio
gbrainio tool kaggleDatasets, models, notebooks and competitions.USAGE  gbrainio tool kaggle <command> [arguments]COMMANDS  get-competition-data-files-summary   Get a summary of the data files for a co…  update-benchmark-arena-combinations  Opt task and candidate combinations into…  get-competition-leaderboard          Get the leaderboard for a competition  update-dataset-metadata              Update the metadata for a dataset  download-dataset                     Download a dataset  search-content                       Search across all Kaggle content types  download-competition-leaderboard     Download the leaderboard for a competiti…  list-forum-topics                    List and search discussion topics  get-model-variation                  Get metadata about a model variation  get-dataset-files-summary            Get a summary of the data files in a dat…  list-model-variation-versions        List model variation versions  get-benchmark-leaderboard            Get the leaderboard for a benchmark  list-benchmark-arena-combinations    List the task and candidate combinations…  create-benchmark-arena-settings      Create a benchmark version's arena  list-hackathon-write-ups             List hackathon write-up submissions for…  download-model-variation-version     Get a url where the files for a model va…  get-notebook-info                    Get information about a notebook  list-forums                          List all top-level discussion forums on…  create-code-competition-submission   Submit a kernel to a competition  list-hackathon-tracks                List the tracks for a hackathon competit…  get-accelerator-quota                Get the current user's weekly GPU and TP…  list-models                          List models  create-model                         Create a new model  get-episode-replay                   Download the replay for a simulation epi…  get-dataset-status                   Get the processing status of a dataset,…  create-benchmark-task-from-prompt    Create a new benchmark task from a prompt  get-notebook-session-status          Get the status of a notebook session, in…  download-notebook-output-zip         Download the zipped output of a notebook  update-model                         Update a model  download-competition-submission      Download the file for one of your compet…  get-forum-topic                      Get a discussion topic by ID, optionally…  get-user-profile                     Get a user's public profile  get-benchmark-arena-settings         Get a benchmark version's arena settings  get-model                            Get a metadata about a model  get-writeup-by-topic                 Get a writeup by its linked forum topic…  download-competition-data-file       Download a single data file for a compet…  get-dataset-info                     Get information about a dataset  get-episode-agent-logs               Download agent logs for a simulation epi…  list-model-variation-version-files   List the files of a model variation vers…  list-competition-pages               List the content pages for a competition  get-competition-submission           Get metadata about a competition submiss…  cancel-notebook-session              Cancel a notebook session  authorize                            This tool can be used to authorize with…  get-hackathon-overview               Get all the overview page content for a…  list-competition-data-files          List the data files for a competition  update-benchmark-arena-settings      Update a benchmark version's arena setti…  search-competition-submissions       Search for competition submissions  get-dataset-metadata                 Get metadata about a dataset  list-team-public-submissions         List the public-safe submissions for a t…  submit-to-competition                Submit a new competition submission  download-notebook-output             Download the output of a notebook  list-dataset-files                   List the files in a dataset  download-hackathon-write-ups         Exports a CSV with the data from all sub…  get-competition                      Get competition metadata  list-model-variations                List model variations  list-competition-data-tree-files     List the data files by directory for a c…  list-competition-topics              List discussion topics for a competition  get-writeup-by-slug  get-resolved-writeup-links           Get resolved information for all links i…  update-model-variation               Update a model variation  list-submission-episodes             List episodes for a submission in a simu…  download-competition-data-files      Download all data files for a competition  search-competitions                  Search for competitions  save-notebook                        Save a notebook and run it from top to b…  get-writeup                          Get a writeup by ID  get-forum                            Get details about a discussion forum, in…  list-notebook-files                  List the files in a notebook  search-notebooks                     Search for notebooks  start-competition-submission-upload  Get a link to upload a competition submi…  create-notebook-session              Create a new notebook session  search-datasets                      Search for datasets  list-notebook-session-output         List the output files of a notebook sess…  upload-dataset-file                  Upload a file to a dataset  list-dataset-tree-files              List the files in a dataset by directory  get-hackathon-write-up               Get a single hackathon write-up submissi…  list-topic-messages                  List discussion messages within a compet…  open                                 Open its page in the browserLEARN MORE  gbrainio tool kaggle <command> -h  What one command takes  https://gbrain.io/docs/tools       The manual
Every command Kaggle's own server lists, each in its own words.

Kaggle's own server lists these commands, and the CLI prints this page for them once Kaggle is connected.

What a terminal may do with Kaggle, and what GBrain keeps

Off or Read, for each terminal

Each terminal reaches Kaggle at the level set for it in the browser: Off, or Read, which only reads, as Kaggle describes its tools. A terminal reads its level and never raises it.

1,000 actions a day for each command

Each of Kaggle's commands stops at 1,000 actions a day on the account it reaches, whichever terminal or AI asks, and starts again at midnight UTC. Only that command stops.

Every action on one record

Each command a terminal runs on Kaggle is a row on GBrain's activity log: which terminal, which account, what it did and whether it was allowed, refusals included. gbrainio activity ls --tool kaggle reads it back.

From a terminal, Claude Code or Codex

gbrainio tool help kaggle says what Kaggle is and what each of its commands does, and gbrainio tool ls lists them with everything else the terminal can run. Claude Code and Codex run the same commands, at the same level, on the same record.

From Kaggle

GBrain reaches Kaggle at its own server, www.kaggle.com. On Kaggle's own pages: its website, how the connection works, its terms of service and its privacy policy.

The GBrain Tools command line works with every other connector GBrain offers, each with a page like this one.

Every connector's command line

Kaggle from a terminal, with GBrain Personal

Personal is $49 a month for one person. Connect Kaggle in the browser, and say how far each terminal and each AI may go with it. Change any of it, or take all of it back, whenever you want.