feat: deploy agent to LangGraph Platform (LangSmith Cloud)#80
Open
GeneralJerel wants to merge 4 commits intomainfrom
Open
feat: deploy agent to LangGraph Platform (LangSmith Cloud)#80GeneralJerel wants to merge 4 commits intomainfrom
GeneralJerel wants to merge 4 commits intomainfrom
Conversation
Enable dual deployment — both self-hosted (Render) and LangGraph Platform work from the same codebase. Conditional checkpointer skips BoundedMemorySaver when LANGGRAPH_CLOUD=true, frontend passes x-api-key header when LANGSMITH_API_KEY is set, and langgraph.json no longer references .env.
Remove agent service from render.yaml (frontend-only on Render), switch
LANGGRAPH_DEPLOYMENT_URL from Render service discovery to manually-set
env var pointing to LangGraph Platform. Fix bool("false")==True bug in
LANGGRAPH_CLOUD detection, add startup log for platform mode. Rewrite
deployment docs with langgraph deploy CLI workflow and split deployment
guide.
Step-by-step runbook for migrating agent from Render to LangGraph Platform — covers dev deploy, verification, merge, production deploy, rollback, and cleanup.
…r self-hosted LangGraphHttpAgent speaks the AG-UI HTTP protocol which only the self-hosted FastAPI server exposes. LangGraph Platform uses a different API, causing 404s. Switch to LangGraphAgent (native LangGraph SDK) when LANGSMITH_API_KEY is set, keeping LangGraphHttpAgent for local dev.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
LANGSMITH_API_KEYpresence — usesLangGraphAgentfor Platform,LangGraphHttpAgentfor self-hostedrender.yaml; addedLANGGRAPH_DEPLOYMENT_URLandLANGSMITH_API_KEYenv varsResolves #75
Test plan
langgraph deployOPENAI_API_KEY,LANGGRAPH_CLOUD=true) in LangSmith dashboardLANGSMITH_API_KEYset🤖 Generated with Claude Code