protected-vercel-deployments
यह क्या करती है
यह स्किल AI को उन Vercel डिप्लॉयमेंट तक पहुँचने में मदद करती है जिनके लिए Vercel लॉगिन चाहिए, आपकी अपनी पहचान से। यह उन डेवलपर्स के लिए है जिन्हें निजी प्रीव्यू टेस्ट करने हैं।
कब इस्तेमाल करें
- ✓जब प्रीव्यू लिंक आपको Vercel लॉगिन पेज पर भेज दे और आपको उसे टेस्ट करना हो।
- ✓जब Vercel डिप्लॉयमेंट सुरक्षा के कारण कोई पेज 401 या 403 एरर दे।
- ✓जब आप केवल टेस्ट करने के लिए प्रीव्यू साइट को सार्वजनिक नहीं करना चाहते।
Skill का लिंक
https://github.com/vercel-labs/agent-browser/blob/main/skill-data/protected-vercel-deployments/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मेरा प्रीव्यू लिंक Vercel लॉगिन पेज पर रीडायरेक्ट कर रहा है। ब्राउज़र से इसे खोलने में मदद कीजिए और स्क्रीनशॉट लीजिए।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
AI आपकी Vercel CLI पहचान से प्रोजेक्ट के लिए छोटे समय का टोकन बनाता है, फिर उसे ब्राउज़र सेशन में डालता है ताकि पेज खुल सके।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Protected Vercel deployments
Use the caller's existing Vercel identity and a short-lived OIDC token. Do not disable Deployment Protection, make the deployment public, or ask for a static bypass secret first.
Same-project preview
A local development token for the target project can access that project's protected Preview deployments through the default Trusted Sources self-access rule. No Trusted Sources configuration is normally required.
Confirm the local identity and Vercel CLI version:
vc whoami
vc --version
Require Vercel CLI 53.3.0 or newer before running vc project token. Versions 50.25.0 through 53.2.x write the token to stderr, so command substitution captures nothing and the credential can appear in logs. If the installed version is older, stop and ask the user to upgrade it. Do not attempt to capture or recover the token from stderr.
Set the target project and scope explicitly. If they cannot be inferred safely, ask the user. In a directory whose existing .vercel/project.json link has been verified against the target, vc project token without a project name is also valid. Do not run vc link merely to get an OIDC token: current Vercel CLI versions also pull development variables into .env.local when linking.
Create a named browser session, mint a development OIDC token with the Vercel CLI, then inject it without printing or persisting it:
export AGENT_BROWSER_SESSION="$(agent-browser session id --scope worktree --prefix vercel-preview)"
export VERCEL_PREVIEW_URL="https://my-app.vercel.app"
export VERCEL_PROJECT="my-app"
export VERCEL_SCOPE="my-team"
(
TOKEN="$(vc project token "$VERCEL_PROJECT" --scope "$VERCEL_SCOPE")"
test -n "$TOKEN"
agent-browser open "$VERCEL_PREVIEW_URL" --headers \
"{\"x-vercel-trusted-oidc-idp-token\":\"$TOKEN\"}"
)
agent-browser snapshot -i
Continue the normal workflow in that same session. The header is scoped to the target origin and applies to the document, scripts, styles, fonts, and in-page requests. If the browser session is closed or restarted, repeat the authenticated open command.
Never print the token, paste it into source, or save it in an environment file.
Other environments and callers
Trusted Sources configuration is needed when:
- a local development token must reach a protected Production deployment;
- the caller belongs to another Vercel project or team;
- the target project's self-access rules were customized; or
- Vercel returns
TRUSTED_SOURCES_ENVIRONMENT_MISMATCH.
There is no supported Vercel CLI or public REST API for editing Trusted Sources rules. An authorized human must open the target project's Settings → Deployment Protection → Trusted Sources and add only the required caller and environment mapping. A local token has the development environment, so protected Production access requires development to production.
Stop and hand off the exact rule to the human. Do not use browser automation to change access control, and do not broaden unrelated environment mappings. Retry the authenticated open after the human confirms the rule is saved.
Human intervention boundaries
The same-project development to Preview path should run without human intervention when the Vercel CLI is already authenticated and the target project and scope are known. A human is needed only when:
- the Vercel CLI has no authenticated identity and no existing
VERCEL_TOKEN; interactivevc loginrequires the user; - the installed Vercel CLI is older than
53.3.0and must be upgraded before token minting; - the correct target project or scope cannot be inferred safely for token minting;
- a Trusted Sources rule must be added or changed; the dashboard is the only supported management surface, and this changes access control;
- Secure Backend Access with OIDC Federation was disabled on the calling project and must be re-enabled in Settings → Security; or
- the static-secret fallback must be enabled or rotated and the agent needs explicit authorization for that access-control change. After approval, the agent can use
vc project protectioninstead of requiring dashboard interaction.
The agent can diagnose each case and state the exact action required, then continue after the user confirms completion.
Use the correct header
Send the Vercel-issued token as:
x-vercel-trusted-oidc-idp-token: <VERCEL_OIDC_TOKEN>
Do not substitute x-vercel-oidc-token. That header carries workl
अक्सर पूछे जाने वाले सवाल
क्या इससे डिप्लॉयमेंट सेटिंग बदलती है?
नहीं। स्किल कहती है कि Deployment Protection बंद न करें और डिप्लॉयमेंट को सार्वजनिक न बनाएँ।
कौन-सा Vercel CLI वर्ज़न चाहिए?
टोकन बनाने से पहले स्किल को वर्ज़न 53.3.0 या उसके बाद वाला चाहिए।
क्या स्थिर bypass secret चाहिए?
नहीं। स्किल पहले ऐसा सीक्रेट माँगने के खिलाफ़ सलाह देती है और उसके बजाय छोटे समय वाला OIDC टोकन इस्तेमाल करती है।
जानकारी
लेखक का मूल विवरण
Access and test Vercel deployments protected by Vercel Authentication, SSO, or Deployment Protection with agent-browser. Use when a preview or production URL redirects to a Vercel login page, returns a protection 401 or 403, or needs short-lived Trusted Sources OIDC authentication instead of a static bypass secret or public exception.
लोकप्रियता
- GitHub स्टार
- 45k
- रैंकिंग में स्थान
- #6360
- लाइसेंस
- Apache-2.0
- अपडेट की गई
- 1/11/2026
कमेंट
- …
इस repository की और skills
technical-writer
45kआपके एजेंट को डेवलपर डॉक्स लिखना और सुधारना सिखाती है, जैसे गाइड, API रेफ़रेंस और समस्या-निवारण पेज, साफ़ ढाँचे और सही उदाहरणों के साथ।
agentcore
45kआपके एजेंट को AWS Bedrock AgentCore क्लाउड ब्राउज़र पर ब्राउज़र ऑटोमेशन चलाने देती है, आपके मौजूदा AWS साइन-इन से, लोकल Chrome जैसे ही कमांड के साथ।
core
45kआपके एजेंट को snapshot और एलिमेंट रेफ़रेंस से वेब ब्राउज़र चलाना सिखाती है, ताकि वह पेज खोल सके, क्लिक कर सके, फ़ॉर्म भर सके और सामग्री पढ़ सके।
derive-client
45kआपके एजेंट को एक बार वेबसाइट का नेटवर्क ट्रैफ़िक रिकॉर्ड करना सिखाती है, फिर एक स्वतंत्र क्लाइंट बनाती है जो बिना ब्राउज़र के उसकी इंटरनल API कॉल करता है।
मिलती-जुलती skills
openclaw-update
394kयह आपके एजेंट को चल रहे OpenClaw Gateway को अपडेट करने में मदद करती है, इंस्टॉल के तरीके के अनुसार सही विधि चुनकर और सेशन बनाए रखकर।
diagnose-gateway
394kयह आपके एजेंट को सेटिंग्स, चैनल और पोर्ट जांचकर पता लगाने देती है कि OpenClaw Gateway क्यों फ़ेल हो रहा है, बिना कुछ बदले।
crabbox-apps
394kयह आपके एजेंट को किसी अस्थायी क्लाउड मशीन पर ऐप खोलने और चलाने देती है, फिर उसका व्यू आपके चैट के साइड पैनल में दिखाती है।