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:
- Export cookies from Chrome using the AgentAuth Chrome extension
- Install
n8n-nodes-agentauth(it’s on npm) - Add the AgentAuth node to your workflow
- Paste your exported cookies JSON
- 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:
- NPM: https://www.npmjs.com/package/n8n-nodes-agentauth
- Node Source Code: GitHub - jacobgadek/n8n-nodes-agentauth: n8n community node for AgentAuth - secure session management for AI agents
- Main Project (Python SDK): GitHub - jacobgadek/agent-auth: Open source SDK for AI Agent identity and session management
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!
