Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

signalwire-sdk

Latest version: v3.16.0.dev162

Overview

Last scanned
24 Nov 2026
Published
24 Nov 2026
PyPI package Publisher: briankwest
10 Stars
7 Forks
64 Versions
9.7K Downloads
Python Repo language

Scan summary

signalwire-sdk was last scanned on 24 Nov 2026 at version 3.16.0.dev162. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 64 versions; the latest 5 were published within 2 days (23 and 24 Nov 2026).
  • Findings: No rules fired in version 3.16.0.dev162.
  • Downloads: 9,666 downloads.

Versions

64 versions published
Versions and the rules that fired in each
VersionPublishedStatus
3.16.0.dev162 LATEST 24 Nov 2026 No rules fired
3.16.0 24 Nov 2026 No rules fired
3.15.3 23 Nov 2026 No rules fired
3.15.3.dev161 23 Nov 2026 Not shown
3.15.2.dev160 23 Nov 2026 Not shown

No rules fired in 3.16.0.dev162

Findings

Findings for v3.16.0.dev162. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 3.16.0.dev162; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

SignalWire SDK for Python

Build AI voice agents, control live calls over WebSocket, and manage every SignalWire resource over REST, all from one package.


What's in this SDK

Capability What it does Quick link
AI Agents Build voice agents that handle calls on their own. The platform runs the AI pipeline, and your code defines the persona, tools, and call flow. Agent Guide
RELAY Client Control live calls and SMS/MMS in real time over WebSocket: answer, play, record, collect DTMF, conference, transfer, and more RELAY docs
REST Client Manage SignalWire resources over HTTP: phone numbers, SIP endpoints, Fabric AI agents, video rooms, messaging, and 20 API namespaces REST docs

Install the SDK from PyPI:

pip install signalwire-sdk

The package installs its own documentation. sw-pydocs prints a map of the SDK for the installed version, with the docs, examples and tutorials on disk, and sw-pydocs api <name> reads signatures from the installed code. If you're a coding agent working with the SDK, start there:

sw-pydocs                 # the map: what the SDK does and where to start
sw-pydocs agents          # one topic: concepts, files to read, examples, API
sw-pydocs api AgentBase   # a signature, docstring and members

AI Agents

Each agent is a self-contained microservice that generates SWML (SignalWire Markup Language) and handles SWAIG (SignalWire AI Gateway) tool calls. The SignalWire platform runs the entire AI pipeline (STT, LLM, TTS), and your agent defines the behavior.

from signalwire import AgentBase
from signalwire.core.function_result import FunctionResult


class MyAgent(AgentBase):
    def __init__(self):
        super().__init__(name="my-agent", route="/agent")

        self.add_language(name="English", code="en-US", voice="inworld.Mark")
        self.prompt_add_section("Role", body="You are a helpful assistant.")

    @AgentBase.tool(name="get_time")
    def get_time(self):
        """Get the current time"""
        from datetime import datetime

        return FunctionResult(f"The time is {datetime.now().strftime('%H:%M:%S')}")


if __name__ == "__main__":
    agent = MyAgent()
    agent.run()

swaig-test checks the agent locally, without running a server:

swaig-test my_agent.py --list-tools
swaig-test my_agent.py --dump-swml
swaig-test my_agent.py --exec get_time
Agent Features

An agent built on AgentBase gets these features:

  • Prompt Object Model (POM): structured prompt composition with prompt_add_section()
  • SWAIG tools: functions defined with @AgentBase.tool() that the AI calls mid-conversation, with native access to the call's media stack
  • Skills system: capabilities added in one line, such as agent.add_skill("datetime")
  • Contexts and steps: structured multi-step workflows with navigation control
  • DataMap tools: tools that run on SignalWire's servers, calling REST APIs without your own webhook
  • Dynamic configuration: per-request agent customization for multi-tenant deployments
  • Call flow control: pre-answer, post-answer, and post-AI verb insertion
  • Prefab agents: ready-to-use archetypes (InfoGatherer, Survey, FAQ, Receptionist, Concierge)
  • Multi-agent hosting: multiple agents on a single server with AgentServer
  • Local search: offline document search with vector similarity and keyword matching
  • SIP routing: SIP calls routed to agents by username
  • Session state: persistent conversation state with global data and post-prompt summaries
  • Security: auto-generated basic auth, per-call tool tokens, webhook signature validation, and TLS support
  • Serverless: automatic detection of Lambda, CGI, Google Cloud Functions, and Azure Functions
