pupa-backend
FastAPI / LangGraph backend that powers the Pupa
iOS / macOS client. Speaks plain AG-UI
over a single POST / SSE stream; pair-once auth keeps a long-lived token in
each device's Keychain. Runs locally next to the client, or in the cloud
(Railway + Postgres).
Install
Install from PyPI with uv (isolated tool venv, puts
the pupa-backend CLI on your PATH):
uv tool install pupa-backend # latest
uv tool install pupa-backend==0.0.72 # pin to match your app
Quick start
pupa-backend run # start the backend on :8004
pupa-backend pair # mint a QR pairing code for your iPhone
pupa-backend status # is it running?
pupa-backend service-install # run as launchd / systemd background service
LLM credentials (AWS Bedrock, Anthropic, or any OpenAI-compatible endpoint) live
in your shell environment, never in the config file. Configuration is written by
pupa-backend setup to ~/.pupa-backend/config.yml.
Auth model
The backend requires auth by default — the only client credential is a
paired-device token in the iOS Keychain. Set PUPA_API_KEY server-side, run
pupa-backend pair for an 8-char code, and pair from the app. For a same-laptop
dev loop only, PUPA_AUTH_DISABLED=1 skips auth entirely (never on a reachable
backend).
Documentation
Full docs, architecture, deploy runbook, and contributing guide live in the GitHub repository:
License
Metadata
Release files for pupa-backend 0.0.101
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 |
|---|---|---|---|---|
| pupa_backend-0.0.101.tar.gz | 594.5 kB | With provenance | Details for pupa_backend-0.0.101.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pupa_backend-0.0.101-py3-none-any.whl | Python 3 | none | any | Details for pupa_backend-0.0.101-py3-none-any.whl |
Total release size: 842.1 kB
Release files / pupa_backend-0.0.101.tar.gz
| Download URL | pupa_backend-0.0.101.tar.gz |
|---|---|
| Size | 594.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
00e346950538edd5268628d86bf523bdf8c97d557fd164d1db87bcd02d2ec6c9
|
|
BLAKE2b-256 checksum How to use checksums |
aeae15a10688d4eb9b43094401c4bbcabed5faf30b0c8726c7c66072042b00b9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 23, 2026.
Transparency logRelease files / pupa_backend-0.0.101-py3-none-any.whl
| Download URL | pupa_backend-0.0.101-py3-none-any.whl |
|---|---|
| Size | 247.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
94475179045352123fbaf492fe3a467d865abf40041966dc57ee0f26693d05b3
|
|
BLAKE2b-256 checksum How to use checksums |
3d6a4ea6be73027ee787bc5bd47b9a372e50937d521be91eef7671e604dd720f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 23, 2026.
Transparency logSecurity for pupa-backend 0.0.101
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 pupa_backend-0.0.101.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 Sep 23, 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.