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[setup]"          # latest
uv tool install "pupa-backend[setup]==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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pupa_backend-0.0.81.tar.gz (448.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pupa_backend-0.0.81-py3-none-any.whl (173.9 kB view details)

Uploaded Python 3

File details

Details for the file pupa_backend-0.0.81.tar.gz.

File metadata

  • Download URL: pupa_backend-0.0.81.tar.gz
  • Upload date:
  • Size: 448.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for pupa_backend-0.0.81.tar.gz
Algorithm Hash digest
SHA256 6f4e97daaea2204cff33c6db6102a6b4aed9a8cb3b28ec6f58ac054c13b2f4d7
MD5 472fc3c0218b51b1a5adc3d2de2c3b5e
BLAKE2b-256 cf9a439bc2827ab562284b2eef413dab12ee60d6255597de6945ce7521375990

See more details on using hashes here.

Provenance

The following attestation bundles were made for pupa_backend-0.0.81.tar.gz:

Publisher: publish.yml on pupa-app/pupa-backend

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pupa_backend-0.0.81-py3-none-any.whl.

File metadata

  • Download URL: pupa_backend-0.0.81-py3-none-any.whl
  • Upload date:
  • Size: 173.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for pupa_backend-0.0.81-py3-none-any.whl
Algorithm Hash digest
SHA256 d00d833d2d38dc076d9651758279a1cf3e3b9ea1ef26e1363985cf9669bc5fff
MD5 4ea3f653710f9d48f1df488ded69e1d8
BLAKE2b-256 564d2857f3dfdcddf51071ec6150c72b7a1aad4e5cf6faae62b87b285e9fcd09

See more details on using hashes here.

Provenance

The following attestation bundles were made for pupa_backend-0.0.81-py3-none-any.whl:

Publisher: publish.yml on pupa-app/pupa-backend

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.0.98

2 files

0.0.97

2 files

0.0.96

2 files

0.0.95

2 files

0.0.94

2 files

0.0.90

2 files

This release

0.0.81 This release

2 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