Agent Examples

The examples/ directory contains 50+ working examples:

Example What it demonstrates
simple_agent.py POM prompts, SWAIG tools, multilingual support, LLM tuning
contexts_demo.py Multi-persona workflow with context switching and step navigation
data_map_demo.py Server-side API tools without webhooks
skills_demo.py Loading built-in skills (datetime, math)
call_flow_and_actions_demo.py Call flow verbs, debug events, FunctionResult actions
session_and_state_demo.py on_summary, global data, post-prompt summaries
multi_agent_server.py Multiple agents on one server
lambda_agent.py AWS Lambda deployment with Mangum
comprehensive_dynamic_agent.py Per-request dynamic configuration, multi-tenant routing

See examples/README.md for the full list organized by category.


RELAY Client

Real-time call control and messaging over WebSocket. The RELAY client connects to SignalWire via the Blade protocol and gives you imperative, async control over live phone calls and SMS/MMS.

from signalwire.relay import RelayClient

client = RelayClient(
    project="...", token="...", host="example.signalwire.com", contexts=["default"]
)


@client.on_call
async def handle(call):
    await call.answer()
    action = await call.play([{"type": "tts", "params": {"text": "Welcome!"}}])
    await action.wait()
    await call.hangup()


client.run()

The RELAY client provides:

  • Calling methods for play, record, collect, detect, tap, stream, AI, conferencing, and more
  • SMS/MMS messaging with delivery tracking
  • Action objects with wait(), stop(), pause(), resume()
  • Auto-reconnect with exponential backoff

See the RELAY documentation for the full guide, API reference, and examples.


REST Client

Synchronous REST client for managing SignalWire resources and controlling calls over HTTP. No WebSocket required.

from signalwire.rest import RestClient

client = RestClient(project="...", token="...", host="example.signalwire.com")

client.fabric.ai_agents.create(name="Support Bot", prompt={"text": "You are helpful."})
client.calling.play(call_id, play=[{"type": "tts", "params": {"text": "Hello!"}}])
client.phone_numbers.search(areacode="512")
client.datasphere.documents.search(query_string="billing policy")

The REST client provides:

  • 20 namespaced API surfaces: Fabric (13 resource types), Calling (37 commands), Video, Datasphere, Phone Numbers, SIP, Queues, Recordings, and more
  • A shared requests.Session for connection pooling
  • Dict returns: raw JSON, with no wrapper objects

See the REST documentation for the full guide, API reference, and examples.


Installation

The core package covers agents, RELAY and REST. The search extras add local document search; install the one that fits your needs:

# Core SDK (agents, RELAY, REST)
pip install signalwire-sdk

# With search (pick one based on your needs)
pip install "signalwire-sdk[search-queryonly]"   # Query pre-built .swsearch files (~400MB)
pip install "signalwire-sdk[search]"              # Build + query search indexes (~500MB)
pip install "signalwire-sdk[search-full]"         # + PDF, DOCX, Excel, HTML processing (~600MB)
pip install "signalwire-sdk[search-all]"          # All search features (~700MB)

Documentation

Full reference documentation is available at signalwire.com/docs/server-sdks.

Guides are also available in the docs/ directory. They're installed with the package, with the examples and tutorials: sw-pydocs path prints where.

Getting Started
  • Agent Guide: creating agents, prompt configuration, dynamic setup
  • Architecture: SDK architecture and core concepts
  • SDK Features: feature overview, SDK vs raw SWML comparison
