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.

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.0

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.0
File Size Uploaded Provenance Actions
promptli-0.2.0.tar.gz 46.2 kB With provenance Details for promptli-0.2.0.tar.gz

Built distribution (wheel)

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

Total release size: 93.3 kB

Release files / promptli-0.2.0.tar.gz

Download URL promptli-0.2.0.tar.gz
Size 46.2 kB
Tags Source
SHA-256 checksum
How to use checksums
59ce5c3c3b49f087420bf7529c5a994b38944210633e8c191a701cc13d3f464e
BLAKE2b-256 checksum
How to use checksums
4cab87c508a3a18b298adda0ceddc5b19ac49a1ab4969630eeb3568c7df1ce68
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 Oct 27, 2026.

Transparency log

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

Download URL promptli-0.2.0-py3-none-any.whl
Size 47.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d48cbb94d2e0ed26b2f86f7ffef69c1937b75f9cff9738f50b4cb08b0c992757
BLAKE2b-256 checksum
How to use checksums
d65b20889c28e5c388c94480c48db7bb2ec6bf8ef94bf56be21cf74e28485983
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 Oct 27, 2026.

Transparency log

Security for promptli 0.2.0

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.0.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 Oct 27, 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