Configure LLM Providers
Pro+Agent Available on the Pro+Agent tier.
The Inklings agent is model-agnostic. You bring your own key (BYOK) or connect through OpenRouter or a local Ollama instance. This guide walks through each path.
Open agent settings
Section titled “Open agent settings”Go to Settings → Agent to see the provider configuration. On first open without a prior configuration, the guided setup flow presents two starting paths: Local Model (Free) and a cloud provider option. Choose the path that fits your setup.
If you’ve already configured a provider, the settings form shows your current provider, model, and API key status.
Configure a cloud provider (Anthropic, OpenAI, xAI)
Section titled “Configure a cloud provider (Anthropic, OpenAI, xAI)”- Select Anthropic from the provider dropdown.
- Click Configure next to the API Key field.
- Enter your Anthropic API key.
- Click Save. The key is validated against Anthropic’s API before being stored.
- Select a model from the model dropdown (default:
claude-sonnet-4-6).
Your key is stored in the OS keychain — never in the settings file. The settings file records only a boolean flag indicating that a key is configured.
- Select OpenAI from the provider dropdown.
- Click Configure next to the API Key field.
- Enter your OpenAI API key.
- Click Save. The key is validated before storage.
- Select a model (e.g.,
gpt-4o).
- Select xAI from the provider dropdown.
- Click Configure and enter your xAI API key.
- Click Save.
- Select a model from the available options.
Connect via OpenRouter
Section titled “Connect via OpenRouter”OpenRouter provides access to 100+ models through a single OAuth connection — no manual key entry required.
- Select OpenRouter from the provider dropdown.
- Click Connect via OpenRouter.
- Your system browser opens to an OpenRouter authorization page. Sign in and approve access.
- The browser redirects back to Inklings automatically. The settings panel shows your connection as active.
To cancel a pending connection, click Cancel before completing authorization in the browser. This clears the pending state without storing any credentials.
Use a local Ollama model
Section titled “Use a local Ollama model”Ollama runs models entirely on your machine — no cloud, no API key, no usage fees.
- Install Ollama from ollama.com if you haven’t already.
- Start Ollama and confirm it is running.
- In Inklings, select Ollama (Local) from the provider dropdown.
- The status section shows a green dot and “Running (vX.Y.Z)” when Ollama is detected on the default endpoint (
http://localhost:11434). - The model picker shows recommended models filtered by your hardware tier. Models with an “Installed” badge are ready to use. Models without one show a Download button.
- Click Download on any model to start a streaming download. A progress bar shows download percentage. When complete, the model automatically becomes the active selection.
Custom Ollama endpoint
Section titled “Custom Ollama endpoint”If Ollama is running on a different machine or port:
- Click Advanced in the Ollama settings section.
- Update the Endpoint field with your custom URL (e.g.,
http://192.168.1.100:11434). - Tab out of the field — settings save automatically on blur.
- Click Test Connection to verify the custom endpoint is reachable.
Manage your API key
Section titled “Manage your API key”| Action | Steps |
|---|---|
| View key status | Settings → Agent — the key row shows “Configured” or “Not configured” |
| Replace a key | Click Configure, enter the new key, click Save |
| Remove a key | Click Remove (trash icon) on the key row, confirm if prompted |
After removing a key, api_key_configured returns to false in settings and the agent falls back to the stub provider. Sending a message shows “Error: LLM provider not configured.”
Key validation errors
Section titled “Key validation errors”If key validation fails, the key is not stored and an error message explains why:
| Error | Meaning |
|---|---|
| Invalid API key | The key was rejected by the provider. Check for typos. |
| Rate limited by provider | The provider is rate-limiting validation attempts. Wait and retry. |
| Network error: connection refused | The device is offline or the provider endpoint is unreachable. |
Switch providers and models
Section titled “Switch providers and models”Changing the provider dropdown immediately updates the model selector to show that provider’s models. Changing the model updates only agent.model — the provider and API key are unaffected.
Settings persist across app restarts. Provider, model, and scheduled activity interval are all written to disk atomically when saved.
See Also
Section titled “See Also”- Getting Started with Agent — Start the agent after configuring a provider
- Agent Conversation — Send your first message
- Settings Reference — Full settings reference including agent configuration
- Advanced Agent Features — Scheduled activity interval configuration
Was this page helpful?
Thanks for your feedback!