本文へスキップ

HOST

Host SDK

各 host がスコープ付き embed token を mintし、ページが JS チャットまたは iframe を開く。host API キーはサーバーを出ない。

Host SDK

各 host がスコープ付き embed token を mintし、ページが JS チャットまたは iframe を開く。host API キーはサーバーを出ない。

手順:PHP、Laravel、Python、Node、Ruby、Go、Java、.NET、またはフレームワークなしで embed token を mint。

Same handshake on every host

Numbered steps on each language page match this contract. Each page also has a ready Cursor prompt. Skip the SDK with no framework.

  1. 1

    Docker sidecar

    SVEDA_EMBED_ENABLED=true on ghcr.io/neresson/sveda-server plus a host API key. CORS lists the page origin so /build/sveda/sveda-chat.css and sveda-chat.js load.

  2. 2

    Install the SDK

    Or skip it. A static page plus curl or a 20-line mint route is enough.

  3. 3

    Match the keys

    SVEDA_CLIENT_HOST_API_KEY equals SVEDA_EMBED_HOST_API_KEY.

  4. 4

    POST /sveda/session

    Return origin, token, expires_in.

  5. 5

    Open the chat

    Set data-sveda-origin and data-sveda-session, then JS or iframe.

Start without a framework.

Static HTML, an iframe, or a 20-line session endpoint. Then pick a language SDK when you want typed minting.

No framework