opentok
OpenTok server-side SDK
Decision gist · record as of 2026-08-14
Yes, if you are actively using the Tokbox/OpenTok platform and need server-side session and token management. The package is stable, actively maintained, has low install friction, and carries no known vulnerabilities. However, if you are starting a new project, verify whether you should use the newer Vonage Server SDK for Python instead, which supports the unified Vonage Video API platform.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires valid Tokbox/OpenTok API credentials (api_key and api_secret) to authenticate with the platform.
- Low install friction with five lightweight runtime dependencies (requests, six, pytz, pyjwt, rsa).
- Package is actively maintained with recent releases and a stable codebase.
License · maintenance · safety
LICENSE.txt (permissive) — MIT license (permissive) allows use in commercial and proprietary projects with minimal restrictions.
last release 2026-06-25 (50 days) · last repo commit 2026-06-26 · 73 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,023,853 downloads/mo, #4,488 on PyPI
Alternatives
Verify before relying
pip install opentok
from opentok import Client
opentok = Client(api_key, api_secret)
session = opentok.create_session()
token = session.generate_token()- Whether the package works with Python versions older than 3.9 despite classifiers listing 3.9–3.13.
- Current status of Tokbox platform relative to the newer Vonage unified platform and whether migration is recommended for new projects.
What it is and what it does
The OpenTok Python SDK is a server-side library for interacting with the Tokbox/OpenTok platform, which provides real-time video and audio communication infrastructure. It lets you programmatically create sessions, generate access tokens for clients, start and manage session recordings (archives), and configure session parameters like media routing and end-to-end encryption. The library wraps HTTP calls to the OpenTok API using standard dependencies like requests and JWT signing via pyjwt and rsa.
You use it in a backend service to provision sessions and tokens that your client applications (web, mobile, desktop) then use to connect to video rooms. It handles the server-side orchestration—session creation, token generation with role-based access control, archive management—while the actual media streaming happens client-side. The package is designed specifically for the Tokbox platform; the description notes that new projects should consider the Vonage Server SDK for Python instead, which supports the newer unified Vonage Video API.
Use it for
- Generate secure session tokens in a backend API to provision video rooms for client applications.
- Start and manage session recordings (archives) with configurable output modes and resolution settings.
- Create sessions with specific media routing and archiving modes for different application requirements.
- Add or remove individual streams from an active archive during a session.
- Implement role-based access control by generating tokens with different roles (moderator, subscriber) for session participants.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you are actively using the Tokbox/OpenTok platform and need server-side session and token management.
The package is stable, actively maintained, has low install friction, and carries no known vulnerabilities. However, if you are starting a new project, verify whether you should use the newer Vonage Server SDK for Python instead, which supports the unified Vonage Video API platform.
Install
opentok on PyPI
Before you install
Low install friction with five lightweight runtime dependencies (requests, six, pytz, pyjwt, rsa). Package is actively maintained with recent releases and a stable codebase.
Requires valid Tokbox/OpenTok API credentials (api_key and api_secret) to authenticate with the platform.
License in practice
MIT license (permissive) allows use in commercial and proprietary projects with minimal restrictions.
Quickstart
pip install opentok
from opentok import Client
opentok = Client(api_key, api_secret)
session = opentok.create_session()
token = session.generate_token()
Verify before relying
- Whether the package works with Python versions older than 3.9 despite classifiers listing 3.9–3.13.
- Current status of Tokbox platform relative to the newer Vonage unified platform and whether migration is recommended for new projects.
Package facts
| License | LICENSE.txt permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 5 packagesrequestssixpytzpyjwtrsa |
| Maintenance | Actively maintained 50 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,023,853 / month, #4,488 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersIntended Audience :: Telecommunications IndustryLicense :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.9Topic :: CommunicationsTopic :: Communications :: ChatTopic :: Communications :: ConferencingTopic :: Multimedia :: Sound/Audio :: Capture/RecordingTopic :: Multimedia :: Sound/Audio :: PlayersTopic :: Multimedia :: Video :: CaptureTopic :: Multimedia :: Video :: DisplayTopic :: Software Development :: Libraries :: Python Modules |
Evidence: opentok-3.14.0-py2.py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “opentok session token generation”
- opentokServer-side SDK for generating OpenTok sessions, tokens, and managing…
- PyJWTPyJWT encodes and decodes JSON Web Tokens (JWT) according to RFC…
- djangorestframework-simplejwtProvides JSON Web Token (JWT) authentication for Django REST…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also vonage-video · vonage-jwt · daily-python · vonage · vonage-voice · vonage-network-auth · vonage-http-client · vonage-account · vonage-users · livekit