New Node: Bypass 2FA/Login screens by syncing local Chrome cookies (AgentAuth)

Hi everyone!

I’ve been using n8n for my local automations, but I kept hitting a specific wall: Session Authentication.

Standard HTTP Request nodes work great for public APIs, but whenever I tried to automate a site like LinkedIn or a private dashboard, I’d get hit with login screens, 2FA prompts, or Cloudflare blocks. I used to manually copy-paste Cookie headers from Chrome DevTools, but they would expire every 24 hours, breaking my workflows.

So, I built a custom node to fix this: AgentAuth.

It connects to your local Chrome browser, extracts your active, authenticated session cookies (locally encrypted), and passes them directly into your n8n workflow.

How it works:

  1. Export cookies from Chrome using the AgentAuth Chrome extension
  2. Install n8n-nodes-agentauth (it’s on npm)
  3. Add the AgentAuth node to your workflow
  4. Paste your exported cookies JSON
  5. The node outputs cookies for use in HTTP Request nodes

Why I built it:
I wanted a “set it and forget it” way to keep my local agents logged in without needing paid APIs or complex auth flows. As long as you are logged in on Chrome, your n8n workflow is logged in too.

Links:

I just published this today based on a request from a user who wanted to avoid writing Python scripts. I’d love to hear if this helps anyone else struggling with session persistence!

I was looking for someone to make this! Nice!

Glad to hear it! Let me know if you give it a try, I’d love to know if the agent-auth grab command works smoothly for your specific sites.

(Also, just pushed v0.2.2 which adds Headless/Docker support if you run n8n on a VPS!)