Quickstart: Grok Bot
Grok Bot connects the same way as Meta Muse: you ask for the connection in a chat, Grok Bot opens a Guardyx sign-in, and you pick the agent on a consent screen. There’s no API key, client ID, or config file to copy.
1. Create the agent in Guardyx
Section titled “1. Create the agent in Guardyx”- In the Guardyx portal, open My Agents and choose Connect new agent.
- Under Which app will you chat with?, pick Grok Bot (A Grok chat agent, connected from a chat).
- Choose the apps it should use and what it may do, then connect your accounts.
- On the last step, copy the chat prompt. Leave the page open. Its status turns to Connected once Grok Bot reaches Guardyx.
2. Connect from a Grok Bot chat
Section titled “2. Connect from a Grok Bot chat”-
Send the prompt from the portal in a Grok Bot chat. It reads like this:
Connect Grok Bot to the Guardyx MCP server at https://app.guardyx.ai/v1/mcp. Connect by signing in to Guardyx (OAuth), not with an API key.Keep the second sentence. If you only ask Grok Bot to connect, it reaches for an API key.
-
Grok Bot opens a Guardyx sign-in window. The window names the app Cursor cloud agent, not Grok Bot. That is expected: Grok Bot’s MCP connection runs on Cursor’s cloud agent. Sign in.
-
On the consent screen, choose the agent you created and select Allow. Only Grok Bot agents are listed. Grok Bot registered itself, so the screen also asks you to confirm that you started this connection. If someone sent you the link, cancel.
-
Back in the portal, the status changes to Connected.
3. Check that calls are governed
Section titled “3. Check that calls are governed”-
Ask Grok Bot for something that uses one of your connected apps, for example “What’s on my calendar today?”
If Grok Bot answers that no calendar is connected, it didn’t look in Guardyx. Your apps sit behind Guardyx’s search tool, so Grok Bot doesn’t see them on its own. Name Guardyx in the request: “Use Guardyx to check what’s on my calendar today.”
-
Open Runs in Guardyx. The call is there, with its inputs, the policy decision, and the outcome.
-
Ask for something your policy holds for review. Grok Bot waits while the request is in Approvals.
Grok Bot sees three Guardyx tools: guardyx_search_tools, guardyx_describe_tool, and
guardyx_execute_tool. That is expected. Grok Bot finds your toolbox’s tools by searching
through them.
If it doesn’t connect
Section titled “If it doesn’t connect”| What you see | What to do |
|---|---|
| Grok Bot asks for an API key | Don’t create one. Ask it to connect by signing in to Guardyx. |
| “redirect_uri is not allowed for registration without sign-in” | Grok Bot asked Guardyx for a sign-in callback Guardyx doesn’t recognize yet. Contact support with the time you tried. Don’t give Grok Bot an API key or a client secret instead. |
| The consent screen lists no agent | Create a Grok Bot agent first. The sign-in can’t be approved for any other kind of agent. |
| “This agent has no bound tools” | Bind a toolbox to the agent on its page in Guardyx. |
A tool shows not_connected |
Connect that app’s account from the agent page, then retry. |
Built your own bot on the xAI API?
Section titled “Built your own bot on the xAI API?”This guide is for Grok Bot. A bot you wrote yourself on the xAI API connects with a key instead:
- In Connect new agent, pick Custom MCP (Another app that supports custom
connections) and copy the API key (
gx_live_…) from the last step. - In your code, point the xAI remote MCP tool at
https://app.guardyx.ai/v1/mcpand send the key in itsheadersfield (extra_headersin the xai-sdk) asX-API-Key. Read the key from the environment, never from source control.
What happens next
Section titled “What happens next”Every AI action passes through Guardyx. Each tool call Grok Bot makes is checked against your policy, sensitive ones wait for your approval, and each request, decision, and outcome is recorded in a tamper-evident run trace.