Use Squiid with
Gemini CLI

Gemini CLI needs credentials for every service your project touches. Give it one instead: SQUIID_API_KEY in .env, and every service in the catalog behind it.

What Gemini CLI is

Gemini CLI is Google open source coding agent for the terminal. It works inside a project directory using Gemini models, reads and writes files, runs commands and supports extensions and tool servers. Like other terminal agents it inherits the environment of the shell it runs in, which makes a single gateway key the simplest way to give it access to real services.

The problem: every agent wants keys

The moment a coding agent stops writing a component and starts wiring up a product, it needs credentials. A database URL for Supabase. A deploy token for Vercel. An API key for Resend. Another for Twilio, another for Stripe, another for whichever model provider the feature calls. Each one is a signup, a dashboard, a billing relationship and a secret that has to exist somewhere Gemini CLI can reach.

What happens next is worse than a long .env file. People paste secrets into prompts to get better answers, and keys end up in chat transcripts, in screenshots posted for help, and in committed config. Because each key belongs to a different vendor, rotating one after a leak means finding it, regenerating it and updating every place it was copied to.

The fix: one key, one convention

Squiid holds the upstream credentials for every service in the catalog. Your project gets one variable:

SQUIID_API_KEY=sq_live_xxxxxxxxxxxxxxxxxxxx

Then every call your app or your agent makes goes to the gateway with that one key:

curl https://api.squiid.io/v1/supabase/... \
  -H "Authorization: Bearer $SQUIID_API_KEY"

Official SDKs take a base URL, so most integrations are a one line change rather than a rewrite:

import { createClient } from '@supabase/supabase-js';

const db = createClient(
  'https://api.squiid.io/v1/supabase',
  process.env.SQUIID_API_KEY,
);

That is the gateway convention: https://api.squiid.io/v1/<service>/ with Authorization: Bearer $SQUIID_API_KEY. It is the same for every service, which is why an agent only has to learn it once. Full detail is on the gateway convention page.

Setting it up in Gemini CLI

Agent tooling changes quickly. Where a file path or a settings panel is named above, confirm it against the agent own current documentation before relying on it.

What it costs

Usage is paid from prepaid credits at par: $1 of credit is $1 at the provider, no markup. The free plan is $0/month with a 15% fee on credit top-ups and a $50 minimum top-up. Solo is $19.97/month and its top-up fee starts at 8%, falling to 6.5%, 5% and 3.5% as trailing 30-day API spend passes $100, $500 and $2,000. Team is $29.97 per seat per month for seats 1-5, $24.97 for seats 6-20 and $19.97 above that, with the same ladder one point lower. Custom pricing is 3% or less against a commitment. Subscription-priced services such as Supabase Pro at $25 a month pass through at the provider price with no fee. Credits pause at zero rather than overdrawing, with alerts at 75%, 90% and 100%. See spend controls.

Services agents ask for most

The eight services that come up first in almost every Gemini CLI project, all reachable with the same key.

Set it up in 3 steps

STEP 1

Add the services in Squiid

Create a Squiid account, top up credits, and click add on the services this project needs. Squiid provisions them upstream and keeps the provider credentials.

STEP 2

One line in .env

Put SQUIID_API_KEY=sq_live_… in .env and remove every provider key you were carrying. That is the whole secret surface of the project.

STEP 3

Tell Gemini CLI the convention

Write the base URL and the header into your project rules file so Gemini CLI generates correct calls without being reminded.

Questions people ask

How do I connect Gemini CLI to my database and email service?

Add them on Squiid, put SQUIID_API_KEY in your project .env, and document the gateway convention in GEMINI.md. The agent then reaches Supabase, Resend or any of the other 106 services through one credential.

Where does Gemini CLI read configuration from?

From .gemini/settings.json in the project and a user level file in your home directory, with project context in GEMINI.md. Environment variable handling has changed across versions, so confirm the current behaviour in Google documentation.

Can I use Gemini models in my app through Squiid as well?

Yes. Google Gemini is in the Squiid catalogue as an API service. Point your client at https://api.squiid.io/v1/google-gemini/ style paths and bill inference from the same credits as your database and hosting.

Is the Gemini CLI subscription separate from Squiid?

Yes. Gemini CLI usage bills under your Google account. Squiid bills for the services your application calls at runtime, from prepaid credits at provider prices plus your plan fee.

Give Gemini CLI one key.
Not twelve.

One account, one API key, one bill and one dashboard for every service in the catalog your project needs.