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.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| promptli-0.2.1.tar.gz | 49.3 kB | With provenance | Details for promptli-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| promptli-0.2.1-py3-none-any.whl | Python 3 | none | any | Details for promptli-0.2.1-py3-none-any.whl |
Total release size: 98.6 kB
Release files / promptli-0.2.1.tar.gz
| Download URL | promptli-0.2.1.tar.gz |
|---|---|
| Size | 49.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4aa14c14468fe7dc88b2c303fe51863ebd0975391cf08270cd6e5f4de7fbe225
|
|
BLAKE2b-256 checksum How to use checksums |
b3fa0759fdea5d6b614866d1c6b60d4c6f1a583d9090b055d267a7cbcaa9d237
|
| 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 4, 2026.
Transparency logRelease files / promptli-0.2.1-py3-none-any.whl
| Download URL | promptli-0.2.1-py3-none-any.whl |
|---|---|
| Size | 49.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7276a8a29125147ee800694a7680fa3e1896070e48bde7de6843e5bd66a524fb
|
|
BLAKE2b-256 checksum How to use checksums |
8c61136f129d0a2f53f2809f7867a0c42e7db5c1256354096b70b7c0086c1acd
|
| 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 4, 2026.
Transparency logSecurity for promptli 0.2.1
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.
Attestation for promptli-0.2.1.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 4, 2026.
Transparency logA 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.