Skip to main content
GridOS is bring-your-own-key — it does not bundle any API credentials. Before the AI agent can edit your workbook you must connect at least one of the four supported providers. You can add as many as you like; the model picker in the chat composer lists every model whose provider has a valid key.

Which provider should I start with?

Short answer: Gemini, unless you’re building tiny single-turn edits. GridOS’s agent prompt plus a grid snapshot is typically 3,000–5,000 tokens of input, and multi-intent builds (3-statement, DCF, full operating model) emit 4,000–8,000 tokens of structured JSON output in a single call. Your provider’s free-tier tokens-per-minute (TPM) budget has to fit that envelope or the request 413s.
ProviderFree-tier TPMFits a multi-intent 3-statement?Good for
Gemini Flash Lite~250,000✅ comfortablyFirst-time setup, daily use, multi-intent builds
Anthropic Claude Haikupaid only✅ (with credits)Strict JSON reliability on large models
Groq GPT-OSS 120B~8,000❌ 413s on multi-intentSingle-turn edits, chain mode (one step per call)
OpenRouter free Llamavaries per model⚠️ sometimesFallback when other providers are down
Start with Gemini Flash Lite from Google AI Studio. The free tier gives you ~30× the TPM headroom of Groq free, which is the difference between “builds a full financial model in one click” and “413s on every prompt.”
Groq is genuinely free with no credit card, but its free-tier TPM caps are tight. GPT-OSS 120B has an 8K TPM ceiling — which GridOS’s agent prompt alone can push up against. If you want to use Groq on the free tier, either enable chain mode (one rectangle per call) or upgrade to Dev Tier (~$5/month) for comfortable headroom.

The four supported providers

Google Gemini

Free tier at Google AI Studio — ~250K TPM on Flash Lite. No credit card required. Recommended default.

Anthropic Claude

$5 in starter credits at the Anthropic Console. Best JSON reliability on complex multi-section models; Haiku is cheap and fast.

Groq

Free tier at console.groq.com, no card required. Fastest inference (~1000 tps on some models) but tight TPM on free tier — pair with chain mode or upgrade to Dev Tier.

OpenRouter

Free models at openrouter.ai. Catalog includes Hermes 3 Llama 3.1 405B and Llama 3.3 70B (free). The openrouter/free meta-router auto-picks a working free model.

Two ways to configure keys

1

Open Settings

Click the gear icon in the GridOS menubar to open the Settings panel.
2

Paste your API key

Find the provider you want to configure, paste your key into the input field, and click Save.
3

Confirm the model picker updates

Close Settings. The model picker dropdown in the chat composer now lists every model from that provider. You’re ready to chat.
Keys saved through the settings panel are stored in data/api_keys.json, which is .gitignore-d. They persist across server restarts and never leave your machine.
Paste carefully. Trailing whitespace, newlines, or picking up a key from a URL fragment are the most common causes of 401 — API key rejected. If you hit that error and you’re sure the key is valid elsewhere, delete the Settings entry and re-paste a freshly copied key.

Option 2: .env file

Create a .env file in the repository root before starting the server:
GOOGLE_API_KEY=your_gemini_key
ANTHROPIC_API_KEY=your_claude_key
GROQ_API_KEY=your_groq_key
OPENROUTER_API_KEY=your_openrouter_key
The .env file acts as a fallback: GridOS reads it at startup for any provider that does not already have a key saved in data/api_keys.json. If a key exists in both places, the in-app value takes precedence.
You only need to provide keys for the providers you intend to use. Leave the rest blank or omit them entirely.

Using multiple providers at once

You can configure all four providers simultaneously. GridOS initialises a client for each key and makes them all available at the same time. Use the model picker in the chat composer to choose a specific model — or switch mid-session without restarting the server. A common setup: Gemini for the agent call (large TPM budget, reliable JSON) and Groq 20B as the router (fastest classifier, so routing adds negligible latency). GridOS picks the router model automatically from whichever fast small model has a key; you don’t configure this explicitly.

What happens when a key is invalid

If the provider rejects your API key, GridOS returns a 401 error and surfaces the message “The API key for this model was rejected.” Open Settings, update the key for that provider, and retry. Provider errors are isolated: a bad key for one provider does not block the others. If your Groq key is invalid but your Gemini key is valid, Gemini models continue to work normally. See the full error reference in Troubleshooting: common errors.