Skip to main content

promptli-comms

SDKs, CLI and the agent-plugin gateway for Promptli Comms: email, SMS and phone calls for AI agents.

Path What
sdk/python pip install promptli: async-first client (AsyncPromptli) + sync Promptli, typed models, webhook verification, Agent Link client, promptli CLI
gateway promptli-gateway: runtime-agnostic plugin core (Agent Link → per-contact agent sessions, setup/bootstrap/doctor, autostart)
spec Synced from the server's contracts/ (OpenAPI, errors, Agent Link protocol, signing vectors); never edit by hand

Quick start

from promptli import Promptli

with Promptli() as p:  # PROMPTLI_API_KEY from the environment
    glow = p.identity("glow")
    glow.send_email("jane@example.com", "Your booking", text="Confirmed for 3pm")
    glow.provision_phone_number(region="NY")
    glow.send_text("+15551234567", "Reminder: 3pm tomorrow")
import asyncio
from promptli import AsyncPromptli


async def main():
    async with AsyncPromptli() as p:
        async with p.identity("glow").link(instance="laptop") as link:  # outbound WebSocket, no public URL
            async for event in link:
                print(event["type"], event["data"])
                await link.ack(event)


asyncio.run(main())

Log in: promptli login opens your browser, where you pick or create an agent (add --number to get it a phone number, --no-browser on SSH). Nothing to copy or paste; the login refreshes itself and can be revoked under API keys → Connected apps. promptli login --api-key still works, and so does PROMPTLI_API_KEY. In code, AsyncPromptli(credential_auth(path)) uses a saved login.

CLI: promptli login, promptli logout, promptli whoami, promptli email send -i glow --to jane@example.com --subject Hi --text Hello, promptli text send -i glow --to +15551234567 --text Hi, promptli events tail -i glow, promptli doctor -i glow.

Voices and engines: promptli call voices --provider openai lists the voices for the Realtime engines, and promptli call voices --play cedar plays a demo clip. promptli call voice -i glow --engine realtime-mini --realtime-voice cedar picks the engine and voice for the Promptli assistant:

Engine Price Voices
Realtime (default) $0.25/min OpenAI
Realtime mini $0.15/min OpenAI
cascaded $0.10/min Cartesia

Webhooks: from promptli import verify_webhook → verify_webhook(raw_body, headers, "whsec_…").

Development

uv sync
./scripts/generate_models.sh        # after syncing spec/
uv run pytest                       # unit + conformance
PROMPTLI_API_KEY=psk_test_… PROMPTLI_BASE_URL=http://localhost:8000 uv run pytest -m live tests/live

Metadata

Release files for promptli 0.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for promptli 0.2.2
File Size Uploaded Provenance Actions
promptli-0.2.2.tar.gz 49.3 kB With provenance Details for promptli-0.2.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for promptli 0.2.2
File Interpreter ABI Platform Actions
promptli-0.2.2-py3-none-any.whl Python 3 none any Details for promptli-0.2.2-py3-none-any.whl

Total release size: 98.6 kB

Release files / promptli-0.2.2.tar.gz

Download URL promptli-0.2.2.tar.gz
Size 49.3 kB
Tags Source
SHA-256 checksum
How to use checksums
aa31f51ec2ac06a760184f32d09c270b960c5b446051cd5a3879509eeeefb8bc
BLAKE2b-256 checksum
How to use checksums
63eb40e907d4fec8c2d1ea03604e71e7621f8a2ba53a2099974b4e0e8ebd3782
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.

Transparency log

Release files / promptli-0.2.2-py3-none-any.whl

Download URL promptli-0.2.2-py3-none-any.whl
Size 49.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1363aeca0587f2aef0dca7d4e5deca457602da8c52970dee12986642f3d64af1
BLAKE2b-256 checksum
How to use checksums
97ab608f662798aef32d43ff491643efe14398d44548316ec4bee7fdf7f23d3d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.

Transparency log

Security for promptli 0.2.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for promptli-0.2.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page