Setting up langgraph studio with Bun runtime

I’m trying to get langgraph studio working with Bun instead of regular Node.js. I went through the documentation but I’m running into issues. The local development server won’t start properly when I use Bun as the runtime. I also can’t get the tracing features to connect with langsmith which is frustrating. Has anyone successfully configured langgraph studio to work with Bun? What specific setup steps did you follow? Are there any compatibility issues I should know about? I’m wondering if there are special configuration files or environment variables I need to set. Any help would be great since I really want to use Bun for this project.

Been there with different runtime setups. Those compatibility issues are super common when you’re trying to force langgraph studio to work with non-standard runtimes like Bun.

The langsmith tracing problems happen because the dependencies expect specific Node.js APIs that Bun handles differently. Even if you get it working, you’ll hit more issues later with other integrations.

Skip the compatibility headaches - automate your entire langgraph workflow instead. Set up automated triggers for your language model operations, handle tracing and monitoring through API calls, and run everything on whatever runtime you want.

I’ve done this for several projects where we needed specific runtime requirements but still wanted langgraph functionality. Automation gives you way more control and eliminates dependency conflicts entirely.

You can build these automated workflows pretty easily at https://latenode.com.

I’ve run into this with langgraph studio - the runtime compatibility is pretty strict. Bun covers most Node.js APIs but handles certain modules differently than what langgraph expects. Those tracing connection issues you’re seeing? That’s Bun handling network requests and environment variables differently than Node.

I tried setting LANGCHAIN_TRACING_V2 and LANGSMITH_API_KEY in a .env file, which helped a bit, but socket connections still acted up. Here’s what actually worked: run langgraph studio on Node but configure it to monitor your Bun-based graph execution. You get the dev tools while keeping Bun for the actual workload. Not perfect, but it works until they add official Bun support.

bun support for langgraph studio is pretty broken rn. i tried it a few months back and kept getting weird module resolution errors. i just use node for dev and only use bun for prod builds where i don’t need studio. maybe run studio with node but keep your actual graph code on bun?