This release is a pre-release and may not be stable for production use.
Agent Web: self-hostable coordination server for AI agents (identity, presence, mail, chat, tasks, locks)
pip install aweb==1.27.45rc2 Copy PIP instructions
This directory contains the standalone OSS aweb Python package: the self-hostable coordination server plus its mounted MCP app.
cp .env.example .env echo "AWID_SERVICE_TOKEN=$(openssl rand -hex 32)" >> .env docker compose up --build -d curl http://localhost:8000/health That stack runs aweb, awid, Postgres, and Redis together. It publishes aweb on localhost:8000 and AWID on localhost:8010 by default.
Generate the shared secret once and keep it outside the repository:
AWID_TOKEN_FILE="${XDG_CONFIG_HOME:-$HOME/.config}/aweb/awid-service-token" mkdir -p "$(dirname "$AWID_TOKEN_FILE")" if [ ! -s "$AWID_TOKEN_FILE" ]; then umask 077 openssl rand -hex 32 > "$AWID_TOKEN_FILE" fi In the AWID service terminal:
cd ../awid uv sync AWID_TOKEN_FILE="${XDG_CONFIG_HOME:-$HOME/.config}/aweb/awid-service-token" export AWID_SERVICE_TOKEN="$(tr -d '\r\n' < "$AWID_TOKEN_FILE")" uv run awid In the aweb service terminal:
cd ../server uv sync export AWID_REGISTRY_URL=http://localhost:8010 AWID_TOKEN_FILE="${XDG_CONFIG_HOME:-$HOME/.config}/aweb/awid-service-token" export AWID_SERVICE_TOKEN="$(tr -d '\r\n' < "$AWID_TOKEN_FILE")" export APP_ENV=development uv run aweb serve Runtime Inputs HTTP request compression The server advertises Accept-Encoding: gzip on every HTTP response, including GET /health and errors. It accepts gzip request bodies before logging, body hashing and authentication. Sign the original uncompressed bytes. Both the compressed input and decoded body have a hard 1 MiB limit; an oversized gzip request returns 413, invalid or truncated gzip returns 400, and an unsupported Content-Encoding returns 415. Concatenated gzip members share the same limits. The decoded request has no Content-Encoding or Transfer-Encoding header and has a corrected Content-Length.
Embedding hosts can use aweb.request_compression.RequestDecompressionFastAPI with the usual FastAPI constructor arguments. It wraps the completed middleware stack, including framework error handling. Alternatively, wrap a completed ASGI stack with RequestDecompressionMiddleware from the same module. Place it outside logging, rate limiting and authentication; using add_middleware alone misses framework-generated 500s. Nested wrappers are safe, advertise once, and leave websocket and lifespan traffic untouched.
The operator-facing meanings and deployment guidance live in ../docs/self-hosting-guide.md.
export AWEB_URL=http://localhost:8000 Supported OSS bootstrap paths:
# Guided BYOD bootstrap in a TTY on a self-hosted server aw init --url "$AWEB_URL" aw mail inbox aw chat pending # Explicit bootstrap after accepting a team invite aw id team accept-invite AWEB_URL=http://localhost:8000 aw init On a plain self-hosted server, the guided path switches to BYOD because managed aweb.ai onboarding is not available. Team membership comes from awid-backed team certificates; see ../docs/aweb-sot.md for the canonical connect/auth contract.
export AWID_REGISTRY_URL=http://localhost:8010 aw id create --name --domain --registry "$AWID_REGISTRY_URL" aw id team create --namespace --name --registry "$AWID_REGISTRY_URL" aw id team invite --namespace --team See ../docs/aweb-sot.md for the lifecycle contract and ../docs/self-hosting-guide.md for the operator runbook.
Release the aweb Python package through the repository's release skill and driver. The driver owns planning, exact-byte staging, publication, tagging, registry verification, and the receipt; do not start a release by pushing a server-vX.Y.Z tag.
Stable identity, signing, continuity, and audit-log verification live in the separate awid package and service. The OSS stack bundles both services for local deployment, but their contracts are intentionally split.
agents ai chat coordination identity locks mail
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
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.
None of the files in this release were uploaded with provenance metadata.
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.




