Gemini CLI · Antigravity CLI · Sign-in without a browser

Gemini CLI VPS Which Google CLI to install, and how to sign in on a server

Things changed in 2026. Gemini CLI is now kept for Gemini Code Assist and paid API keys, with no free tier. Personal Free, Pro and Ultra accounts moved to Antigravity CLI, the agy command, on June 18, 2026. This page shows which one fits your account, what Google documents for signing in on a server that has no browser, and the Linux VPS plans to run them on, from $14.99₹1,389.27 a month for 4 GB.

Gemini CLI or Antigravity CLI: which one do you need?

Google now has two terminal agents for two kinds of account. Find your account in the first row, then follow that column down.

From the Gemini CLI repository and the Antigravity documentation, as of November 2026.
Gemini CLI (gemini)Antigravity CLI (agy)
Who it is for nowA Gemini Code Assist Standard or Enterprise licence, or a paid Gemini API or Vertex AI key. No free tier.A personal Google account on the Free, Pro or Ultra plan. Google Workspace plans do not include Antigravity plans.
Install commandnpm install -g @google/gemini-cli
Needs Node.js 20.0.0 or newer.
curl -fsSL https://antigravity.google/cli/install.sh | bash
Sign in on a server with no browserGoogle sign-in requires a web browser, so use an API key: export GEMINI_API_KEY="YOUR_API_KEY", or the Vertex AI variables.Headless runs use cached credentials or a Gemini API key. Over SSH, run export $(dbus-launch) first so the keyring works.
Remote controlSSH and tmux.agy remote-control start --name "my-workstation", then connect from a browser with the same Google account.
Used Gemini CLI for free before? If you used to run gemini with a personal Google login, free or with Google AI Pro or Ultra, that access moved to Antigravity CLI on June 18, 2026. Install agy and sign in there. Gemini CLI is the right choice only if you have a Code Assist licence or pay for an API or Vertex AI key.

Set up Gemini CLI or Antigravity CLI on a Linux server

Two steps are the same for both tools. After that, follow path A or path B. The Google commands are copied from Google's own documentation.

First, for both tools

  1. 1

    Get a server with Ubuntu 24.04

    You need a Linux server with root access. If you do not have one yet, the plans are further down this page. Choose Ubuntu 24.04 on the order form. The IP address and root password arrive by email once the server is built.

  2. 2

    Connect by SSH, add a normal user and install tmux

    Log in as root once, create a user for daily work and switch to it. tmux keeps your session open on the server after you disconnect. Use your own address in place of YOUR_SERVER_IP.

    ssh root@YOUR_SERVER_IP
    adduser dev
    usermod -aG sudo dev
    su - dev
    sudo apt update && sudo apt install -y tmux git

Path A: Gemini CLI (paid Gemini API key or Vertex AI)

  1. 1

    Install Node.js 20 or newer

    Gemini CLI is installed with npm and needs Node.js 20.0.0 or newer. Follow the Linux instructions on nodejs.org, then check the version. The number shown should start with 20 or higher.

    node --version
  2. 2

    Install Gemini CLI

    This is the install command from the Gemini CLI documentation.

    npm install -g @google/gemini-cli

    If npm stops with a permission error, Node.js was installed system-wide. Install Node.js for your own user with a version manager, as nodejs.org describes, and run the command again.

  3. 3

    Sign in with an API key

    The Google sign-in needs a web browser, which the server does not have. Set your paid Gemini API key as an environment variable instead, with your real key in place of YOUR_API_KEY. Vertex AI users set the Vertex AI variables from Google's authentication guide. A Code Assist licence signs in through the Google sign-in, which needs a browser, so on a server use an API key or the Vertex AI variables.

    export GEMINI_API_KEY="YOUR_API_KEY"

    The variable lasts until you log out. Put the same line in ~/.bashrc to keep it for every session.

  4. 4

    Start Gemini CLI inside tmux

    Open a tmux session, go to your project and start the agent. Press Ctrl+B then D to leave it running, and tmux attach -t gemini to come back.

    tmux new -s gemini
    git clone https://github.com/you/your-project.git
    cd your-project
    gemini

