deploy-webrtc

Installation
SKILL.md

deploy-webrtc

This takes a developer from "I have an agent ID" to "the agent is live in my web app — greeting the user, speaking, and handling tool calls." WebRTC is the browser channel: real-time audio and video through the Web SDK (@touchcastllc/napster-companion-api).

There is no "deploy to web" API call. You deploy by (1) standing up a server-side endpoint that mints a connection token and (2) handing that token to the Web SDK in the browser. The agent owns the persona, voice, tools, and knowledge — the connection inherits them.

Prerequisites

  • An agent ID (agent_…). If you don't have one, route to [[create-agent]].

1. Set up the token endpoint (ask first)

The browser must never hold the API key. A server-side endpoint calls the API and returns a short-lived token. Ask the developer how they want to handle it — don't assume:

To use the SDK in the browser you need a small server-side endpoint that calls the Napster API for a short-lived connection token. Your API key stays on the server; the browser only sees the token. How do you want to handle that?

  1. I already have a backend — add the token endpoint to it.
  2. I don't have a backend yet — drop in a local Node script to prototype, move it to production later.
  3. Skip for now.
Installs
21
First Seen
May 29, 2026