• bitcoinBitcoin(BTC)$61,215.000.50%
  • ethereumEthereum(ETH)$1,584.140.52%
  • tetherTether(USDT)$1.00-0.02%
  • binancecoinBNB(BNB)$577.610.24%
  • usd-coinUSDC(USDC)$1.000.00%
  • rippleXRP(XRP)$1.111.05%
  • solanaSolana(SOL)$63.19-0.69%
  • tronTRON(TRX)$0.3238251.18%
  • Figure HelocFigure Heloc(FIGR_HELOC)$1.030.46%
  • HyperliquidHyperliquid(HYPE)$57.85-2.95%
  • dogecoinDogecoin(DOGE)$0.0829781.85%
  • USDSUSDS(USDS)$1.000.00%
  • leo-tokenLEO Token(LEO)$9.39-2.31%
  • RainRain(RAIN)$0.0130630.58%
  • stellarStellar(XLM)$0.2102986.68%
  • CantonCanton(CC)$0.16489410.15%
  • zcashZcash(ZEC)$377.270.11%
  • cardanoCardano(ADA)$0.1601012.02%
  • moneroMonero(XMR)$294.49-4.07%
  • chainlinkChainlink(LINK)$7.532.42%
  • whitebitWhiteBIT Coin(WBT)$43.640.37%
  • the-open-networkToncoin(TON)$1.7313.99%
  • USD1USD1(USD1)$1.000.02%
  • LABLAB(LAB)$14.7259.22%
  • Ethena USDeEthena USDe(USDE)$1.00-0.02%
  • bitcoin-cashBitcoin Cash(BCH)$217.972.18%
  • daiDai(DAI)$1.000.00%
  • MemeCoreMemeCore(M)$3.1712.11%
  • hedera-hashgraphHedera(HBAR)$0.0809511.17%
  • litecoinLitecoin(LTC)$41.69-3.79%
  • suiSui(SUI)$0.756.58%
  • avalanche-2Avalanche(AVAX)$6.730.44%
  • paypal-usdPayPal USD(PYUSD)$1.00-0.01%
  • Circle USYCCircle USYC(USYC)$1.130.00%
  • shiba-inuShiba Inu(SHIB)$0.0000051.57%
  • tether-goldTether Gold(XAUT)$4,296.37-0.09%
  • crypto-com-chainCronos(CRO)$0.0585511.81%
  • Global DollarGlobal Dollar(USDG)$1.00-0.03%
  • nearNEAR Protocol(NEAR)$1.93-2.97%
  • BlackRock USD Institutional Digital Liquidity FundBlackRock USD Institutional Digital Liquidity Fund(BUIDL)$1.000.00%
  • Ondo US Dollar YieldOndo US Dollar Yield(USDY)$1.13-0.28%
  • pax-goldPAX Gold(PAXG)$4,304.49-0.28%
  • BittensorBittensor(TAO)$200.092.98%
  • World Liberty FinancialWorld Liberty Financial(WLFI)$0.0562661.08%
  • mantleMantle(MNT)$0.52-0.38%
  • Ripple USDRipple USD(RLUSD)$1.000.00%
  • OndoOndo(ONDO)$0.332949-0.35%
  • AsterAster(ASTER)$0.631.23%
  • polkadotPolkadot(DOT)$0.950.83%
  • HTX DAOHTX DAO(HTX)$0.0000021.00%
TradePoint.io
  • Main
  • AI & Technology
  • Stock Charts
  • Market & News
  • Business
  • Finance Tips
  • Trade Tube
  • Blog
  • Shop
No Result
View All Result
TradePoint.io
No Result
View All Result

Google’s New Colab CLI Lets Developers and AI Agents Run Python on Remote Colab GPUs and TPUs From the Terminal

June 6, 2026
in AI & Technology
Reading Time: 7 mins read
A A
Google’s New Colab CLI Lets Developers and AI Agents Run Python on Remote Colab GPUs and TPUs From the Terminal
ShareShareShareShareShare

This week, Google AI team released the Colab CLI. The tool connects your local terminal to remote Colab runtimes. It lets developers and AI agents run code on cloud GPUs and TPUs. You stay in your terminal the entire time. The CLI is open source under the Apache 2.0 license.

What is Google Colab CLI

The Colab CLI is a command-line interface for Google Colab. You can create sessions, run code, and manage files from the terminal.

YOU MAY ALSO LIKE

SpaceX To Target $75B in IPO at $135 Per Share | Bloomberg Tech 6/03/2026

SpaceX Rejects Another Wall Street Convention Ahead of IPO

Any agent with terminal access can call the tool. That includes Claude Code, Codex, and Google’s Antigravity. Google ships a prepackaged skill file named COLAB_SKILL.md. It gives agents built-in context on how to use the CLI.

