Cloud Provider Setup
Nimi routes AI requests to local models by default. Cloud providers add access to remote models from services like Google Gemini, OpenAI, Anthropic, and others.
How It Works
When you run a generation command, Nimi decides where to route it:
- No flags: uses the default local model
--provider <name>: routes to the specified cloud provider for this single request--cloud: routes to the saved default cloud provider
One-Shot Provider Usage
The fastest way to use a cloud provider is the one-shot flag:
nimi run "Summarize quantum computing" --provider geminiIf the API key for that provider is not yet stored, Nimi prompts you for it once, saves it in the runtime config, and continues with the same command. No separate setup step needed.
Saving a Default Provider
If you use the same cloud provider regularly, save it as your default:
nimi provider set gemini --api-key-env NIMI_RUNTIME_CLOUD_GEMINI_API_KEY --default
export NIMI_RUNTIME_CLOUD_GEMINI_API_KEY=YOUR_KEYThen use the --cloud flag without specifying a provider name:
nimi run "Summarize quantum computing" --cloudThis always routes through your saved default provider.
Testing a Provider
Verify that a provider is correctly configured and reachable:
nimi provider test geminiThis sends a lightweight request to confirm connectivity and key validity.
Listing Providers
See all configured providers and their status:
nimi provider listFor machine-readable output:
nimi provider list --jsonConfiguration Precedence
When multiple configuration sources exist, Nimi resolves them in this order (highest priority first):
- CLI flags --
--provider geminion the command line - Environment variables -- e.g.,
NIMI_RUNTIME_CLOUD_GEMINI_API_KEY - Config file --
~/.nimi/config.json - Built-in defaults
CLI flags always win. If you pass --provider openai but your saved default is gemini, the request goes to OpenAI.
Available Providers
Nimi supports a wide range of cloud providers including OpenAI, Anthropic, Google Gemini, DeepSeek, Azure OpenAI, Mistral, Groq, xAI, and many more.
For the full list of supported providers, their capabilities (text, image, audio, video), and current status, see the Provider Matrix.
See Also
- User Quickstart -- first generation in five minutes
- CLI Command Reference -- all available commands
- Troubleshooting -- provider authentication errors