OpenAI BYOK setup in Bello Bot
Run your bots on your own OpenAI account, with your own rate limits and invoices.
Illustration of the app. Scout is an example bot.
To bring your own OpenAI key to Bello Bot, the org owner adds it in Settings, runs the key test, and picks OpenAI models per bot or as the org default. The key is stored encrypted and only its last four characters are shown. Replies on your key are never moved to another provider.
Step by step
- Create an API key in your OpenAI account.
- As the org owner, open Settings and add it under OpenAI.
- Run the key test, which lists OpenAI models.
- Pick an OpenAI model per bot, or set it as the org default.
- Optionally set an allow-list of models and a monthly budget.
What the key test sends
What the key test sends (src/billing.rs probe)
GET https://api.openai.com/v1/models
Authorization: Bearer <your key>
Pass: "Key works."
Fail: "HTTP <status>: <first 200 characters>" with the key redacted
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_*" }
]
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.
- The key test makes the cheapest call there is: it lists the provider's models. A failed test shows the HTTP status with the key redacted.
Picking and paying for models
- The model for a reply is picked in this order: the chat's override, then the bot's model, then the org default, then the app default (a Gemini model).
- Admins can set an allow-list of models. A pick outside it falls back to the org default, and the chat says so.
- 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.
- Usage is metered per call and counts toward your budget: at the provider's cost on your own key, and at cost plus a margin on Bello Bot's keys.
Related reading
- BYOK multi-provider routing
- OpenAI in Bello Bot
- BYOK AI platform, defined
- Copyable policy templates
- Security controls, from the code
- AI agent governance glossary
Questions
Who can add the key?
Only the org owner can add, test or remove provider keys.
Can anyone read the key back?
No. It is stored encrypted and only its last four characters are shown.
What happens if OpenAI fails?
A reply on your own key is not moved to another provider, so your traffic stays with OpenAI.
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.
BYOK AI platform
A BYOK AI platform runs on your own model provider keys.
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.
More integrations and recipes
Sentry incident triage with approvals · How to install Bello Bot in Slack · Slack bot with approvals
Try Bello Bot with your team
Public beta. Bring your own model keys, invite your team, and approve what your bots do.