{"id":524185,"date":"2026-06-08T07:03:18","date_gmt":"2026-06-08T07:03:18","guid":{"rendered":"https:\/\/www.europesays.com\/ie\/524185\/"},"modified":"2026-06-08T07:03:18","modified_gmt":"2026-06-08T07:03:18","slug":"google-colab-cli-opens-runtimes-to-claude-code-and-codex","status":"publish","type":"post","link":"https:\/\/www.europesays.com\/ie\/524185\/","title":{"rendered":"Google Colab CLI opens runtimes to Claude Code and Codex"},"content":{"rendered":"<p>Google released the Google Colab Command-Line Interface, a tool that connects local terminals to remote Colab runtimes. The CLI provides an execution platform for developers and <a href=\"https:\/\/www.helpnetsecurity.com\/2026\/06\/03\/research-ai-agent-security-capability\/\" rel=\"nofollow noopener\" target=\"_blank\">AI agents<\/a>, letting users provision compute, run local Python scripts on remote runtimes, and retrieve artifacts back to local machines.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.europesays.com\/ie\/wp-content\/uploads\/2026\/06\/Google-Colab-CLI.webp\" class=\"aligncenter\" alt=\"Google Colab CLI\" title=\"Google Colab CLI\"\/><\/p>\n<p class=\"text-center\">Google Colab CLI (Source: Google)<\/p>\n<p>Commands and accelerator options<\/p>\n<p>The CLI handles GPU and TPU provisioning through commands such as colab &#8211;gpu A100 and colab &#8211;gpu T4. The colab exec command runs local scripts on a remote runtime. The colab download and colab log commands retrieve models, datasets, and replayable .ipynb logs. Interactive sessions are available through colab repl and colab console.<\/p>\n<p>Agent integration<\/p>\n<p>The CLI integrates with standard terminal environments and can be used by any AI agent with terminal access. The package ships with a prepackaged skill file named COLAB_SKILL.md that gives agents the context needed to operate the CLI. The tool can be used by Antigravity, Claude Code, Codex, and other agents.<\/p>\n<p>Example workflow with Gemma 3-1B<\/p>\n<p>The release includes a demonstration of a QLoRA fine-tuning pipeline for the google\/gemma-3-1b-it model on a Text-to-SQL dataset hosted on Hugging Face. The example uses the Antigravity agent, which executes the following sequence:<\/p>\n<p>colab new &#8211;gpu T4<br \/>colab install transformers datasets peft trl bitsandbytes accelerate<br \/>colab exec -f finetune_run.py<br \/>colab log &#8211;output gemma_finetune_log.ipynb<br \/>colab stop<\/p>\n<p>The agent then uses colab download to retrieve the adapter model, adapter config, tokenizer config, and tokenizer files, producing a fine-tuned model that can be loaded and served locally.<\/p>\n<p>Availability<\/p>\n<p>Setup instructions and source code for the Colab CLI are hosted on <a href=\"https:\/\/github.com\/googlecolab\/google-colab-cli\" target=\"_blank\" rel=\"nofollow noopener\">GitHub<\/a>.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.europesays.com\/ie\/wp-content\/uploads\/2026\/06\/divider.gif\" class=\"aligncenter\"\/><\/p>\n<p><strong>Must read:<\/strong><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.europesays.com\/ie\/wp-content\/uploads\/2026\/06\/devider.webp\"\/><\/p>\n<p><strong>Subscribe to the Help Net Security ad-free monthly newsletter to stay informed on the essential open-source cybersecurity tools. <a href=\"https:\/\/www.helpnetsecurity.com\/newsletter\/\" rel=\"nofollow noopener\" target=\"_blank\">Subscribe here!<\/a><\/strong><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.europesays.com\/ie\/wp-content\/uploads\/2026\/06\/devider.webp\"\/><\/p>\n","protected":false},"excerpt":{"rendered":"Google released the Google Colab Command-Line Interface, a tool that connects local terminals to remote Colab runtimes. The&hellip;\n","protected":false},"author":2,"featured_media":524186,"comment_status":"","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","_share_on_mastodon":"0"},"categories":[74],"tags":[18,31845,823,19,17,82],"class_list":["post-524185","post","type-post","status-publish","format-standard","has-post-thumbnail","category-technology","tag-eire","tag-github","tag-google","tag-ie","tag-ireland","tag-technology"],"share_on_mastodon":{"url":"https:\/\/pubeurope.com\/@ie\/116713214403909920","error":""},"_links":{"self":[{"href":"https:\/\/www.europesays.com\/ie\/wp-json\/wp\/v2\/posts\/524185","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.europesays.com\/ie\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.europesays.com\/ie\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.europesays.com\/ie\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.europesays.com\/ie\/wp-json\/wp\/v2\/comments?post=524185"}],"version-history":[{"count":0,"href":"https:\/\/www.europesays.com\/ie\/wp-json\/wp\/v2\/posts\/524185\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.europesays.com\/ie\/wp-json\/wp\/v2\/media\/524186"}],"wp:attachment":[{"href":"https:\/\/www.europesays.com\/ie\/wp-json\/wp\/v2\/media?parent=524185"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.europesays.com\/ie\/wp-json\/wp\/v2\/categories?post=524185"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.europesays.com\/ie\/wp-json\/wp\/v2\/tags?post=524185"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}