TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/manusapis/Agix/llms.txt
Use this file to discover all available pages before exploring further.
custom provider ID exists for situations where none of the three managed providers fits your needs. If you run a self-hosted model, use Azure OpenAI, or have any other service that speaks the OpenAI /chat/completions format, you can point Agix directly at it by supplying a baseUrl in the sidebar. No changes to the source code are needed. Under the hood, custom maps to the same OpenAIProvider class as openai and openrouter, so the request and response contract is identical.
How the factory routes custom configs
ThecreateProvider() factory maps the "custom" provider ID to OpenAIProvider:
<baseUrl>/chat/completions with an OpenAI-shaped body will work with the custom provider.
Default configuration
Thecustom entry in the default provider registry ships disabled and with empty strings for baseUrl and defaultModel, because these values are always site-specific:
enabled: false means the entry does not appear in the ProviderSelector dropdown until you configure and save it.
Setting up a custom endpoint in the sidebar
Open the Agix sidebar
In Excel, click Home → Agix. In Google Sheets, open the Agix add-on from the Extensions menu.
Select the Custom Endpoint provider
In the Provider dropdown, choose Custom Endpoint. If it is not visible, you may need to enable it by saving a config first (see the example below).
Enter your base URL
Paste the base URL of your server into the Base URL field, without a trailing
/chat/completions path — Agix appends that automatically.Enter your API key
If your endpoint requires authentication, enter the key or token in the API Key field. It will be sent as a
Bearer token in the Authorization header.Enter the model name
Type the model name your server expects in the Model field (e.g.
llama3, mistral, gpt-4).Example: connecting to a local Ollama server
Ollama exposes an OpenAI-compatible endpoint athttp://localhost:11434/v1. The corresponding AIProviderConfig looks like this:
http://localhost:11434/v1/chat/completions with the standard OpenAI body. Any model you have pulled with ollama pull <name> can be used as the defaultModel.
Other compatible endpoints
| Service | Example baseUrl | Notes |
|---|---|---|
| Ollama | http://localhost:11434/v1 | No API key required by default |
| Azure OpenAI | https://<resource>.openai.azure.com/openai/deployments/<deployment> | Use your Azure API key |
| llama.cpp server | http://localhost:8080/v1 | Start with --api-key to require auth |
| LM Studio | http://localhost:1234/v1 | Built-in OpenAI-compatible server |
Request parameters
Becausecustom uses OpenAIProvider, the same parameters apply as for the OpenAI provider:
The model name your endpoint expects, e.g.
llama3 or mistral.Full conversation history with
system, user, and assistant roles.Response randomness. Defaults to
0.7 when not specified.Maximum response tokens. Omitted from the request when not provided.