LangSmith Platform
Deploy your Google ADK agent to the LangSmith Platform and connect it to CopilotKit.
CopilotKit + LangSmith Platform
LangSmith Deployment gives your LangGraph and Google ADK agents a managed runtime (serverless by default) — handling scaling, persistence, and the LangGraph Server API. CopilotKit gives those agents a production-ready frontend.
How it works
The two connect through CopilotKit Runtime, a lightweight server-side layer that sits between
your browser and your LangSmith deployment. It's the same runtime you'd use with any
CopilotKit-powered agent — it just needs to run server-side so your LANGSMITH_API_KEY never
reaches the browser.
Browser → CopilotKit Runtime → LangSmith deployment → your agent
LangSmith hosts the agent only; there's no frontend-hosting offering. You host the CopilotKit frontend and runtime wherever you already deploy your app (Vercel, your own Node server, etc.) and point the runtime at the LangSmith deployment URL.
What you get
- Chat UI — prebuilt chat interface, or headless hooks to build your own
- Shared state — bidirectional sync between agent state and your React UI
- Generative UI — render custom components from tool calls in real time
- Human-in-the-loop — let users review, approve, or redirect agent actions
- Managed persistence — thread history and checkpoints live in the LangSmith deployment
Quickstart
LangSmith authority
These steps reproduce the LangSmith deploy flow inline so you can finish here. For the canonical reference — pricing, deployment types, and self-hosting — see the LangSmith deployment docs.
Prerequisites
You need a LangSmith account on the Plus plan or above and a
LangSmith API key (lsv2_...). Deploying uses the LangGraph CLI; Docker is optional (only needed
for local container builds). Google ADK additionally needs Python 3.11+, the
deployments-wrap-sdk[google-adk] package, and a Google AI API key if you use Gemini models.
Deployment models
This guide uses LangSmith Cloud via the CLI — serverless by default, or --deployment-type dedicated for a dedicated deployment. LangSmith also supports self-hosted control plane, hybrid,
and standalone-server models; see the
deployment overview to pick one. The CopilotKit
wiring below is the same regardless of which model you deploy to.
Troubleshooting
The runtime can't find my graph / 404 on invoke
Your graphId must exactly match a key in the graphs object of your deployment's
langgraph.json. The LangGraph template names it agent; an ADK app uses whatever key you set
(e.g. my_agent). Check the deployment's config in the LangSmith UI if unsure.
401 / authentication errors from the deployment
Confirm LANGSMITH_API_KEY is set on the server (where CopilotKit Runtime runs), not the
browser, and that the key belongs to the same LangSmith workspace as the deployment. The key
must start with lsv2_.
langgraph deploy fails or hangs
Ensure your LangSmith account is on the Plus plan or above and that LANGSMITH_API_KEY is
present in .env. For local container builds, Docker (with the daemon running) is required — on
Apple Silicon you also need Docker Buildx.
My ADK agent won't deploy
ADK agents must be wrapped with wrap() from saf_sdk.adk and use a LangsmithSessionService.
The wrapped object has to be exported as a module-level variable that langgraph.json points at
(e.g. ./agent.py:agent). See the
Deploy Google ADK agents guide.
What's next?
Generative UI
Render custom React components directly from your agent's tool calls.
Shared State
Sync structured state between your agent and your React UI bidirectionally.