---
title: "How to give OpenClaw an identity"
description: "Give OpenClaw a delegated agent identity, dedicated inbox, and revocable signup access over remote Streamable HTTP MCP with Agent Registrar."
canonical: "https://agentregistrar.dev/topics/give-openclaw-an-identity"
last-updated: "2026-11-29"
---

# How to give OpenClaw an identity

Published: 2026-11-29

> Give OpenClaw a delegated agent identity, dedicated inbox, and revocable signup access over remote Streamable HTTP MCP with Agent Registrar.

To give OpenClaw an identity, register `https://agentregistrar.dev/mcp` as a remote Streamable HTTP MCP server with `openclaw mcp set`, then complete OAuth 2.1 consent via `openclaw mcp login agentregistrar`. The connection binds a delegated agent sub-identity and `@agents.agentregistrar.dev` inbox under your verified email address for third-party signups.

## Why an always-on OpenClaw agent needs a scoped identity

OpenClaw frequently runs as a persistent assistant on a local workstation or remote VPS, executing scheduled jobs and tool calls without someone watching every step. Handing that long-lived process your personal email password or a shared API key mixes its activity with your primary accounts and leaves no clean boundary if a prompt, skill, or external input behaves unexpectedly.

A dedicated sub-identity isolates OpenClaw under your verified email address while keeping your main credentials out of the agent runtime. When OpenClaw encounters a service supporting the [Agent Identity Protocol](https://github.com/agentregistrar/spec/blob/v2.3.1/agent-identity-protocol.md), it can call `identity_signup` to register for supported APIs, poll confirmation and verification codes with `inbox_read`, accept hash-pinned terms of service with an emailed receipt sent directly to you, and re-authenticate later with `identity_login`. It can also log separately completed registrations with `identity_record_signup`.

Because Agent Registrar never stores provider API keys or sits in the provider's request path after signup, credentials returned by a service stay on your OpenClaw host. If you ever need to cut off the agent, you can hit the per-agent kill switch to revoke that specific identity without disrupting your other clients or tools.

## Connect OpenClaw to Agent Registrar

Register Agent Registrar as a remote Streamable HTTP MCP server and launch the OAuth 2.1 login flow from your terminal:

```
openclaw mcp set agentregistrar '{"url":"https://agentregistrar.dev/mcp","transport":"streamable-http","auth":"oauth"}'
openclaw mcp login agentregistrar
```

Using `streamable-http` connects OpenClaw directly to the hosted MCP endpoint over HTTPS instead of spawning a local stdio wrapper process. Setting `auth` to `oauth` tells OpenClaw to manage short-lived access tokens separately rather than placing static secrets inside your configuration file.

### Resulting openclaw.json configuration

Running `openclaw mcp set` writes the server entry under `mcp.servers.agentregistrar` in `openclaw.json`:

```
{
  "mcp": {
    "servers": {
      "agentregistrar": {
        "url": "https://agentregistrar.dev/mcp",
        "transport": "streamable-http",
        "auth": "oauth"
      }
    }
  }
}
```

## Headless servers and verification

When you run `openclaw mcp login agentregistrar`, OpenClaw starts an OAuth 2.1 PKCE flow and opens the Agent Registrar OAuth consent page. In that consent screen, you sign in with your verified email account and choose or create the specific sub-identity that OpenClaw will represent. On a desktop workstation, a local browser callback completes the exchange automatically.

### Completing login on a headless VPS

On a headless server or SSH session without a local browser callback, open the printed OAuth URL on your laptop, approve consent, copy the authorization code shown after approval, and pass it with `--code`:

```
openclaw mcp login agentregistrar --code <authorization-code>
```

After logging in, run `openclaw mcp doctor --probe` to verify that the remote connection is healthy and that OpenClaw discovers all five tools: `identity_whoami`, `identity_signup`, `identity_login`, `identity_record_signup`, and `inbox_read`. Then ask OpenClaw to call `identity_whoami` so you can confirm its bound identity and `@agents.agentregistrar.dev` email address before running automated tasks.

## Limits and next steps

Before delegating signup access to an always-on agent, review the [trust and limits documentation](https://docs.agentregistrar.dev/start/trust-and-limits/). Agent Registrar verifies your email address rather than running identity-document or background checks, never stores provider API keys or sits in the provider's request path, and supports automated signup on any service supporting the Agent Identity Protocol. Revoking OpenClaw's sub-identity stops future signed assertions and cuts off `inbox_read` access, but it does not delete existing accounts or credentials already created at third-party providers.

[Create an account](https://agentregistrar.dev/login) to give OpenClaw its own identity.

## Related topics

- [How do I give my agent an identity?](https://agentregistrar.dev/topics/how-do-i-give-my-agent-an-identity)
- [How AI agents create accounts on websites](https://agentregistrar.dev/topics/ai-agent-create-account)
- [Login with agent: how AI agents sign in safely](https://agentregistrar.dev/topics/login-with-agent)
- [How to give Hermes an identity](https://agentregistrar.dev/topics/give-hermes-an-identity)
- [How to give Claude an identity](https://agentregistrar.dev/topics/give-claude-an-identity)
