Skip to content

Set up Gemini CLI

Connect Gemini CLI to programmable.run: where the URL and access key go, and what to do next.

Before you start

Sign in, add an API and make an access key for Gemini CLI in Developers > API keys (the quickstart walks through it). Developers > API keys then shows these lines with your own URL and key in them, ready to copy. Below, https://programmable.run/mcp/YOUR_WORKSPACE and YOUR_ACCESS_KEY stand in for them.

Add it

Run this in your terminal:

gemini mcp add --transport http --header "Authorization: Bearer YOUR_ACCESS_KEY" programmable https://programmable.run/mcp/YOUR_WORKSPACE

Then start Gemini CLI (or type /mcp in a running one) and ask it something. The key ends up in your shell history; clear that line if others use this machine.

Check it works

Ask “Using programmable, which APIs can you call?”. The call shows in Developers > Logs. If Gemini CLI says 401 or can't connect, see Troubleshooting.

Get your URL