langchain-ai/langgraph · error · HostBackendError
LangSmith Deployment is not enabled for this organization. E
Error message
LangSmith Deployment is not enabled for this organization. Enable it at {smith_base}/host/deployments (ensure this matches the organization for your API key). What it means
Error "LangSmith Deployment is not enabled for this organization. Enable it at {smith_base}/host/deployments (ensure this matches the organization for your API key)." thrown in langchain-ai/langgraph.
Source
Thrown at libs/cli/langgraph_cli/deploy.py:1308
raise click.ClickException(
"API key is org-scoped and requires a workspace ID. "
"Set LANGSMITH_TENANT_ID in your .env file or "
"use a workspace-scoped API key."
) from None
click.secho(
"Your API key is org-scoped and requires a workspace ID.",
fg="yellow",
)
click.secho(
"Find your workspace ID in LangSmith under Settings > Workspaces.",
fg="yellow",
)
client._client.headers["X-Tenant-ID"] = click.prompt("Workspace ID")
prompted_for_tenant = True
continue
if err.status_code == 403 and "not enabled" in err.message.lower():
smith_base = _smith_dashboard_base_url(client._base_url)
raise HostBackendError(
"LangSmith Deployment is not enabled for this organization. "
f"Enable it at {smith_base}/host/deployments"
" (ensure this matches the organization for your API key).",
status_code=403,
) from None
raise
# ---------------------------------------------------------------------------
# Click options shared by deploy commands
# ---------------------------------------------------------------------------
OPT_HOST_API_KEY = click.option(
"--api-key",
envvar="LANGGRAPH_HOST_API_KEY",
help=(
"API key. Can also be set via LANGGRAPH_HOST_API_KEY, "
"LANGSMITH_API_KEY, or LANGCHAIN_API_KEY environment variable or .env file."View on GitHub (pinned to 38031739e5)
When it happens
Trigger: Thrown at libs/cli/langgraph_cli/deploy.py:1308 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of langchain-ai/langgraph@38031739e5 (2026-08-26).
Data as JSON: /api/errors/6c2969dde1d49980.
Report an issue: GitHub.