xAI Grok BYOK setup in Bello Bot
Run Grok models in hosted bots on your own xAI account, and Grok locally on your Mac.
Illustration of the app. Scout is an example bot.
To bring your own xAI key to Bello Bot, the org owner adds it in Settings, runs the key test, and picks Grok models per bot or as the org default. The key is encrypted and only its last four characters are shown. Separately, the Mac app can run Grok locally in private chats.
Step by step
- Create an API key in your xAI account.
- As the org owner, add it in Settings under xAI.
- Run the key test, which lists xAI models.
- Pick a Grok model per bot, or set it as the org default.
- For local work, pick Grok (my Mac) in a private chat on the Mac app.
What the key test sends
What the key test sends (src/billing.rs probe)
GET https://api.x.ai/v1/models
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_*" }
]
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.
Hosted Grok and local Grok
- 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.
- The Mac app adds models that run on your Mac: Claude Haiku, Sonnet and Opus through Claude Code, Codex and Grok. Codex and Grok run sandboxed but can read files, and the picker says so.
- Local engines answer in private one-to-one chats only, never in shared rooms.
Coming from Grok
Bello Bot imports bots and chats from grok.com. A bookmarklet on grok.com posts them with a single-use token that expires after 15 minutes.
Related reading
- BYOK multi-provider routing
- Grok in Bello Bot
- Move teams from Grok Bot
- Copyable policy templates
- Security controls, from the code
- AI agent governance glossary
Questions
Can I import my Grok bots?
Yes. Bello Bot imports bots and chats from grok.com with a bookmarklet.
Is local Grok the same as my xAI key?
No. Local Grok runs on your Mac in private chats. Your xAI key runs Grok in hosted bots.
Who can add the key?
Only the org owner.
Keep reading

Grok with Bello Bot
Use Grok on your Mac from a Bello Bot private chat, or run bots on hosted xAI Grok models with your own key.
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.

Move teams from Grok Bot to Bello Bot
How to move a team from Grok Bot to Bello Bot.


Local Codex and Grok on macOS
Two more local engines on your Mac, clearly labelled, in private chats only.
More integrations and recipes
Anthropic Claude models in Bello Bot · Anthropic Claude BYOK setup · Claude Code with Bello Bot
Try Bello Bot with your team
Public beta. Bring your own model keys, invite your team, and approve what your bots do.