Developers

SDKs

A browser SDK for live voice, official server SDKs for Node and Python, and a public OpenAPI spec for every other language.

Browser (@glytos/web)

Embed a live voice agent in any web app over WebRTC. Framework-agnostic and dependency-free. The browser never holds a long-lived credential: your server mints a short-lived, workflow-scoped token, and the SDK connects with only that.

bash
npm install @glytos/web

1. Mint a token on your server

Call the web-token endpoint with your API key and return the result to the browser.

http
POST /api/v1/calls/web-token
X-API-Key: gly_••••••••••••

{ "workflow_uuid": "..." }   // returns { token, ws_url }

2. Start the call in the browser

typescript
import { GlytosWebCall } from '@glytos/web';

// token + wsUrl come from your server's POST /api/v1/calls/web-token
const call = new GlytosWebCall({ token, wsUrl });

call.on('status', (s) => console.log('status', s));
call.on('transcript', (m) => console.log(m.role, m.text, m.final));
call.on('ended', () => console.log('call ended'));

await call.start();

// in-call controls
call.setMicMuted(true);
call.stop();

The call emits status, transcript, ended, and error events, and exposes setMicMuted, setAssistantMuted, and stop for in-call control.

Server SDKs

Official, typed SDKs for Node.js and Python, or plain HTTP from any language. Same resources, same webhook verifier. Pick your language:

# List your agents
curl https://api.glytos.com/api/v1/workflows \
  -H "X-API-Key: $GLYTOS_API_KEY"

Use a server SDK from your backend only. Never ship an API key to the browser. For in-browser voice, use @glytos/web with a scoped token.

Any other language

Every endpoint is described by a public OpenAPI 3 spec, so you can generate a typed client for Go, Ruby, C#, Java, PHP, and more:

bash
# Generate a typed client from the public OpenAPI spec
npx @openapitools/openapi-generator-cli generate \
  -i https://api.glytos.com/api/v1/openapi.json \
  -g go -o ./glytos-client

Model Context Protocol

Glytos also runs as an MCP server, exposing its tools to MCP-compatible assistants and IDEs.

bash
python -m glytos.mcp
SDKs · Glytos