deploy-websocket

Installation
SKILL.md

deploy-websocket

WebSocket is the video-free channel: a lightweight connection ideal for server-side integrations, headless clients, or custom apps. It runs in one of two modalities — audio (voice, the default) or text (a typed chat with no audio) — chosen per connection. Like WebRTC, you deploy by creating a per-session connection and connecting; the agent owns persona, voice, tools, and knowledge.

Prerequisites

  • An agent ID (agent_…). If you don't have one, route to [[create-agent]].
  • A server-side place to hold the API key — the token request must not run in an untrusted client.

1. Create a session

curl -X POST https://napster-api.napster.com/public/agents/agent_abc123/connections \
  -H "X-Api-Key: $NAPSTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "channelType": "websocket" }'

Returns { token, connection: { id, … } }. Store connection.id to fetch the transcript later ([[monitor-sessions]]). You can pass externalClientId for cross-session memory, and initialSpeech to tell the agent how to open ([[session-runtime]]).

Installs
20
First Seen
May 29, 2026