Features
Regex Copilot

Regex Copilot

Bring Your Own Key: Copilot uses POST /api/ai/chat and requires signing in plus your own Anthropic API key. Your key is intended to be stored only in your browser (24-hour expiry) and is not persisted by our application servers. Content is processed by Anthropic under your own API key — do not send secrets or regulated data.

Regex Copilot is a streaming AI assistant embedded in the Review tab (Regex Copilot). It receives context from your current pattern, flags, sample test text (when present), match counts, and summarized warnings/explanation steps so answers stay grounded in what you are actually editing.

Setup

  1. Sign in to RegexLens.
  2. Navigate to the Review tab.
  3. Enter your Anthropic API key when prompted. Get one at console.anthropic.com (opens in a new tab).
  4. Your key is cached in your browser for 24 hours, then automatically removed.

Capabilities

  • Ask for pattern rewrites, explanations in different words, edge-case checks, or debugging help.
  • Use structured actions from the UI (e.g. pattern generation helpers) where implemented.
  • Apply suggested patterns back into the editor when the UI offers an apply control.

Guardrails

  • Rate limits apply (ai_chat tier on the server).
  • Sign-in gate — unauthenticated users see a lock state with a link to sign in when this feature requires a session.
  • API key required — you must provide your own Anthropic API key; we do not supply one.
  • Treat Copilot output as advisory; always validate against real data and your engine.

Privacy

Your API key is sent to our proxy only to forward the request to Anthropic. Our application does not persist it. Depending on hosting/infrastructure settings, network-level request logs may still record headers. Avoid sending secrets or regulated data. See our Privacy Policy for details.