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

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.99
File Size Uploaded
pupa_backend-0.0.99.tar.gz 594.1 kB Details

Built distribution (wheel)

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

Total release size: 841.4 kB

Release files / pupa_backend-0.0.99.tar.gz

Download URL pupa_backend-0.0.99.tar.gz
Size 594.1 kB
Tags Source
SHA-256 checksum
How to use checksums
acee87ce116ab546fbe00d60f912be3f0c16e41f35e791b255959d293df9542d
BLAKE2b-256 checksum
How to use checksums
b888637b849ec90ad8f1169bd61516a8fed4a06ab9d1836c22f354c772dd5634
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 15, 2026.

Transparency log

Release files / pupa_backend-0.0.99-py3-none-any.whl

Download URL pupa_backend-0.0.99-py3-none-any.whl
Size 247.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
218ef9030d8d22d3432ef43189e2613954b25af55ad759d825d43521730ec6b4
BLAKE2b-256 checksum
How to use checksums
b2b2aedfc5122d078a8f2aad1de359fc506e564fc29e9399bfaf326a2f204cb5
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 15, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.0.99 This release

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