Path B: Antigravity CLI (personal Free, Pro or Ultra account)

  1. 1

    Install Antigravity CLI

    One line from Google's getting started guide. It installs the agy command.

    curl -fsSL https://antigravity.google/cli/install.sh | bash
  2. 2

    Prepare the keyring, then sign in

    Antigravity CLI stores your sign-in in the system keyring. Over SSH the keyring needs the export line below, so run it before you start the tool. Then start agy. Google documents two routes for headless use: credentials cached by an earlier sign-in, or a Gemini API key. It does not describe a first sign-in on a machine with no browser, so if the Google sign-in cannot finish on your server, use a Gemini API key.

    tmux new -s agy
    sudo apt install -y dbus-x11
    export $(dbus-launch)
    agy

    The dbus-launch command comes from the dbus-x11 package, which a fresh server image may not have, so the second line installs it. Once a sign-in is cached, later headless runs reuse it.

  3. 3

    Turn on remote control

    This lets you reach the agent on the server from a browser signed in to the same Google account. The name is only a label, so change it to anything you like.

    agy remote-control start --name "my-workstation"

VPS plans for Gemini CLI and Antigravity CLI

Google recommends 4 GB of RAM or more for casual Gemini CLI use, so the 4 GB plan is the place to start. Billed monthly, with no long contract.

Compute Region

Choose the deployment location
Currently out of stock

Gemini CLI VPS plans · Miami

Miami, Florida · AMD EPYC KVM VPS with full root access and a choice of 15 Linux builds
Plan vCPU Memory Storage Bandwidth Setup Price
4GB Plan Recommended 4 vCPU 4 GB 80 GB SSD 5 TB Instant $14.99/mo₹1,389.27/mo Buy Now
6GB Plan 4 vCPU 6 GB 100 GB SSD 5 TB Instant $19.99/mo₹1,852.67/mo Buy Now
8GB Plan 6 vCPU 8 GB 100 GB SSD 5 TB Instant $29.99/mo₹2,779.47/mo Buy Now
16GB Plan 8 vCPU 16 GB 100 GB SSD 5 TB Instant $59.99/mo₹5,559.87/mo Buy Now
Choose Ubuntu 24.04 on the order form. Google recommends Ubuntu 20.04 or newer for Gemini CLI.

What you gain by running Google's CLI on a server

Both tools are terminal programs. A server lets them keep going when your own computer is off.

Jobs that run while you are away

Start the agent inside tmux, disconnect and go. A long task or a scheduled script keeps running on the server through the night.

One sign-in, done once

Set the API key or sign in to agy one time on the server. You do not repeat it on every laptop, tablet or phone you connect from.

Reach it from a browser

Antigravity CLI has a remote-control mode you open in a browser with the same Google account. For Gemini CLI, any SSH client gets you back into the session.

Away from your personal files

An agent on a VPS sees the repository and tools you copied there. Your own documents, browser profiles and saved passwords are on a different machine.

Reserved memory

The RAM in your plan belongs to your server alone. The agent, Node.js and your builds are not squeezed by other customers.

Easy to wipe and rebuild

Reinstall the operating system from the client area when you want a clean start, and reboot without opening a ticket.

Which plan for which kind of use

The Gemini CLI figures (4 GB or more for casual use, 16 GB or more for power use, Node.js 20.0.0 or newer) are Google's recommendations as of November 2026. The other rows are VPSLake suggestions.
What you runPlan to pickWhy
Gemini CLI, casual use: one session on a normal project4 GBGoogle recommends 4 GB or more for casual use.
Antigravity CLI, one session4 GBOur own suggestion, in line with the Gemini CLI figure.
Either tool with builds, Docker containers or two sessions at once8 GBOur suggestion. Builds and containers need memory on top of the agent.
Gemini CLI, power use16 GBGoogle recommends 16 GB or more for power use.
Bots, cron jobs and small scripts with no coding agent1 GB or 2 GBFine for light programs. Below what Google recommends for Gemini CLI.

What changed with Gemini CLI in 2026

For a while, anyone with a Google account could install Gemini CLI, sign in and use it. That is no longer the case. The project now describes gemini as maintained for enterprise Gemini Code Assist workflows, and it states that there is no free tier. Access for free accounts and for Google AI Pro and Ultra subscribers moved to Antigravity CLI on June 18, 2026. Many older guides for running Gemini CLI on a VPS were written before that date, which is why their login steps may no longer match what you see.

So the first question is not which server to buy. It is which tool your account can use. Personal account: Antigravity CLI. Code Assist licence, paid API key or Vertex AI: Gemini CLI.

Why the login is the hard part on a server

On a laptop, a Google sign-in simply opens in the browser. A VPS has no screen and no browser. For Gemini CLI the answer is an API key in the GEMINI_API_KEY variable, or the Vertex AI variables. For Antigravity CLI, headless runs use cached credentials or a Gemini API key, and over SSH the keyring that holds those credentials needs this line first:

export $(dbus-launch)

