How to Pass Runtime Data from SDK to LangGraph Nodes Without Polluting State?

I’m building a multi-tenant LangGraph application and need to pass user-specific data (like user_id, organization_id, etc.) from my client SDK to individual nodes in my graph. I want to avoid adding this metadata to my graph state since it’s not part of the actual conversation flow.

What I need:

  1. Pass user_id and organization_id from my Python SDK client to specific nodes

  2. Access this data within nodes for database queries, API calls, etc.

  3. Keep my graph state clean and focused on conversation data

  • What’s the recommended pattern for passing runtime context to nodes?

  • Should I use configurable headers, runtime config, or another approach?

  • How do I access this data within nested functions called by my nodes?

Any examples or best practices would be greatly appreciated!