How to set up an AI provider in rConfig V8
How to set up an AI provider in rConfig V8
Section titled “How to set up an AI provider in rConfig V8”rConfig doesn’t ship its own AI model. You bring one: a cloud API such as Anthropic or OpenAI, or a model you run yourself with Ollama. This page shows how to connect each provider type, test it, and make it the active provider that every AI capability uses.
If this is your first time setting up the AI Center, start with Getting Started. It covers the steps before and after this one.
Prerequisites
Section titled “Prerequisites”- The
aicenter.updatepermission. The AI Settings tab is shown only to users whose role has it, and saving a provider needs it. Admins have it. From V8.4.2 the tab follows the permission, not the role name, so a custom role withaicenter.updatesees it too. AI_CENTER_ENABLED=trueon the server (see below).- Credentials for your provider: an API key for a cloud provider, or the URL of a model server the rConfig server can reach.
Enable the AI Center feature flag
Section titled “Enable the AI Center feature flag”AI_CENTER_ENABLED isn’t in a default .env file, and it defaults to false. Add it to /var/www/html/rconfig8/.env, then clear rConfig’s caches:
AI_CENTER_ENABLED=truecd /var/www/html/rconfig8php artisan rconfig:clear-allWhich provider should you choose?
Section titled “Which provider should you choose?”| If you need… | Choose | Why |
|---|---|---|
| The best answers with least setup | Anthropic or OpenAI | Paste an API key and go. Strong reasoning on long configs. |
| To stay inside your Google Cloud estate | Google Gemini | Key from Google AI Studio. |
| To stay inside an Azure tenancy with your own deployment | Azure OpenAI | Uses your Azure resource and data-processing agreement. |
| Another hosted model vendor | Mistral, xAI (Grok), DeepSeek, Groq, Cohere or OpenRouter | From V8.4.2. Paste the vendor’s API key and pick a model. OpenRouter reaches many vendors’ models with one key. |
| Configs that never leave your network | Ollama | Model runs on hardware you control. No API key, no internet needed for inference. |
| A self-hosted model server or gateway (vLLM, LM Studio, LiteLLM) | OpenAI-Compatible | Any server that speaks the OpenAI chat API. |
Step-by-step walkthrough
Section titled “Step-by-step walkthrough”1. Open AI Settings
Section titled “1. Open AI Settings”- Click AI Center in the left sidebar.
- Select the AI Settings tab.
If no provider exists yet, you’ll see No provider configured yet. with an Add Provider button.
2. Add the provider
Section titled “2. Add the provider”Click Add Provider (or press Alt+N).
From V8.4.2, the form is built from a model catalogue that ships with each rConfig release. The catalogue decides which providers are listed, which fields each one needs, which models are offered, and which model is recommended. New providers and models arrive with rConfig upgrades, so the form on your server is always the reference for what your release supports.
| Field | What to enter |
|---|---|
| Display name | A name you’ll recognise on the provider card, such as “Production Anthropic” or “On-prem Ollama”. Must be unique. |
| Provider | Every provider your release supports. Changing it clears the fields you’ve entered. |
| API Key | Required for hosted providers, optional for OpenAI-Compatible, not shown for Ollama. Stored encrypted and never shown again; the card only says Configured. |
| Endpoint | Azure OpenAI only: your resource’s endpoint. |
| Base URL | Ollama and OpenAI-Compatible only: the address of your model server, as seen from the rConfig server. |
| Model | For hosted providers, a list of current models with the recommended one marked; pick Custom model ID… to type any other. A text box for Ollama, OpenAI-Compatible and Azure (Deployment name). Leave it empty to use the provider’s default. |
Each field’s help text in the form says where to find the value. If a saved provider uses a model its vendor has retired, rConfig flags it so you can pick a current one.
Then follow the tab for your provider type:
Anthropic, OpenAI, Google Gemini and the other hosted vendors in the list (from V8.4.2 these include Mistral, xAI, DeepSeek, Groq, Cohere and OpenRouter) all work the same way:
- Create an API key in the vendor’s console, for example the Anthropic Console, the OpenAI API keys page or Google AI Studio.
- In rConfig, set Provider to the vendor and paste the key into API Key.
- Pick a model. The recommended one is a good starting point for config work; a larger model gives better answers on long, complex configs at a higher cost.
OpenRouter reaches many vendors’ models with one key, and its model IDs take the form vendor/model. All hosted providers are cloud services: configs go to the vendor under its data terms.
- In the Azure portal, open your Azure OpenAI resource. On Keys and Endpoint, note the Endpoint and one of the Keys. In Azure AI Foundry or Azure OpenAI Studio, note the deployment name of the model you want to use.
- In rConfig, set Provider to Azure OpenAI and paste the key into API Key.
- Paste the endpoint into Endpoint: the resource root only, for example
https://your-resource.openai.azure.com. rConfig adds/openai/v1itself, and trims a longer URL pasted from the portal back to the root. - Enter your deployment name in Deployment name: the name you gave the deployment, not the model ID.
From V8.4.2 the endpoint is set in the form. Before V8.4.2 it came from AZURE_OPENAI_URL in .env; Azure providers saved without an endpoint keep reading it from there, so existing setups carry on working. Edit the provider and add the endpoint to move it into the form.
- On the model server, install Ollama and pull the model you want to use with
ollama pull <model>. - By default Ollama listens on
127.0.0.1only. If it runs on a different host from rConfig, start it withOLLAMA_HOST=0.0.0.0so rConfig can reach it, and allow TCP port 11434 through the firewall. - In rConfig, set Provider to Ollama (local) and set Base URL to the server address, for example
http://10.10.20.15:11434. Usehttp://localhost:11434only if Ollama runs on the rConfig server itself. - Enter the model name exactly as
ollama listshows it, including the tag. Before judging answers, check Ollama’s context window: see Sizing a local model.
Use this for vLLM, LM Studio, LiteLLM, or any server that implements the OpenAI chat completions API.
- Set Provider to OpenAI-Compatible.
- Set Base URL to the server’s OpenAI-style base path, which usually ends in
/v1, for examplehttp://10.10.20.16:8000/v1. - Enter the model name exactly as the server lists it.
- If your server requires a key, paste it into API Key (optional, from V8.4.2). Leave it empty for servers that don’t need one.
Add Provider form for a cloud provider
Add Provider form for Ollama
Click Add Provider to save. Saving doesn’t test or activate the provider.
3. Test the connection
Section titled “3. Test the connection”Each saved provider appears as a card. Click Test on the card. rConfig sends the prompt “Reply with exactly one word: ok” using the saved credentials and model, and shows a toast:
- Connection successful. with the model’s reply and the round-trip time, for example
Response: ok (840ms). - Connection failed. with the reason, such as “Authentication with the AI provider failed. The configured API key appears to be invalid or missing.” See Troubleshooting for what each message means.
4. Activate it
Section titled “4. Activate it”After a successful test of an inactive provider, the card says Connection works — Activate this provider to start using it. Click Activate. The card shows an Active badge.
Only one provider is active at a time. Activating one deactivates the others. Every capability, chat, and narration uses the active provider; there’s no per-capability choice.
Two saved providers, one active
5. Tune the model controls (optional)
Section titled “5. Tune the model controls (optional)”Below the provider cards, Model Controls applies to the active provider:
- Max Output Tokens: the longest a single answer can be, from 256 to 32768. Raise it if long answers get cut off. Leave it empty for the provider’s default.
- Temperature: from 0.0 to 1.0. Lower values give focused, repeatable answers, which suits config analysis. Leave it at the default unless you have a reason to change it.
Click Save Model Controls.
Switching, editing, and removing providers
Section titled “Switching, editing, and removing providers”- Switch providers: click Activate on another card. The change applies to the next request.
- Rotate a key: edit the card and paste the new key. Leave API Key empty to keep the stored key.
- Delete: deleting the active provider leaves rConfig with no active provider. Activate another one straight away, or AI features stop working.