Custom OpenAI-compatible model endpoints
Use a model gateway, a fine-tuned model or another provider, as long as it speaks the OpenAI chat format.
Illustration of the app. Scout is an example bot.
To use a custom OpenAI-compatible endpoint in Bello Bot, the org owner adds a key with a base URL that starts with http or https, runs the key test, and picks the model for a bot. The URL passes the same network guard as connectors, so it cannot reach private or loopback addresses.
Step by step
- Make sure the endpoint speaks the OpenAI chat completions format over public https.
- As the org owner, add a custom key with its base URL in Settings.
- Run the key test, which calls the base URL plus /models.
- Pick the custom model for a bot.
- Add rules and a budget as for any provider.
What the key test sends
Custom endpoint (src/providers.rs, src/billing.rs)
base_url: https://models.example.com/v1
chat: POST <base_url>/chat/completions
test: GET <base_url>/models
auth: Authorization: Bearer <your key>
Policy snippet
Rules do not depend on the model or whose key it runs on. This starter set applies to every bot, whichever provider answers. Tool names come from each connector's MCP server. Confirm them in the activity log or with the policy test, then replay the rules before you save.
[
{ "name": "Never delete", "effect": "deny", "priority": 10, "tool_glob": "*__delete_*" },
{ "name": "Ask before writes", "effect": "ask", "priority": 40, "tool_glob": "*__update_*" },
{ "name": "Ask before creating", "effect": "ask", "priority": 40, "tool_glob": "*__create_*" }
]
Rules for custom URLs
- A custom OpenAI-compatible base URL must start with http(s) and goes through the same network guard as connectors, so it cannot reach private addresses.
- A custom endpoint is called at its base URL plus /chat/completions, the OpenAI chat format, and tested at its base URL plus /models.
- It covers connectors, their OAuth endpoints, per-bot MCP servers and custom OpenAI-compatible model URLs. The only switch that opens it is a server setting for local development; no request or org setting can turn it on.
How keys are handled
- Only the org owner can add, test or remove provider keys. A key is stored encrypted, and only its last four characters are ever shown back.
- A provider key must be 8 to 512 characters. Setting, testing and removing a key are each recorded in the org activity log.
- Fallback applies to Bello Bot's keys. A reply on your own key is not moved to another provider, so your traffic stays where you sent it.
Related reading
- BYOK multi-provider routing
- OpenAI and compatible APIs
- SSRF protection for AI agents
- Copyable policy templates
- Security controls, from the code
- AI agent governance glossary
Questions
Can I point Bello Bot at a model server on my office network?
No. Custom URLs go through the network guard, which blocks private and loopback addresses.
Does the endpoint need tool calling?
Bots that use tools need a model that supports tool calls in the chat format.
Can I use more than one custom endpoint?
An org has one key per provider, including one custom endpoint.
Keep reading
OpenAI and OpenAI-compatible models in Bello Bot
Run Bello Bot bots on OpenAI with your org's key, or point them at any OpenAI-compatible URL behind a network guard.
BYOK multi-provider routing worksheet
A copyable worksheet for running AI agents on your own OpenAI, Anthropic, Gemini and xAI keys: defaults, allow-lists, budgets and fallbacks.

SSRF protection for AI agents
SSRF protection stops AI agents and their tools from calling internal addresses such as cloud metadata.
OpenAI BYOK setup in Bello Bot
Run your bots on your own OpenAI account, with your own rate limits and invoices.
More integrations and recipes
DeepSeek and GLM in Bello Bot · GitHub PR triage with approval gates · Google Gemini in Bello Bot
Try Bello Bot with your team
Public beta. Bring your own model keys, invite your team, and approve what your bots do.