Core Features
  • SWAIG Reference: function results, actions, post_data lifecycle
  • Contexts and Steps: structured workflows, navigation, gather mode
  • DataMap Guide: serverless API tools without webhooks
  • LLM Parameters: temperature, top_p, barge confidence tuning
  • SWML Service Guide: low-level construction of SWML documents
  • AI Chat Gateway: browser chat widgets without a token in the page
Skills and Extensions
  • Skills System: built-in skills and the modular framework
  • Third-Party Skills: creating and publishing custom skills
  • MCP Gateway: Model Context Protocol integration
Search System
  • Search Overview: architecture, installation, quick start
  • Search Indexing: building indexes, chunking, embeddings
  • Search Integration: agent integration, skills, HTTP API
  • Search Deployment: production deployment, pgvector, scaling
Deployment
  • CLI Guide: swaig-test and sw-search command reference
  • Cloud Functions: Lambda, Cloud Functions, Azure deployment
  • Bedrock Agent: Amazon Bedrock integration
  • Configuration: environment variables, SSL, proxy setup
  • Security: authentication and security model
Reference
  • API Reference: complete class and method reference
  • Web Service: HTTP server and endpoint details
  • Skills Parameter Schema: skill parameter definitions
Tutorials
  • Multi-Agent Tutorial: 5-lesson guide from first agent to multi-agent systems
  • Fred Bot Tutorial: build a Wikipedia AI assistant step by step
  • Full-Guardrails Agent Tutorial: build a reservation line that keeps its rules in code, not in the prompt

Environment Variables

The SDK reads these environment variables:

Variable Used by Description
SIGNALWIRE_PROJECT_ID RELAY, REST Project identifier
SIGNALWIRE_API_TOKEN RELAY, REST API token
SIGNALWIRE_SPACE REST, AI Chat Space hostname (e.g. example.signalwire.com). AI Chat also accepts the bare space name.
SIGNALWIRE_RELAY_HOST RELAY RELAY endpoint (default: relay.signalwire.com). Without it, RELAY reads SIGNALWIRE_SPACE, for compatibility, so set it wherever SIGNALWIRE_SPACE is set.
SWML_BASIC_AUTH_USER Agents Basic auth username (default: auto-generated)
SWML_BASIC_AUTH_PASSWORD Agents Basic auth password (default: auto-generated)
SWML_PROXY_URL_BASE Agents Base URL when behind a reverse proxy
SIGNALWIRE_SIGNING_KEY Agents Your project's signing key. When it's set, agents reject requests SignalWire didn't sign.
SIGNALWIRE_SWAIG_SECRET Agents Secret for per-call tool tokens. Use the same value on every replica.
PORT Agents Port the agent listens on (default: 3000)
SWML_SSL_ENABLED Agents Enable HTTPS (true, 1, yes)
SWML_SSL_CERT_PATH Agents Path to SSL certificate
SWML_SSL_KEY_PATH Agents Path to SSL private key
SIGNALWIRE_LOG_LEVEL All Logging level (debug, info, warning, error, critical)
SIGNALWIRE_LOG_MODE All Set to off to suppress all logging

Testing

Run the test suite from the repository root:

# Install dev dependencies
pip install -r requirements-dev.txt

# Run the test suite
pytest

# Run by category
pytest -m unit
pytest -m integration
pytest -m skills

# Coverage
pytest --cov=signalwire --cov-report=html

License

MIT. See LICENSE for details.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • pypi-releases signalwire-sdk

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

PolinRider Returns
Research

PolinRider Returns: Hijacked npm Packages Use Ethereum Blockchain to Conceal Malware Infrastructure

Copy of Template Design OX Blog (1)
Research

Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret Stealing Malware Via GitHub Actions & npm

Vulnerability Insights

OpenSSH Password Authentication Bypass on Alpine Linux (*sshole) – CVE-2026-123158

Frame 2085668439 (1)
Group 1261154229