feat(cli): add --image-uri flag for self-hosted deployments - #8482
Open
Randall Hidajat (l2and) wants to merge 6 commits into
Open
feat(cli): add --image-uri flag for self-hosted deployments#8482Randall Hidajat (l2and) wants to merge 6 commits into
Randall Hidajat (l2and) wants to merge 6 commits into
Conversation
Randall Hidajat (l2and)
removed the request for review
from Asamu David (phvash)
July 30, 2026 23:43
--image-uri flag for self-hosted deployments- Skip known cloud LANGSMITH_ENDPOINT values so SaaS users' tracing env var doesn't hijack the deploy host URL - Fix --image-uri help text to accurately describe build+push+deploy flow instead of claiming no build step - Validate existing deployment source before PATCHing with --image-uri to give a clear error on incompatible deployments - Move /api-host path strip before localhost check in _smith_dashboard_base_url so local self-hosted status URLs work - Fix test_constructor_strips_trailing_slash to use base_url property instead of removed httpx base_url - Apply ruff formatting
Randall Hidajat (l2and)
requested review from
Asamu David (phvash) and
Victor Moreira (victorm-lc)
July 31, 2026 21:14
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.
Adds
--image-uri <uri>tolanggraph deployso self-hosted LangSmith customers can build, push, and deploy in one command without needing to script the three steps manually.When
--image-uriis provided the CLI:aws ecr get-login-password) — no auth handling in the CLIsource_revision_config.image_uri(norevision_source, which the self-hosted control plane rejects forexternal_dockerdeployments)Also fixes two self-hosted-specific issues uncovered during testing:
LANGSMITH_ENDPOINTis now used as a fallback whenLANGGRAPH_HOST_URLisn't set — the CLI strips the/api/v1path and appends/api-hostto reach the control plane/api-hostpath prefix when paths started with/smith.langchain.comHow did you verify your code works?
Tested end-to-end against a self-hosted LangSmith instance using ECR as the registry.
langgraph deploy --image-uri <ecr-uri>successfully built, pushed, and triggered a deployment revision. Confirmed the existing SaaS flow (langgraph deploywithout--image-uri) is unaffected — the new flag is opt-in and theLANGSMITH_ENDPOINTfallback only activates whenLANGGRAPH_HOST_URLis unset andLANGSMITH_ENDPOINTis present.