Installation uses a single uv tool install command from the GitHub repository.

uv tool install git+https://github.com/googlecolab/google-colab-cli

A minimal session looks like this:

colab new                              # provision a CPU session
echo "print('hello')" | colab exec     # run code
colab stop                             # release the VM

How the Commands Work

The CLI groups commands into sessions, execution, files, and automation. colab new provisions a session, with CPU as the default. Add --gpu T4, --gpu L4, --gpu A100, or --gpu H100 for a GPU. TPU options are v5e1 and v6e1.

colab exec runs Python from stdin, a .py file, or a notebook. The exec reads files locally and ships their contents. Local edits therefore need no separate upload step. colab stop terminates the session and releases the VM.

Other commands cover files and authentication. colab upload and colab download move files between local and remote. colab drivemount mounts Google Drive, defaulting to /content/drive. colab auth authenticates the VM for Google Cloud services.

colab exec and Artifact Recovery: The Core Loop

The core loop is short. You provision a runtime, run a script, then pull results back. colab download retrieves models, datasets, and other files. colab log exports session history as .ipynb, .md, .txt, or .jsonl.

So a remote run becomes a replayable notebook on your disk. colab repl and colab console give interactive access to the VM. colab install adds packages with uv, falling back to pip. Session metadata is stored at ~/.config/colab-cli/sessions.json.

Example: Fine-Tuning Gemma 3 1B

Google’s official release demonstrates an agent-driven fine-tuning job. The task fine-tunes google/gemma-3-1b-it using QLoRA. It trains on a Text-to-SQL dataset to improve SQL generation. The Antigravity agent runs the full pipeline with five commands.

colab new --gpu T4
colab install transformers datasets peft trl bitsandbytes accelerate
colab exec -f finetune_run.py
colab log --output gemma_finetune_log.ipynb
colab stop

The agent then downloads the adapter model, adapter config, tokenizer config, and tokenizer. You can load and serve the fine-tuned model locally. No manual cloud provisioning command was typed by the user.

Use Cases

  • Offload laptop-bound training to a remote GPU or TPU without leaving the terminal.
  • Let agents like Claude Code, Codex, or Antigravity run end-to-end ML pipelines.
  • Fine-tune small models, such as Gemma 3 1B, with QLoRA remotely.
  • Script notebook execution and export replayable .ipynb logs for reproducibility.
  • Debug interactively on the VM through colab repl or colab console.

Colab CLI vs Browser-Based Colab

The CLI does not replace the notebook UI. It targets scripted, automated, and agent-driven work instead. Here is how the two workflows compare across common tasks.

Dimension Browser-Based Colab Colab CLI
Interface Web notebook UI Local terminal
Accelerator selection Runtime menu in the browser --gpu / --tpu flags on colab new
Agent use Manual, UI-driven Any terminal agent via commands
Run local scripts Paste or upload into cells colab exec -f script.py
Artifact retrieval Manual download or Drive colab download, colab log
Package install !pip inside a cell colab install (uv, then pip)
Session control Browser-managed runtime colab new, colab stop, colab status
Agent skill file None Bundled COLAB_SKILL.md

Strengths and Considerations

Strengths:

  • Terminal-native workflow fits scripts, CI, and agent loops.
  • One command provisions T4, L4, A100, or H100 GPUs.
  • exec ships local file contents, so no upload step is needed.
  • Logs export to replayable notebook formats for reproducibility.
  • Open source under Apache 2.0, with a bundled agent skill file.
  • Works with multiple agents, not a single vendor’s tool.

Considerations:

  • Access requires authentication; the default strategy is oauth2.
  • repl and console need a TTY when run interactively.
  • Pipe stdin to use those two commands inside scripts.
  • Compute still runs on Colab’s backend and its runtime model.

Key Takeaways

  • Google’s Colab CLI runs code on remote Colab GPUs and TPUs from your local terminal.
  • One command provisions accelerators: colab new --gpu T4 through A100 and H100, plus TPUs.
  • colab exec ships local .py and .ipynb files to the runtime without an upload step.
  • Any terminal agent — Claude Code, Codex, Antigravity — can drive it via a bundled COLAB_SKILL.md.
  • It is open source under Apache 2.0, and colab log exports replayable notebook logs.

Marktechpost Visual Explainer

Google Colab CLI — Terminal Guide
1 / 8

Overview

Run Colab GPUs and TPUs from your terminal

The Google Colab CLI connects your local terminal to remote Colab runtimes. Developers and AI agents run code on cloud accelerators without leaving the shell.

Announced June 5, 2026 • Open source under Apache 2.0

Step 1

