protected-vercel-deployments
Fungsinya
Skill ini membantu AI mengakses deployment Vercel yang memerlukan login Vercel, dengan identitas Anda sendiri. Skill ini ditujukan untuk developer yang perlu menguji pratinjau privat.
Kapan dipakai
- βSaat tautan pratinjau mengarahkan Anda ke halaman login Vercel dan Anda perlu mengujinya.
- βSaat halaman mengembalikan error 401 atau 403 karena perlindungan deployment Vercel.
- βSaat Anda ingin menghindari membuat situs pratinjau menjadi publik hanya untuk pengujian.
Link skill
https://github.com/vercel-labs/agent-browser/blob/main/skill-data/protected-vercel-deployments/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
βTautan pratinjau saya mengarah ke halaman login Vercel. Bantu saya membukanya dengan browser dan mengambil tangkapan layar.β
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
AI memakai identitas Vercel CLI Anda untuk membuat token berumur pendek untuk proyek, lalu memberikan token itu ke sesi browser agar halaman bisa dibuka.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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
Pertanyaan umum
Apakah ini mengubah pengaturan deployment?
Tidak. Skill ini menyebutkan agar Deployment Protection tidak dinonaktifkan dan deployment tidak dibuat publik.
Versi Vercel CLI apa yang dibutuhkan?
Skill ini mensyaratkan versi 53.3.0 atau yang lebih baru sebelum membuat token.
Apakah saya perlu secret bypass statis?
Tidak. Skill ini tidak menyarankan memintanya terlebih dahulu dan memakai token OIDC berumur pendek sebagai gantinya.
Detail
Deskripsi asli dari pembuat
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.
Popularitas
- Bintang GitHub
- 45k
- Peringkat
- #6360
- Lisensi
- Apache-2.0
- Diperbarui
- 1/11/2026
Komentar
- β¦
Skill lain dari repositori ini
technical-writer
45kMengajari agent Anda menulis dan menyunting dokumentasi pengembang, seperti panduan, referensi API, dan halaman pemecahan masalah, dengan struktur yang jelas.
agentcore
45kMembantu agent Anda menjalankan otomatisasi browser di cloud AWS Bedrock AgentCore memakai login AWS Anda, dengan perintah yang sama seperti Chrome lokal.
core
45kMengajari agent Anda mengendalikan browser web lewat snapshot dan referensi elemen, untuk membuka halaman, mengklik, mengisi formulir, dan membaca konten.
derive-client
45kMengajari agent Anda merekam lalu lintas jaringan sebuah situs web sekali, lalu membangun klien mandiri yang memanggil API internalnya tanpa browser.
Skill serupa
openclaw-update
394kMembantu agent Anda memperbarui OpenClaw Gateway yang sudah ada, dengan memilih metode pembaruan yang sesuai cara pemasangannya dan menjaga sesi Anda tetap berjalan.
diagnose-gateway
394kMembantu agent Anda mencari tahu mengapa OpenClaw Gateway gagal dengan memeriksa pengaturan, channel, dan port tanpa mengubah apa pun.
crabbox-apps
394kMembantu agent Anda membuka dan menjalankan aplikasi di mesin cloud sementara, lalu menampilkan tampilannya di panel samping chat Anda.