Skip to main content
LangGraph allows runtime configuration to modify agent behavior and permissions dynamically. When using LangSmith Deployment, you can pass this configuration in the request body (config) or specific request headers. This enables adjustments based on user identity or other requests. For privacy, control which headers are passed to the runtime configuration via the http.configurable_headers section in your langgraph.json file. Here’s how to customize the included and excluded headers:
The includes and excludes lists accept exact header names or patterns using * to match any number of characters. For your security, no other regex patterns are supported.

Using within your graph

You can access the included headers in your graph using the config argument of any node.
Or by fetching from context (useful in tools and or within other nested functions).
You can even use this to dynamically compile the graph.

Opt-out of configurable headers

If you’d like to opt-out of configurable headers, you can simply set a wildcard pattern in the s list:
This will exclude all headers from being added to your run’s configuration. Note that exclusions take precedence over inclusions.