Using OpenClaw with Agent Redactor

Prerequisite: Install Agent Redactor from the Microsoft Store or via the PowerShell one-liner. You also need OpenClaw installed.
  1. Configure Agent Redactor (do this first)

    Before setting up OpenClaw, get the local redaction proxy running so OpenClaw can verify the connection. In the Profiles sidebar, select or create a profile. Set the Local URL to http://localhost:8080/ (or your preferred port), set Forward To to your real provider endpoint (e.g. https://openrouter.ai/api/v1), and paste your real API Key. The key is encrypted locally and never leaves your machine. Click Save All Settings and confirm the port shows as available.

    Agent Redactor API Proxy section with Profile Name OpenRouter Provider, Local URL localhost:8080, Forward To openrouter.ai/api/v1, API Key field, and Port 8080 is available
    Configure the profile. Local URL is where OpenClaw will connect, Forward To is the real API endpoint.
  2. Choose your redaction rules

    Decide what gets redacted before anything leaves your machine. You can enable the AI Powered Detection Model and tick the PII categories it should catch, add Regex Patterns and Keywords for deterministic matching, or use any combination of the three. The choice is yours. Regex and Keywords are also ideal for project-specific secrets the AI model might miss.

  3. Start OpenClaw onboarding

    Open your terminal and initiate the OpenClaw setup:

    openclaw onboard --install-daemon

    Read the security disclaimer and select Yes to continue, then choose QuickStart (recommended) as the setup mode.

  4. Connect OpenClaw to Agent Redactor

    When OpenClaw asks you to select a Model/auth provider, do not select OpenAI or Anthropic directly. Instead, route through Agent Redactor:

    • Model/auth provider: Select More…, then Custom Provider.
    • API Base URL: http://localhost:8080/ (must exactly match the Local URL in Agent Redactor)
    • API key: Choose Paste API key now, but leave it blank and hit Enter. Agent Redactor is already holding your real API key safely.
    • Endpoint compatibility: OpenAI-compatible
    • Model ID: The exact model from your upstream provider (e.g. nvidia/nemotron-3-ultra-550b-a55b:free)
    • Wait for OpenClaw to ping the proxy — you should see Verification successful.
    • Endpoint ID: Name it something recognizable, like agent-redactor
    • Model alias: Optional, you can skip this
    • Image input: Answer Yes or No according to your model's capabilities
    OpenClaw onboard showing Custom Provider selected, API Base URL http://localhost:8080/, blank API key, OpenAI-compatible, Model ID nvidia/nemotron-3-ultra-550b-a55b:free, Verification successful, Endpoint ID agent-redactor
    The complete Custom Provider answers, with Verification successful confirming OpenClaw reached Agent Redactor.
  5. Chat securely

    Finish the rest of the OpenClaw prompts, then enter the TUI:

    openclaw tui

    The status bar should show your model as agent-redactor/<model-id>. All outgoing prompts are now filtered locally through Agent Redactor before ever touching the internet.

    OpenClaw TUI chat session with status bar showing agent-redactor/nvidia/nemotron-3-ultra-550b-a55b:free as the active model
    OpenClaw TUI running through the proxy — note agent-redactor/… in the status bar.

Verifying redaction

Check the Session Redactions panel in Agent Redactor to see exactly what was intercepted.

Agent Redactor showing AI Powered Detection Model enabled, Statistics panel with Requests: 8, PII: 7, and Session Redactions listing intercepted PII including private_person Bob
The Statistics panel shows "Requests: 8, PII: 7" and Session Redactions lists the intercepted values with timestamp and type.
Tip: Use Regex Patterns and Keywords in your profile to catch project-specific secrets the AI model might miss for example internal hostnames, proprietary IDs, or project codenames.