Gemini CLI
on Linux
Google's open-source AI agent for the terminal: open Bash scripts, official sources only
Gemini CLI brings Gemini models to your terminal: code, search, file and shell tools, with a generous free tier using a Google account or an API key.
Run this command on your server
$curl -fsSL https://infrawire.sh/i/gemini-cli | bash
- Tested on 10 distributions
- Official installer
- x86_64 and arm64
What the script does
- Node.js 24 LTS (official build from nodejs.org, SHA-256 verified) if missing or older than 20
- The official
@google/gemini-clipackage from npm, in~/.local(no global root install) - The
geminicommand on your PATH - Optional: your API key saved in
~/.gemini/.env(mode 600)
After installation
# Reload your shell $ source ~/.bashrc # Start Gemini CLI in a project $ cd ~/my-project && gemini # Or set an API key later $ echo 'GEMINI_API_KEY=...' >> ~/.gemini/.env
Options
Pass options after bash -s --, for example:
$ curl -fsSL https://infrawire.sh/i/gemini-cli | bash -s -- --api-key KEY--api-key KEY | Save a Gemini API key (from aistudio.google.com) |
--version preview | Channel or version: latest (default), preview, nightly or x.y.z |
--user NAME | Install for another Linux user (as root) |
--yes | Fully non-interactive |
Review before running
The script is plain Bash. Download it, read it, then run it:
$ curl -fsSL https://infrawire.sh/i/gemini-cli -o install.sh $ less install.sh $ bash install.sh
On Alpine, run apk add bash curl first.
Other apps
Every app comes with a tested installer, a step-by-step guide and the commands to get started.
OpenClaw
Open-source personal AI assistant
Your own AI assistant running 24/7 on your server. Chat with it from WhatsApp, Telegram, Discord, Slack and more, with the model of your choice.
infrawire.sh/i/openclaw
Installation guide
Hermes Agent
Self-improving AI agent by Nous Research
An autonomous agent that learns from its tasks, keeps memory across sessions and runs 24/7 on your server, reachable from Telegram, Discord, Slack and more.
infrawire.sh/i/hermes-agent
Installation guide
Claude Code
Anthropic's agentic coding tool for your terminal
Claude Code reads your codebase, edits files, runs commands and handles git workflows from the terminal. Ideal on a remote development server.
infrawire.sh/i/claude-code
Installation guide
OpenAI Codex
OpenAI's coding agent for your terminal
Codex CLI reads, edits and runs code in your project from the terminal, using your ChatGPT plan or an OpenAI API key.
infrawire.sh/i/codex
Installation guide
OpenCode
Open-source AI coding agent, any model
OpenCode is a terminal coding agent that works with Claude, GPT, Gemini, local models and 75+ providers. Bring your own keys or subscription.
infrawire.sh/i/opencode
Installation guide
n8n
Workflow automation with AI, self-hosted
Connect 400+ apps and build AI agents with a visual editor. Your own n8n with HTTPS, persistent data and webhooks ready to use.
infrawire.sh/i/n8n
Installation guide
Vaultwarden
Lightweight Bitwarden-compatible password manager
Host your own password vault and use it from the official Bitwarden apps and browser extensions. Light enough for the smallest VPS.
infrawire.sh/i/vaultwarden
Installation guide
Nextcloud
Your own cloud: files, calendar, contacts
Sync files across your devices, share them, and keep calendars and contacts on a server you control. Production setup with MariaDB, Redis and cron.
infrawire.sh/i/nextcloud
Installation guide
Need a server?
Linux VPS and dedicated servers, ready for these installers in minutes, with full root access.
See VPS plansFrequently asked questions
Everything you need to know before running an installer.
Yes. The scripts are free and open: you can read them at any time. Some apps may require their own account or subscription, for example an API key for your AI model.
The scripts are served over HTTPS and only download software from official sources. If you prefer, download the script first, read it, then run it: each app page shows how.
Ubuntu 22.04 and 24.04, Debian 12 and 13, Rocky Linux 9, AlmaLinux 9, Fedora, Arch Linux, openSUSE and Alpine, on x86_64 and arm64. On Alpine, install bash and curl first.
You need root or sudo to install system packages. Run the command with sudo and the app is installed for your own user, not for root.
It installs the missing prerequisites with your package manager, then the app itself, and adds its command to your shell's PATH. Everything is written to a log file in /tmp.
Yes, they work on any Linux server. If you need one, Infrawire offers Linux VPS and dedicated servers ready in minutes.