Skip to content

feat: deploy agent to LangGraph Platform (LangSmith Cloud)#80

Open
GeneralJerel wants to merge 4 commits intomainfrom
feat/deploy-langsmith-cloud
Open

feat: deploy agent to LangGraph Platform (LangSmith Cloud)#80
GeneralJerel wants to merge 4 commits intomainfrom
feat/deploy-langsmith-cloud

Conversation

@GeneralJerel
Copy link
Copy Markdown
Collaborator

Summary

  • Split deployment: frontend stays on Render, agent deploys to LangGraph Platform (LangSmith Cloud)
  • Frontend auto-detects cloud vs self-hosted based on LANGSMITH_API_KEY presence — uses LangGraphAgent for Platform, LangGraphHttpAgent for self-hosted
  • Removed agent service from render.yaml; added LANGGRAPH_DEPLOYMENT_URL and LANGSMITH_API_KEY env vars
  • Added migration plan and updated deployment docs

Resolves #75

Test plan

  • Deploy agent to LangGraph Platform dev environment via langgraph deploy
  • Set agent env vars (OPENAI_API_KEY, LANGGRAPH_CLOUD=true) in LangSmith dashboard
  • Run frontend locally pointed at the cloud deployment URL
  • Verify chat sends/receives messages end-to-end
  • Verify agent can add/update/complete todos (state sync)
  • Verify conversation persists across page refresh (Postgres-backed)
  • Verify traces appear in LangSmith dashboard
  • Verify self-hosted path still works without LANGSMITH_API_KEY set

🤖 Generated with Claude Code

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Deploy deep agents to LangSmith

1 participant