When to use one
Use a custom provider when:- You run models locally with Ollama, LM Studio, or vLLM.
- You host models on your own cloud infrastructure.
- You have a private OpenAI- or Anthropic-compatible API.
- You need a provider that isn’t in the built-in catalog.
What a custom provider defines
A custom provider tells the gateway:- Which provider ID to use in requests, such as
my-ollama. - Which base URL to call, such as
https://my-ollama.internal. - Which API surface the endpoint supports.
- Which model IDs are available.
provider:model format as built-in providers:
URL requirements
| URL type | Scheme | Example |
|---|---|---|
| External | https:// only | https://api.example.com/v1 |
| ngrok internal | http:// or https:// | https://my-service.internal |
.internal endpoints. External URLs must use HTTPS.
Self-hosted on a local network
To reach models on your machine or private network, expose the service with an ngrok internal endpoint, then use that URL as the custom provider’sbaseUrl. Reaching internal endpoints may require a ngrok platform plan. See Credits.
For the full setup flow, see Use a model you run yourself.
Next steps
- Use a model you run yourself: Connect a local or private model
- Ollama guide: Connect Ollama
- Access key configurations: Attach keys and scope access
- Model catalog: Built-in providers and models