That line comes from the Antigravity CLI troubleshooting guide. It is easy to miss.

What a Gemini CLI VPS is, and who does not need one

It is a normal Linux server in a datacenter where you install Gemini CLI or Antigravity CLI and keep your projects. You connect by SSH, start the agent and leave it running. Every VPSLake plan is a private KVM virtual machine with reserved memory, SSD storage, full root access and its own IPv4 address.

You do not need this if you only use the tool for a few minutes at a time at your desk. Your laptop is enough. A server earns its cost when tasks run long, when scripts call the agent on a schedule, or when you want to keep an agent away from your personal files.

What we set up and what we do not

You get a clean server with the operating system you chose, a root password and a fixed IP. Neither CLI is preinstalled and there is no one-click installer. That works in your favour: you run Google's installer and get the current version. We do not sell Google AI plans, Code Assist licences or API credit. The server has no GPU, so the model runs at Google and the CLI calls it over the internet. This VPS cannot run a large model locally. Support for the server itself, such as SSH access, a reboot or a reinstall, is by ticket, WhatsApp and Telegram seven days a week.

The Antigravity desktop app and other agents

Antigravity also exists as a desktop app, which needs a graphical desktop and not just a terminal. For that, see Ubuntu RDP, an Ubuntu desktop you open with Remote Desktop. If you are comparing terminal agents, the same kind of server runs a Claude Code VPS, a Codex VPS or an OpenCode VPS, and each of those pages has its own sign-in steps.

Where the servers are

Choose the location in the plans table: Miami, Florida, Frankfurt, Germany or Amsterdam, The Netherlands. The agent works on the server and only text reaches your screen, so the location matters less than you might expect. Pick the one nearest to you if you type in the terminal a lot. A move to a larger plan later keeps your files and needs one reboot.

Gemini, Gemini CLI and Antigravity are products of Google. VPSLake is an independent hosting provider and is not affiliated with Google.

Pay the way you already pay

  • USDT, BTC & 20+ coinsvia Cryptomus
  • UPI / PhonePe / PaytmINR via Razorpay
  • Visa / Mastercardvia Paddle
  • Net banking & walletsIndia

Frequently Asked Questions

No. As of November 2026 the Gemini CLI project says there is no free tier. It is maintained for Gemini Code Assist workflows and also works with a paid Gemini API or Vertex AI key. Free, Google AI Pro and Ultra access moved to Antigravity CLI, the agy command, on June 18, 2026.
Use an API key. The Google sign-in in Gemini CLI requires a web browser, and a server does not have one. Set the key in the terminal with export GEMINI_API_KEY="YOUR_API_KEY" and then start gemini. Vertex AI users set the Vertex AI variables from Google's authentication guide instead.
It depends on your account. With a personal Google account on the Free, Pro or Ultra plan, install Antigravity CLI. With a Gemini Code Assist Standard or Enterprise licence, or a paid Gemini API or Vertex AI key, install Gemini CLI. The comparison table at the top of this page puts the two side by side.
Antigravity CLI keeps its sign-in in the system keyring, and over SSH the keyring needs one extra command first: export $(dbus-launch). After you have signed in once, headless runs use the cached credentials. Google's docs say a Gemini API key works for headless runs too.
Antigravity CLI is for personal Google accounts on the Free, Pro or Ultra plan. Google states that Google Workspace plans do not include Antigravity plans. Business users are the group Gemini CLI is now aimed at, through Gemini Code Assist or a paid API key.
Google recommends 4 GB of RAM or more for casual use and 16 GB or more for power use, together with Node.js 20 or newer. So the 4 GB plan is where we suggest you start. For Antigravity CLI we suggest the same 4 GB starting point, which is our own advice and not a Google figure.
No. The server arrives clean, with Ubuntu or Debian and root access, and you run Google's own install command. That way you get the current version. The VPS also does not include a Google plan, a Code Assist licence or API credit. Those come from your Google account.
With Antigravity CLI, yes. Run agy remote-control start --name "my-workstation" on the server and connect from a browser signed in to the same Google account. For Gemini CLI, plan on SSH and tmux: log in from any device and attach to the session you left running.
Yes. Change the prices to INR with the currency button in the menu and pay by UPI, PhonePe or net banking. Crypto and cards are accepted as well. Billing is monthly with no long contract, and the servers are in the USA and Europe.

Run Gemini CLI or Antigravity CLI on a server that stays on

Pick a 4 GB VPS, install the CLI that matches your Google account and sign in once. Billed monthly, cancel when you like.

Related solutions