Skip to main content

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

MIT

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)

Source distribution for pupa-backend 0.0.101
File Size Uploaded
pupa_backend-0.0.101.tar.gz 594.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pupa-backend 0.0.101
File Interpreter ABI Platform
pupa_backend-0.0.101-py3-none-any.whl Python 3 none any Details

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 log

Release 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 log

Release history Release notifications | RSS feed

This release

0.0.101 This release

2 release files

0.0.99

2 release files

0.0.98

2 release files

0.0.95

2 release files

0.0.94

2 release files

0.0.90

2 release files

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