How to give Grokbot an identity
Published
You can give Grokbot and Grok CLI an accountable identity by connecting them to Agent Registrar's remote MCP server at https://agentregistrar.dev/mcp over Streamable HTTP and OAuth 2.1. Once you approve access in your browser, the server binds a dedicated agent sub-identity and @agents.agentregistrar.dev inbox under your verified human email address.
What giving Grokbot an identity lets it do
Both cloud-hosted Grokbot sessions and local Grok CLI runs can use the same brokered identity workflow across supporting APIs and developer tools that support the Agent Identity Protocol. Assigning each Grokbot instance its own sub-identity keeps separate workflows and machines isolated under your single verified human account. Instead of asking you to fill out forms or sharing your personal email inbox, Grokbot handles account setup through five MCP tools:
- Sign up and accept hash-pinned terms: calling
identity_signupretrieves the provider's discovery document, records your delegated acceptance of hash-pinned terms, sends an emailed copy of the accepted terms to you as the human owner, and passes a signed assertion to the service. - Record external registrations: when a signup happens through an adjacent flow,
identity_record_signuplogs the provider metadata against your agent record for a clean audit trail. - Poll verification emails and OTP codes: calling
inbox_readlets Grokbot read messages sent to its own@agents.agentregistrar.devaddress, including confirmation links and one-time codes. - Refresh day-two sessions: calling
identity_loginrequests a fresh signed login assertion when a supporting provider needs re-entry or token renewal. - Inspect and revoke independently: Grokbot checks its active sub-identity and email binding with
identity_whoami, while you can turn off that single bot anytime using the per-agent kill switch.
Connect Grokbot via web connectors
For cloud-hosted Grokbot, configure Agent Registrar as a custom remote connector rather than running a local stdio bridge:
- Open your connectors dashboard at
grok.com/connectors(or Plugins & MCPs / Connect Apps). - Add a new Remote HTTPS custom connector named
Agent Registrarwith the server URLhttps://agentregistrar.dev/mcp. - Click Connect to launch the interactive OAuth 2.1 authorization flow and select or create the Grokbot sub-identity you want to bind.
Cloud connectors require standards-compliant discovery because they connect directly from hosted infrastructure without local config files. Agent Registrar meets that requirement out of the box: https://agentregistrar.dev/mcp is publicly reachable over HTTPS, responds to unauthenticated probes with 401 and resource_metadata, advertises /.well-known/oauth-protected-resource and /.well-known/oauth-authorization-server, and supports Dynamic Client Registration (DCR) with PKCE S256.
Connect Grok CLI
On your local machine, register the same remote MCP endpoint in Grok CLI over Streamable HTTP:
grok mcp add --transport http agentregistrar https://agentregistrar.dev/mcpThat command writes the server entry to ~/.grok/config.toml:
[mcp_servers.agentregistrar]
url = "https://agentregistrar.dev/mcp"Never add a static Authorization header to ~/.grok/config.toml, because setting one bypasses OAuth metadata discovery and breaks token refresh. Leave authentication unset so Grok CLI discovers the protected resource metadata and negotiates tokens directly with Agent Registrar.
Authorize and verify in the TUI
Open /mcps inside the Grok CLI TUI to inspect the registered server. OAuth triggers automatically on first use and opens the OAuth page in your browser, where you pick your Grokbot sub-identity and approve scopes. Grok CLI caches the issued credentials locally for subsequent runs. Once connected, ask Grokbot to call identity_whoami to confirm its bound identity, assigned @agents.agentregistrar.dev inbox, and verified human binding before calling any provider.
Limits and next steps
Agent Registrar verifies your human email address rather than running identity-document or background checks, never stores provider API keys, and never sits in the provider's API request path. Brokered signup works automatically with any service supporting the Agent Identity Protocol, and revoking an agent stops future signed assertions and cuts off inbox access without deleting accounts already opened at third-party providers. Review the trust and limits guide for full boundaries.
Create an account to give Grokbot its own identity.
Related topics
- How do I give my agent an identity?
Give your AI agent its own identity under your account so it can sign up for services, accept terms, and get its own inbox without your passwords.
- How AI agents create accounts on websites
How AI agents create accounts on third-party websites without browser hacks or shared passwords, using brokered signup over MCP and a per-agent inbox.
- Login with agent: how AI agents sign in safely
How AI agents sign in to existing accounts and third-party apps without password sharing, using scoped OAuth tokens and brokered agent login.
- How to give Claude an identity
Give Claude Desktop, claude.ai, and Claude Code an accountable agent identity, dedicated inbox, and delegated terms acceptance over MCP.
- How to give OpenClaw an identity
Give OpenClaw a delegated agent identity, dedicated inbox, and revocable signup access over remote Streamable HTTP MCP with Agent Registrar.