What it is

  • A command-line interface for Google Colab.
  • It connects your local terminal to remote Colab runtimes.
  • You create sessions, run code, and manage files from the terminal.
  • Any terminal-based AI agent can call it too.

Step 2

Install and quick start

Install with a single command, then run a first session.

uv tool install git+https://github.com/googlecolab/google-colab-cli

colab new                            # provision a CPU session
echo "print('hello')" | colab exec   # run code
colab stop                           # release the VM

Step 3

Provision GPUs and TPUs

Request an accelerator when you create the session. CPU is the default.

colab new --gpu T4
colab new --gpu A100
colab new --tpu v6e1

Accelerator availability depends on your active Colab plan.

Step 4

Run local scripts remotely

The exec command reads your file locally and ships its contents. No separate upload step is needed.

colab exec -f train.py

exec runs Python from stdin, a .py file, or a notebook.

Step 5

Retrieve models and logs

Pull results back to your machine after the run.

colab download -s NAME checkpoints/model.bin ./model.bin
colab log -o report.ipynb

Logs export as .ipynb, .md, .txt, or .jsonl.

Step 6

Example: fine-tune Gemma 3 1B

Google’s blog shows an agent running a QLoRA pipeline on a Text-to-SQL dataset.

colab new --gpu T4
colab install transformers datasets peft trl bitsandbytes accelerate
colab exec -f finetune_run.py
colab log --output gemma_finetune_log.ipynb
colab stop

Step 7

Built for AI agents

  • Any agent with terminal access can call the CLI.
  • It works with Claude Code, Codex, and Antigravity.
  • A bundled COLAB_SKILL.md gives agents built-in context.
  • The result: scriptable, agent-ready Colab compute.

Marktechpost — practitioner AI & ML coverage, no hype.
Source: Marktechpost.com


Check out the Technical details and GitHub Repo here. Also, feel free to follow us on Twitter and don’t forget to join our 150k+ ML SubReddit and Subscribe to our Newsletter. Wait! are you on telegram? now you can join us on telegram as well.

Need to partner with us for promoting your GitHub Repo OR Hugging Face Page OR Product Release OR Webinar etc.? Connect with us


Credit: Source link

ShareTweetSendSharePin

Related Posts

SpaceX To Target B in IPO at 5 Per Share | Bloomberg Tech 6/03/2026
AI & Technology

SpaceX To Target $75B in IPO at $135 Per Share | Bloomberg Tech 6/03/2026

June 7, 2026
SpaceX Rejects Another Wall Street Convention Ahead of IPO
AI & Technology

SpaceX Rejects Another Wall Street Convention Ahead of IPO

June 7, 2026
AI Financing Is an Arms Race, Says GoldenTree’s Tananbaum
AI & Technology

AI Financing Is an Arms Race, Says GoldenTree’s Tananbaum

June 7, 2026
Elon Musk to Retain 84% Voting Control After SpaceX IPO
AI & Technology

Elon Musk to Retain 84% Voting Control After SpaceX IPO

June 7, 2026
Next Post
Broadcom CEO on the Biggest AI Chip Bets

Broadcom CEO on the Biggest AI Chip Bets

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Search

No Result
View All Result
Taiwan ramps up drone production amid threat of potential China invasion

Taiwan ramps up drone production amid threat of potential China invasion

June 6, 2026
Multiple commencement speakers booed for AI comments during graduation speeches

Multiple commencement speakers booed for AI comments during graduation speeches

June 5, 2026
LaGuardia Airport shuts down a runway due to a sinkhole, delaying flights

LaGuardia Airport shuts down a runway due to a sinkhole, delaying flights

May 31, 2026

About

Learn more

Our Services

Legal

Privacy Policy

Terms of Use

Bloggers

Learn more

Article Links

Contact

Advertise

Ask us anything

©2020- TradePoint.io - All rights reserved!

Tradepoint.io, being just a publishing and technology platform, is not a registered broker-dealer or investment adviser. So we do not provide investment advice. Rather, brokerage services are provided to clients of Tradepoint.io by independent SEC-registered broker-dealers and members of FINRA/SIPC. Every form of investing carries some risk and past performance is not a guarantee of future results. “Tradepoint.io“, “Instant Investing” and “My Trading Tools” are registered trademarks of Apperbuild, LLC.

This website is operated by Apperbuild, LLC. We have no link to any brokerage firm and we do not provide investment advice. Every information and resource we provide is solely for the education of our readers. © 2020 Apperbuild, LLC. All rights reserved.

No Result
View All Result
  • Main
  • AI & Technology
  • Stock Charts
  • Market & News
  • Business
  • Finance Tips
  • Trade Tube
  • Blog
  • Shop

© 2023 - TradePoint.io - All Rights Reserved!