zoom-cobrowse-sdk
Skill26k starsChanged 10 months agoApache-2.0View on GitHub
Reference skill for Zoom Cobrowse SDK. Use after routing to a collaborative-support workflow when implementing browser co-browsing, annotation tools, privacy masking, remote assist, or PIN-based session sharing.
- Reads credentials
- Installs packages
- Sends data out
1 other project uses a version of this.
Adopted by
Steady: 0 new projects took it in the last 4 weeks, none the 4 weeks before.thin data
Most recently taken up by
- openai/pluginstheir own version, first seen May 13, 2026
Who's talking about anthropics/knowledge-work-plugins
- @tommis.fi“github.com/anthropics/k...”Bluesky · May 24, 2026 · 5 likes
- A Hacker News story“Anthropic – Legal Productivity Plugin”Hacker News · Feb 4, 2026 · 4 points
- A Hacker News story“Claude open source knowledge Work Plugins”Hacker News · Jan 30, 2026 · 4 points
- Kilo-Org/kilo-marketplace“Add build-dashboard skill”GitHub · Jun 23, 2026 · 2 reactions
- @github-trending.bsky.social“🚀 Skyrocketing! 🚀 (200+ new stars) 📦 anthropics / knowledge-work-plugins ⭐ 13,162 (+486) 🗒 Python Open …”Bluesky · May 24, 2026 · 2 likes
The biggest 5 of 57 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 57
Talked about on GitHub, Bluesky and Hacker News (57 times).
On GitHub · 50
- Jun 23, 2026Add build-dashboard skill — Kilo-Org/kilo-marketplace2 reactions · 1 comment
- Nov 24, 2026claude-code-marketplaces.github.anthropics.knowledge-work-plugins: 2baf6d1 → 5e504ae — sudosubin/agents.nix0 reactions
- Nov 24, 2026claude-code-plugins.github.anthropics.knowledge-work-plugins: 0-unstable-2026-11-19 → 0-unstable-2026-11-23 — sudosubin/agents.nix0 reactions
- Nov 24, 2026agent-skills.github.anthropics.knowledge-work-plugins: 0-unstable-2026-11-19 → 0-unstable-2026-11-23 — sudosubin/agents.nix0 reactions
- Nov 23, 2026chore(skills): bump the skill-packs group across 1 directory with 19 updates — solanabr/ai-kit0 reactions · 2 comments
45 more on GitHub
- Nov 23, 2026claude-code-marketplaces.github.anthropics.knowledge-work-plugins: 0-unstable-2026-11-19 → 0-unstable-2026-11-23 — sudosubin/agents.nix0 reactions
- Nov 20, 2026claude-code-marketplaces.github.anthropics.knowledge-work-plugins: 0-unstable-2026-11-18 → 0-unstable-2026-11-19 — sudosubin/agents.nix0 reactions
- Nov 19, 2026claude-code-plugins.github.anthropics.knowledge-work-plugins: 0-unstable-2026-11-18 → 0-unstable-2026-11-19 — sudosubin/agents.nix0 reactions
- Nov 19, 2026agent-skills.github.anthropics.knowledge-work-plugins: 0-unstable-2026-11-18 → 0-unstable-2026-11-19 — sudosubin/agents.nix0 reactions
- Nov 18, 2026claude-code-plugins.github.anthropics.knowledge-work-plugins: 0-unstable-2026-11-13 → 0-unstable-2026-11-18 — sudosubin/agents.nix0 reactions
- Nov 18, 2026agent-skills.github.anthropics.knowledge-work-plugins: 0-unstable-2026-11-13 → 0-unstable-2026-11-18 — sudosubin/agents.nix0 reactions
- Nov 18, 2026claude-code-marketplaces.github.anthropics.knowledge-work-plugins: 0-unstable-2026-11-13 → 0-unstable-2026-11-18 — sudosubin/agents.nix0 reactions
- Nov 16, 2026deps: actualiza skills (auditar) — savaf/dotfiles0 reactions
- Nov 16, 2026Feature: 3 role additions adapted from Anthropic knowledge-work-plugins (Sales deal skills, Legal helper, Accounting close) — amgadbarkat-ab/Ark-Agent0 reactions
- Nov 15, 2026[P1 WORK PACKS] Composable knowledge-work skills, commands, connectors and real professional workflows — loftwah/app-composer0 reactions
- Nov 14, 2026claude-code-marketplaces.github.anthropics.knowledge-work-plugins: 43ccfc0 → e91a134 — sudosubin/agents.nix0 reactions
- Nov 14, 2026claude-code-plugins.github.anthropics.knowledge-work-plugins: 43ccfc0 → e91a134 — sudosubin/agents.nix0 reactions
- Nov 13, 2026agent-skills.github.anthropics.knowledge-work-plugins: 43ccfc0 → e91a134 — sudosubin/agents.nix0 reactions
- Nov 13, 2026claude-code-marketplaces.github.anthropics.knowledge-work-plugins: 02717ef → 43ccfc0 — sudosubin/agents.nix0 reactions
- Nov 13, 2026claude-code-plugins.github.anthropics.knowledge-work-plugins: 02717ef → 43ccfc0 — sudosubin/agents.nix0 reactions
- Nov 13, 2026agent-skills.github.anthropics.knowledge-work-plugins: 02717ef → 43ccfc0 — sudosubin/agents.nix0 reactions
- Nov 13, 2026agent-skills.github.anthropics.knowledge-work-plugins: 0-unstable-2026-11-12 → 0-unstable-2026-11-13 — sudosubin/agents.nix0 reactions
- Nov 13, 2026claude-code-marketplaces.github.anthropics.knowledge-work-plugins: 0-unstable-2026-11-12 → 0-unstable-2026-11-13 — sudosubin/agents.nix0 reactions
- Nov 13, 2026claude-code-plugins.github.anthropics.knowledge-work-plugins: 0-unstable-2026-11-12 → 0-unstable-2026-11-13 — sudosubin/agents.nix0 reactions
- Nov 12, 2026agent-skills.github.anthropics.knowledge-work-plugins: 0-unstable-2026-11-11 → 0-unstable-2026-11-12 — sudosubin/agents.nix0 reactions
- Nov 12, 2026claude-code-marketplaces.github.anthropics.knowledge-work-plugins: 0-unstable-2026-11-11 → 0-unstable-2026-11-12 — sudosubin/agents.nix0 reactions
- Nov 12, 2026claude-code-plugins.github.anthropics.knowledge-work-plugins: 0-unstable-2026-11-11 → 0-unstable-2026-11-12 — sudosubin/agents.nix0 reactions
- Nov 12, 2026investigation: evaluate anthropics/knowledge-work-plugins — gordonpn/dotfiles0 reactions
- Nov 11, 2026claude-code-marketplaces.github.anthropics.knowledge-work-plugins: 0-unstable-2026-11-09 → 0-unstable-2026-11-11 — sudosubin/agents.nix0 reactions
- Nov 11, 2026claude-code-plugins.github.anthropics.knowledge-work-plugins: 0-unstable-2026-11-09 → 0-unstable-2026-11-11 — sudosubin/agents.nix0 reactions
- Nov 11, 2026agent-skills.github.anthropics.knowledge-work-plugins: 0-unstable-2026-11-09 → 0-unstable-2026-11-11 — sudosubin/agents.nix0 reactions
- Nov 10, 2026claude-code-plugins.github.anthropics.knowledge-work-plugins: 0-unstable-2026-11-07 → 0-unstable-2026-11-09 — sudosubin/agents.nix0 reactions
- Nov 10, 2026agent-skills.github.anthropics.knowledge-work-plugins: 0-unstable-2026-11-07 → 0-unstable-2026-11-09 — sudosubin/agents.nix0 reactions
- Nov 9, 2026claude-code-marketplaces.github.anthropics.knowledge-work-plugins: 0-unstable-2026-11-07 → 0-unstable-2026-11-09 — sudosubin/agents.nix0 reactions
- Nov 9, 2026deps: actualiza skills (auditar) — savaf/dotfiles0 reactions
- Nov 7, 2026engineering plugin — mattbutlerengineering/skills0 reactions
- Nov 7, 2026knowledge base improvements — mattbutlerengineering/skills0 reactions
- Nov 7, 2026claude-code-marketplaces.github.anthropics.knowledge-work-plugins: 0-unstable-2026-11-06 → 0-unstable-2026-11-07 — sudosubin/agents.nix0 reactions
- Nov 7, 2026agent-skills.github.anthropics.knowledge-work-plugins: 0-unstable-2026-11-06 → 0-unstable-2026-11-07 — sudosubin/agents.nix0 reactions
- Nov 7, 2026claude-code-plugins.github.anthropics.knowledge-work-plugins: 0-unstable-2026-11-06 → 0-unstable-2026-11-07 — sudosubin/agents.nix0 reactions
- Nov 6, 2026deps: actualiza skills (auditar) — savaf/dotfiles0 reactions
- Nov 6, 2026research: instilling placement and architecture judgment in coding agents (skills, agents, rules, checks) — dfadler/agent-config0 reactions
- Nov 6, 2026agent-skills.github.anthropics.knowledge-work-plugins: 0-unstable-2026-11-04 → 0-unstable-2026-11-06 — sudosubin/agents.nix0 reactions
- Nov 6, 2026claude-code-plugins.github.anthropics.knowledge-work-plugins: 0-unstable-2026-11-04 → 0-unstable-2026-11-06 — sudosubin/agents.nix0 reactions
- Nov 6, 2026claude-code-marketplaces.github.anthropics.knowledge-work-plugins: 0-unstable-2026-11-04 → 0-unstable-2026-11-06 — sudosubin/agents.nix0 reactions
- Nov 4, 2026claude-code-marketplaces.github.anthropics.knowledge-work-plugins: 0-unstable-2026-10-28 → 0-unstable-2026-11-04 — sudosubin/agents.nix0 reactions
- Nov 4, 2026claude-code-plugins.github.anthropics.knowledge-work-plugins: 0-unstable-2026-10-28 → 0-unstable-2026-11-04 — sudosubin/agents.nix0 reactions
- Oct 27, 2026scan: 2026-10-27 daily discovery — mattbutlerengineering/ai-tooling0 reactions
- Oct 24, 2026📈 Bản tin xu hướng AI mã nguồn mở 2026-10-24 — thanhtantran/agents-radar0 reactions
- Oct 24, 2026🔥 GitHub Trending AI 早报 · 2026-10-24 · Top 6 项目 — happydog-intj/ai-xiaohongshu-daily0 reactions
On Bluesky · 5
- May 24, 2026github.com/anthropics/k... — @tommis.fi5 likes and reposts
- May 24, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 anthropics / knowledge-work-plugins ⭐ 13,162 (+486) 🗒 Python Open source repository of plugins… — @github-trending.bsky.social2 likes and reposts · 1 reply
- May 25, 2026📈 Today's GitHub Trending: 1. https://github.com/Lum1104/Understand-Anything - TypeScript, 5625 stars today 2.… — @ghtrend.newsmast.social.ap.brid.gy1 likes and repost · 1 reply
- May 24, 2026今日のGitHubトレンド anthropics/knowledge-work-plugins Claudeを特定の役割や企業に最適化したスペシャリストにするためのプラグイン集です。 Claude CoworkやClaude… — @dailygithubtrends.bsky.social1 likes and repost
- Oct 20, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 anthropics / knowledge-work-plugins ⭐ 30,616 (+262) 🗒 Python Open source repository of plugins… — @github-trending.bsky.social0 likes and reposts · 1 reply
On Hacker News · 2
- Feb 4, 2026Anthropic – Legal Productivity Plugin4 points · 2 comments
- Jan 30, 2026Claude open source knowledge Work Plugins4 points
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- openai/plugins★ 7.3ksame name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository253 other files it gives its agents.
- partner-built/zoom-plugin/AGENTS.mdAGENTS.md
- partner-built/slack/CLAUDE.mdCLAUDE.md
- instrument-data-to-allotropeSkill
- nextflow-developmentSkill
- scientific-problem-selectionSkill
- scvi-toolsSkill
- single-cell-rna-qcSkill
- startSkill
- cowork-plugin-customizerSkill
- create-cowork-pluginSkill
- customer-escalationSkill
- customer-researchSkill
- draft-responseSkill
- kb-articleSkill
- ticket-triageSkill
- analyzeSkill
- build-dashboardSkill
- create-vizSkill
- data-context-extractorSkill
- data-visualizationSkill
- explore-dataSkill
- sql-queriesSkill
- statistical-analysisSkill
- validate-dataSkill
- write-querySkill
- accessibility-reviewSkill
- design-critiqueSkill
- design-handoffSkill
- design-systemSkill
- research-synthesisSkill
- user-researchSkill
- ux-copySkill
- architectureSkill
- code-reviewSkill
- debugSkill
- deploy-checklistSkill
- documentationSkill
- incident-responseSkill
- standupSkill
- system-designSkill
- tech-debtSkill
- testing-strategySkill
- digestSkill
- knowledge-synthesisSkill
- searchSkill
- search-strategySkill
- source-managementSkill
- audit-supportSkill
- close-managementSkill
- financial-statementsSkill
- journal-entry-prepSkill
- journal-entrySkill
- reconciliationSkill
- sox-testingSkill
- variance-analysisSkill
- comp-analysisSkill
- draft-offerSkill
- interview-prepSkill
- onboardingSkill
- org-planningSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
15 rules. About 0 are common, 14 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈14
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 55
[Settings Reference](references/settings-reference.md): - All initialization settings
- Distinctive: line 89
Use that same PIN for agent join.
- Distinctive: line 90
Do not expose provisional/debug PINs from backend pre-start records to users.
- Very specific: line 92
If these rules are ignored, agent desk often fails with Pincode is not found / code 30308.
- Distinctive: line 108
If a demo only has one generic "session" user, it is incomplete for real cobrowse operations.
- Distinctive: line 127
Must enable third-party cookies for refresh reconnection
- Distinctive: line 436
When customer refreshes the page:
- Distinctive: line 531
Key Insight: If you want npm integration, you must use BYOP (Bring Your Own PIN) mode.
- Distinctive: line 549
Same-origin iframes: No extra setup needed.
- Distinctive: line 609
[Session Events](references/session-events.md): - All event types
- Distinctive: line 628
Need help?: Start with Integrated Index section below for complete navigation.
- Distinctive: line 640
If you're new to Zoom Cobrowse SDK, follow this learning path:
- Distinctive: line 680
[API Reference](references/api-reference.md): - All SDK methods and interfaces
- Distinctive: line 695
[Session Events Reference](references/session-events.md): - All event types
- Distinctive: line 890
Not finding what you need?: Check the Official Documentation or ask on the Dev Forum.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Zoom Cobrowse SDK - Web Development
Background reference for collaborative browsing on the web with Zoom Cobrowse SDK. Use this after the support workflow is clear and you need implementation detail.
Official Documentation: https://developers.zoom.us/docs/cobrowse-sdk/
API Reference: https://marketplacefront.zoom.us/sdk/cobrowse/
Quickstart Repository: https://github.com/zoom/CobrowseSDK-Quickstart
Auth Endpoint Sample: https://github.com/zoom/cobrowsesdk-auth-endpoint-sample
Quick Links
New to Cobrowse SDK? Follow this path:
- Get Started Guide - Complete setup from credentials to first session
- Session Lifecycle - Understanding customer and agent flows
- JWT Authentication - Token generation and security
- Customer Integration - Integrate SDK into your website
- Agent Integration - Set up agent portal (iframe or npm)
Core Concepts:
- Two Roles Pattern - Customer vs Agent architecture
- Session Lifecycle - PIN generation, connection, reconnection
- JWT Authentication - SDK Key vs API Key, role_type, claims
- Distribution Methods - CDN vs npm (BYOP)
Features:
- Annotation Tools - Drawing, highlighting, pointer tools
- Privacy Masking - Hide sensitive fields from agents
- Remote Assist - Agent can scroll customer's page
- Multi-Tab Persistence - Session continues across tabs
- BYOP Mode - Bring Your Own PIN with npm integration
Troubleshooting:
- Common Issues - Quick diagnostics and solutions
- Error Codes - Complete error reference
- CORS and CSP - Cross-origin and security policy configuration
- Browser Compatibility - Supported browsers and limitations
- 5-Minute Runbook - Fast preflight checks before deep debugging
Reference:
- API Reference - Complete SDK methods and events
- Settings Reference - All initialization settings
- Integrated Index - see the section below in this file
SDK Overview
The Zoom Cobrowse SDK is a JavaScript library that provides:
- Real-Time Co-Browsing: Agent sees customer's browser activity live
- PIN-Based Sessions: Secure 6-digit PIN for customer-to-agent connection
- Annotation Tools: Drawing, highlighting, vanishing pen, rectangle, color picker
- Privacy Masking: CSS selector-based masking of sensitive form fields
- Remote Assist: Agent can scroll customer's page (with consent)
- Multi-Tab Persistence: Session continues when customer opens new tabs
- Auto-Reconnection: Session recovers from page refresh (2-minute window)
- Session Events: Real-time events for session state changes
- HTTPS Required: Secure connections (HTTP only works on loopback/local development hosts)
- No Plugins: Pure JavaScript, no browser extensions needed
Two Roles Architecture
Cobrowse has two distinct roles, each with different integration patterns:
| Role | role_type | Integration | JWT Required | Purpose |
| Customer | 1 | Website integration (CDN or npm) | Yes | User who shares their browser session |
| Agent | 2 | Iframe (CDN) or npm (BYOP only) | Yes | Support staff who views/assists customer |
Key Insight: Customer and agent use different integration methods but the same JWT authentication pattern.
Read This First (Critical)
For customer/agent demos, treat the PIN from customer SDK event pincode_updated as the only user-facing PIN.
- Show one clearly labeled value in UI (for example, Support PIN).
- Use that same PIN for agent join.
- Do not expose provisional/debug PINs from backend pre-start records to users.
If these rules are ignored, agent desk often fails with Pincode is not found / code 30308.
Typical Production Flow (Most Common)
This is the flow most teams implement first, and what users usually expect in demos:
- Customer starts session first (
role_type=1)- Backend creates/records session
- Backend returns customer JWT
- Customer SDK starts and receives a PIN
- Agent joins second (
role_type=2)- Agent enters customer PIN
- Backend validates PIN and session state
- Backend returns agent JWT
- Agent opens Zoom-hosted desk iframe (or custom npm agent UI in BYOP)
If a demo only has one generic "session" user, it is incomplete for real cobrowse operations.
Prerequisites
Platform Requirements
- Supported Browsers:
- Chrome 80+ ✓
- Firefox 78+ ✓
- Safari 14+ ✓
- Edge 80+ ✓
- Internet Explorer ✗ (not supported)
- Network Requirements:
- HTTPS required (HTTP works on loopback/local development hosts only)
- Allow cross-origin requests to
*.zoom.us - CSP headers must allow Zoom domains (see CORS and CSP guide)
- Third-Party Cookies:
- Must enable third-party cookies for refresh reconnection
- Privacy mode may limit certain features
Zoom Account Requirements
- Zoom Workplace Account with SDK Universal Credit
- Video SDK App created in Zoom Marketplace
- Cobrowse SDK Credentials from the app's Cobrowse tab
Note: Cobrowse SDK is a feature of Video SDK (not a separate product).
Credentials Overview
You'll receive 4 credentials from Zoom Marketplace → Video SDK App → Cobrowse tab:
| Credential | Type | Used For | Exposure Safe? |
| SDK Key | Public | CDN URL, JWT app_key claim | ✓ Yes (client-side) |
| SDK Secret | Private | Sign JWTs | ✗ No (server-side only) |
| API Key | Private | REST API calls (optional) | ✗ No (server-side only) |
| API Secret | Private | REST API calls (optional) | ✗ No (server-side only) |
Critical: SDK Key is public (embedded in CDN URL), but SDK Secret must never be exposed client-side.
Quick Start
Step 1: Get SDK Credentials
- Go to Zoom Marketplace
- Open your Video SDK App (or create one)
- Navigate to the Cobrowse tab
- Copy your credentials:
- SDK Key
- SDK Secret
- API Key (optional)
- API Secret (optional)
Step 2: Set Up Token Server
Deploy a server-side endpoint to generate JWTs. Use the official sample:
git clone https://github.com/zoom/cobrowsesdk-auth-endpoint-sample.git
cd cobrowsesdk-auth-endpoint-sample
npm install
# Create .env file
cat > .env << EOF
ZOOM_SDK_KEY=your_sdk_key_here
ZOOM_SDK_SECRET=your_sdk_secret_here
PORT=4000
EOF
npm startToken endpoint:
// POST https://YOUR_TOKEN_SERVICE_BASE_URL
{
"role": 1, // 1 = customer, 2 = agent
"userId": "user123",
"userName": "John Doe"
}
// Response
{
"token": "eyJhbGciOiJIUzI1NiIs..."
}Step 3: Customer Side Integration (CDN)
<!DOCTYPE html>
<html>
<head>
<title>Customer - Cobrowse Demo</title>
<script type="module">
const ZOOM_SDK_KEY = 'YOUR_SDK_KEY';
// Load SDK from CDN
(function(r, a, b, f, c, d) {
r[f] = r[f] || { init: function() { r.ZoomCobrowseSDKInitArgs = arguments }};
var fragment = a.createDocumentFragment();
function loadJs(url) {
c = a.createElement(b);
d = a.getElementsByTagName(b)[0];
c["async"] = false;
c.src = url;
fragment.appendChild(c);
}
loadJs(`https://us01-zcb.zoom.us/static/resource/sdk/${ZOOM_SDK_KEY}/js/2.13.2`);
d.parentNode.insertBefore(fragment, d);
})(window, document, "script", "ZoomCobrowseSDK");
</script>
</head>
<body>
<h1>Customer Support</h1>
<button id="cobrowse-btn" disabled>Loading...</button>
<!-- Sensitive fields - will be masked from agent -->
<label>SSN: <input type="text" class="pii-mask" placeholder="XXX-XX-XXXX"></label>
<label>Credit Card: <input type="text" class="pii-mask" placeholder="XXXX-XXXX-XXXX-XXXX"></label>
<script type="module">
let sessionRef = null;
const settings = {
allowAgentAnnotation: true,
allowCustomerAnnotation: true,
piiMask: {
maskCssSelectors: ".pii-mask",
maskType: "custom_input"
}
};
ZoomCobrowseSDK.init(settings, function({ success, session, error }) {
if (success) {
sessionRef = session;
// Listen for PIN code
session.on("pincode_updated", (payload) => {
console.log("PIN Code:", payload.pincode);
// IMPORTANT: this is the PIN agent should use
alert(`Share this PIN with agent: ${payload.pincode}`);
});
// Listen for session events
session.on("session_started", () => console.log("Session started"));
session.on("agent_joined", () => console.log("Agent joined"));
session.on("agent_left", () => console.log("Agent left"));
session.on("session_ended", () => console.log("Session ended"));
document.getElementById("cobrowse-btn").disabled = false;
document.getElementById("cobrowse-btn").innerText = "Start Cobrowse Session";
} else {
console.error("SDK init failed:", error);
}
});
document.getElementById("cobrowse-btn").addEventListener("click", async () => {
// Fetch JWT from your server
const response = await fetch("https://YOUR_TOKEN_SERVICE_BASE_URL", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
role: 1,
userId: "customer_" + Date.now(),
userName: "Customer"
})
});
const { token } = await response.json();
// Start cobrowse session
sessionRef.start({ sdkToken: token });
});
</script>
</body>
</html>Step 4: Agent Side Integration (Iframe)
<!DOCTYPE html>
<html>
<head>
<title>Agent Portal</title>
</head>
<body>
<h1>Agent Portal</h1>
<iframe
id="agent-iframe"
width="1024"
height="768"
allow="autoplay *; camera *; microphone *; display-capture *; geolocation *;"
></iframe>
<script>
async function connectAgent() {
// Fetch JWT from your server
const response = await fetch("https://YOUR_TOKEN_SERVICE_BASE_URL", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
role: 2,
userId: "agent_" + Date.now(),
userName: "Support Agent"
})
});
const { token } = await response.json();
// Load Zoom agent portal
const iframe = document.getElementById("agent-iframe");
iframe.src = `https://us01-zcb.zoom.us/sdkapi/zcb/frame-templates/desk?access_token=${token}`;
}
connectAgent();
</script>
</body>
</html>Step 5: Test the Integration
- Open two separate browsers (or incognito + normal)
- Customer browser: Open customer page, click "Start Cobrowse Session"
- Customer browser: Note the 6-digit PIN displayed
- Agent browser: Open agent page, enter the PIN code
- Both browsers: Session connects, agent can see customer's page
- Test features: Annotations, data masking, remote assist
Key Features
1. Annotation Tools
Both customer and agent can draw on the shared screen:
const settings = {
allowAgentAnnotation: true, // Agent can draw
allowCustomerAnnotation: true // Customer can draw
};Available tools:
- Pen (persistent)
- Vanishing pen (disappears after 4 seconds)
- Rectangle
- Color picker
- Eraser
- Undo/Redo
2. Privacy Masking
Hide sensitive fields from agents using CSS selectors:
const settings = {
piiMask: {
maskType: "custom_input", // Mask specific fields
maskCssSelectors: ".pii-mask, #ssn", // CSS selectors
maskHTMLAttributes: "data-sensitive=true" // HTML attributes
}
};Supported masking:
- Text nodes ✓
- Form inputs ✓
- Select elements ✓
- Images ✗ (not supported)
- Links ✗ (not supported)
3. Remote Assist
Agent can scroll the customer's page:
const settings = {
remoteAssist: {
enable: true,
enableCustomerConsent: true, // Customer must approve
remoteAssistTypes: ['scroll_page'], // Only scroll supported
requireStopConfirmation: false // Confirmation when stopping
}
};4. Multi-Tab Session Persistence
Session continues when customer opens new tabs:
const settings = {
multiTabSessionPersistence: {
enable: true,
stateCookieKey: '$$ZCB_SESSION$$' // Cookie key (base64 encoded)
}
};Session Lifecycle
Customer Flow
- Load SDK → CDN script loads
ZoomCobrowseSDK - Initialize →
ZoomCobrowseSDK.init(settings, callback) - Fetch JWT → Request token from your server (role_type=1)
- Start Session →
session.start({ sdkToken }) - PIN Generated →
pincode_updatedevent fires - Share PIN → Customer gives 6-digit PIN to agent
- Agent Joins →
agent_joinedevent fires - Session Active → Real-time synchronization begins
- End Session →
session.end()or agent leaves
Agent Flow
- Fetch JWT → Request token from your server (role_type=2)
- Load Iframe → Point to Zoom agent portal with token
- Enter PIN → Agent inputs customer's 6-digit PIN
- Connect →
session_joinedevent fires - View Session → Agent sees customer's browser
- Use Tools → Annotations, remote assist, zoom
- Leave Session → Click "Leave Cobrowse" button
Session Recovery (Auto-Reconnect)
When customer refreshes the page:
ZoomCobrowseSDK.init(settings, function({ success, session, error }) {
if (success) {
const sessionInfo = session.getSessionInfo();
// Check if session is recoverable
if (sessionInfo.sessionStatus === 'session_recoverable') {
session.join(); // Auto-rejoin previous session
} else {
// Start new session
session.start({ sdkToken });
}
}
});Recovery window: 2 minutes. After 2 minutes, session ends.
Critical Gotchas and Best Practices
⚠️ CRITICAL: SDK Secret Must Stay Server-Side
Problem: Developers often accidentally embed SDK Secret in frontend code.
Solution:
- ✓ SDK Key → Safe to expose (embedded in CDN URL)
- ✗ SDK Secret → Never expose (use for JWT signing server-side)
// ❌ WRONG - Secret exposed in frontend
const jwt = signJWT(payload, 'YOUR_SDK_SECRET'); // Security risk!
// ✅ CORRECT - Secret stays on server
const response = await fetch('/api/token', {
method: 'POST',
body: JSON.stringify({ role: 1, userId, userName })
});
const { token } = await response.json();SDK Key vs API Key (Different Purposes!)
| Credential | Used For | JWT Claim |
| SDK Key | CDN URL, JWT app_key | app_key: "SDK_KEY" |
| API Key | REST API calls (optional) | Not used in JWT |
Common mistake: Using API Key instead of SDK Key in JWT app_key claim.
Session Limits
| Limit | Value | What Happens |
| Customers per session | 1 | Error 1012: SESSION_CUSTOMER_COUNT_LIMIT |
| Agents per session | 5 | Error 1013: SESSION_AGENT_COUNT_LIMIT |
| Active sessions per browser | 1 | Error 1004: SESSION_COUNT_LIMIT |
| PIN code length | 10 chars max | Error 1008: SESSION_PIN_INVALID_FORMAT |
Session Timeout Behavior
| Event | Timeout | What Happens |
| Agent waiting for customer | 3 minutes | Session ends automatically |
| Page refresh reconnection | 2 minutes | Session ends if not reconnected |
| Reconnection attempts | 2 times max | Session ends after 2 failed attempts |
HTTPS Requirement
Problem: SDK doesn't load on HTTP sites.
Solution:
- Production: Use HTTPS ✓
- Development: Use a loopback host for local HTTP testing ✓
- Development: Use a local HTTPS endpoint with a trusted/self-signed cert if required ✓
Third-Party Cookies Required
Problem: Refresh reconnection doesn't work.
Solution: Enable third-party cookies in browser settings.
Affected scenarios:
- Browser privacy mode
- Safari with "Prevent cross-site tracking" enabled
- Chrome with "Block third-party cookies" enabled
Distribution Method Confusion
| Method | Use Case | Agent Integration | BYOP Required |
| CDN | Most use cases | Zoom-hosted iframe | No (auto PIN) |
| npm | Custom agent UI, full control | Custom npm integration | Yes (required) |
Key Insight: If you want npm integration, you must use BYOP (Bring Your Own PIN) mode.
Cross-Origin Iframe Handling
Problem: Cobrowse doesn't work in cross-origin iframes.
Solution: Inject SDK snippet into cross-origin iframes:
<script>
const ZOOM_SDK_KEY = "YOUR_SDK_KEY_HERE";
(function(r,a,b,f,c,d){r[f]=r[f]||{init:function(){r.ZoomCobrowseSDKInitArgs=arguments}};
var fragment=a.createDocumentFragment();function loadJs(url) {c=a.createElement(b);d=a.getElementsByTagName(b)[0];c.async=false;c.src=url;fragment.appendChild(c);};
loadJs('https://us01-zcb.zoom.us/static/resource/sdk/${ZOOM_SDK_KEY}/js');d.parentNode.insertBefore(fragment,d);})(window,document,'script','ZoomCobrowseSDK');
</script>Same-origin iframes: No extra setup needed.
Known Limitations
Synchronization Limits
Not synchronized:
- HTML5 Canvas elements
- WebGL content
- Audio and Video elements
- Shadow DOM
- PDF rendered with Canvas
- Web Components
Partially synchronized:
- Drop-down boxes (only selected result)
- Date pickers (only selected result)
- Color pickers (only selected result)
Rendering Limits
- High-resolution images may be compressed
- Different screen sizes may cause CSS media query differences
- Cross-origin images may not render (CORS restrictions)
- Cross-origin fonts may not render (CORS restrictions)
Masking Limits
Supported:
- Text nodes ✓
- Form inputs ✓
- Select elements ✓
Not supported:
<img>elements ✗- Links ✗
Complete Documentation Library
This skill includes comprehensive guides organized by category:
Core Concepts
- Two Roles Pattern - Customer vs Agent architecture
- Session Lifecycle - Complete flow from start to end
- JWT Authentication - Token structure and signing
- Distribution Methods - CDN vs npm (BYOP)
Examples
- Customer Integration - Complete customer-side setup
- Agent Integration - Iframe and npm agent setups
- Annotations - Drawing tools configuration
- Privacy Masking - Field masking patterns
- Remote Assist - Agent page control
- Multi-Tab Persistence - Cross-tab sessions
- BYOP Custom PIN - Custom PIN codes
References
- API Reference - Complete SDK methods and events
- Settings Reference - All initialization settings
- Error Codes - Complete error reference
- Session Events - All event types
Troubleshooting
- Common Issues - Quick diagnostics
- Error Codes - Error code reference
- CORS and CSP - Cross-origin configuration
- Browser Compatibility - Browser support
Resources
- Official Docs: https://developers.zoom.us/docs/cobrowse-sdk/
- API Reference: https://marketplacefront.zoom.us/sdk/cobrowse/
- Quickstart Repo: https://github.com/zoom/CobrowseSDK-Quickstart
- Auth Endpoint Sample: https://github.com/zoom/cobrowsesdk-auth-endpoint-sample
- Dev Forum: https://devforum.zoom.us/
- Developer Blog: https://developers.zoom.us/blog/?category=zoom-cobrowse-sdk
Need help? Start with Integrated Index section below for complete navigation.
Integrated Index
This section was migrated from SKILL.md.
Complete navigation guide for all Cobrowse SDK documentation.
Getting Started (Start Here!)
If you're new to Zoom Cobrowse SDK, follow this learning path:
- SKILL.md - Main overview and quick start
- 5-Minute Runbook - Preflight checks for common failures
- Get Started Guide - Step-by-step setup from credentials to first session
- Session Lifecycle - Understand the complete customer and agent flow
- Customer Integration - Integrate SDK into your website
- Agent Integration - Set up agent portal
Core Concepts
Foundational concepts you need to understand:
- Two Roles Pattern - Customer (role_type=1) vs Agent (role_type=2) architecture
- Session Lifecycle - Complete flow: init → start → PIN → connect → end
- JWT Authentication - Token structure, signing, SDK Key vs API Key
- Distribution Methods - CDN vs npm (BYOP mode)
Examples and Patterns
Complete working examples for common scenarios:
Session Management
- Customer Integration - Complete customer-side implementation (CDN and npm)
- Agent Integration - Iframe and npm agent setup patterns
- Session Events - Handle all session lifecycle events
- Auto-Reconnection - Page refresh and session recovery
Features
- Annotation Tools - Enable drawing, highlighting, vanishing pen
- Privacy Masking - Mask sensitive fields with CSS selectors
- Remote Assist - Agent can scroll customer's page
- Multi-Tab Persistence - Session continues across browser tabs
- BYOP Custom PIN - Bring Your Own PIN with npm integration
References
Complete API and configuration references:
SDK Reference
- API Reference - All SDK methods and interfaces
- ZoomCobrowseSDK.init()
- session.start()
- session.join()
- session.end()
- session.on()
- session.getSessionInfo()
- Settings Reference - All initialization settings
- allowAgentAnnotation
- allowCustomerAnnotation
- piiMask
- remoteAssist
- multiTabSessionPersistence
- Session Events Reference - All event types
- pincode_updated
- session_started
- session_ended
- agent_joined
- agent_left
- session_error
- session_reconnecting
- remote_assist_started
- remote_assist_stopped
Error Reference
- Error Codes - Complete error code reference
- 1001-1017: Session errors
- 2001: Token errors
- 9999: Service errors
Official Documentation
- Get Started - Official get started documentation (crawled)
- Features - Official features documentation (crawled)
- Authorization - Official JWT authorization docs (crawled)
- API Documentation - Crawled API reference docs
Troubleshooting
Quick diagnostics and common issue resolution:
- Common Issues - Quick fixes for frequent problems
- SDK not loading
- Token generation fails
- Agent can't connect
- Fields not masked
- Session doesn't reconnect after refresh
- Error Codes - Error code lookup and solutions
- Session start/join failures (1001, 1011, 1016)
- Session limit errors (1002, 1004, 1012, 1013, 1015)
- PIN code errors (1006, 1008, 1009, 1010)
- Token errors (2001)
- CORS and CSP - Cross-origin and Content Security Policy setup
- Access-Control-Allow-Origin headers
- Content-Security-Policy headers
- Cross-origin iframe handling
- Same-origin iframe handling
- Browser Compatibility - Browser requirements and limitations
- Supported browsers (Chrome 80+, Firefox 78+, Safari 14+, Edge 80+)
- Internet Explorer not supported
- Privacy mode limitations
- Third-party cookie requirements
By Use Case
Find documentation by what you're trying to do:
I want to...
Set up cobrowse for the first time:
- Get Started Guide
- JWT Authentication
- Customer Integration
- Agent Integration
Add annotation tools:
- Annotation Tools Example
- [Settings Reference - allowAgentAnnotation](references/settings-reference.md#allowa gentannotation)
- Settings Reference - allowCustomerAnnotation
Hide sensitive data from agents:
- Privacy Masking Example
- Settings Reference - piiMask
Let agents control customer's page:
- Remote Assist Example
- Settings Reference - remoteAssist
Use custom PIN codes:
- BYOP Custom PIN Example
- JWT Authentication - enable_byop
Handle page refreshes:
- Auto-Reconnection Example
- Session Lifecycle - Recovery
Integrate with npm (not CDN):
- BYOP Custom PIN Example
- Distribution Methods
Debug session connection issues:
- Common Issues
- Error Codes
- Session Events - session_error
Configure CORS and CSP headers:
- CORS and CSP Guide
- Browser Compatibility
By Error Code
Quick lookup for error code solutions:
Session Errors
- 1001 (SESSION_START_FAILED) → Error Codes
- 1002 (SESSION_CONNECTING_IN_PROGRESS) → Error Codes
- 1004 (SESSION_COUNT_LIMIT) → Error Codes
- 1011 (SESSION_JOIN_FAILED) → Error Codes
- 1012 (SESSION_CUSTOMER_COUNT_LIMIT) → Error Codes
- 1013 (SESSION_AGENT_COUNT_LIMIT) → Error Codes
- 1015 (SESSION_DUPLICATE_USER) → Error Codes
- 1016 (NETWORK_ERROR) → Error Codes
- 1017 (SESSION_CANCELING_IN_PROGRESS) → Error Codes
PIN Errors
- 1006 (SESSION_JOIN_PIN_NOT_FOUND) → Error Codes
- 1008 (SESSION_PIN_INVALID_FORMAT) → Error Codes
- 1009 (SESSION_START_PIN_REQUIRED) → Error Codes
- 1010 (SESSION_START_PIN_CONFLICT) → Error Codes
Auth Errors
- 2001 (TOKEN_INVALID) → Error Codes
Service Errors
- 9999 (UNDEFINED) → Error Codes
Official Resources
External documentation and samples:
- Official Docs: https://developers.zoom.us/docs/cobrowse-sdk/
- API Reference: https://marketplacefront.zoom.us/sdk/cobrowse/
- Quickstart Repo: https://github.com/zoom/CobrowseSDK-Quickstart
- Auth Endpoint Sample: https://github.com/zoom/cobrowsesdk-auth-endpoint-sample
- Dev Forum: https://devforum.zoom.us/
- Developer Blog: https://developers.zoom.us/blog/?category=zoom-cobrowse-sdk
Documentation Structure
cobrowse-sdk/
├── SKILL.md # Main skill entry point
├── SKILL.md # This file - complete navigation
├── get-started.md # Step-by-step setup guide
│
├── concepts/ # Core concepts
│ ├── two-roles-pattern.md
│ ├── session-lifecycle.md
│ ├── jwt-authentication.md
│ └── distribution-methods.md
│
├── examples/ # Working examples
│ ├── customer-integration.md
│ ├── agent-integration.md
│ ├── annotations.md
│ ├── privacy-masking.md
│ ├── remote-assist.md
│ ├── multi-tab-persistence.md
│ ├── byop-custom-pin.md
│ ├── session-events.md
│ └── auto-reconnection.md
│
├── references/ # API and config references
│ ├── api-reference.md # SDK methods
│ ├── settings-reference.md # Init settings
│ ├── session-events.md # Event types
│ ├── error-codes.md # Error reference
│ ├── get-started.md # Official docs (crawled)
│ ├── features.md # Official docs (crawled)
│ ├── authorization.md # Official docs (crawled)
│ └── api.md # API docs (crawled)
│
└── troubleshooting/ # Problem resolution
├── common-issues.md
├── error-codes.md
├── cors-csp.md
└── browser-compatibility.mdSearch Tips
Find by keyword:
- "annotation" → Annotation Tools
- "mask" or "privacy" → Privacy Masking
- "PIN" or "custom PIN" → BYOP Custom PIN
- "JWT" or "token" → JWT Authentication
- "error" → Error Codes
- "CORS" or "CSP" → CORS and CSP
- "iframe" → Agent Integration
- "npm" → Distribution Methods, BYOP
- "refresh" or "reconnect" → Auto-Reconnection
- "agent" → Agent Integration, Two Roles Pattern
- "customer" → Customer Integration, Two Roles Pattern
Not finding what you need? Check the Official Documentation or ask on the Dev Forum.
Environment Variables
- See references/environment-variables.md for standardized
.envkeys and where to find each value.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

