Skip to main content

agentship-service

The AgentShip runtime service — the REST / SSE / WebSocket surface that turns a built agent into an HTTP API, with pluggable authentication adapters and, above all, tenant isolation.

This is the part of the stack a gateway cannot replace. A gateway (agentgateway) routes requests and can authenticate them at the edge; but only the app can guarantee that every stored read and write is scoped to the authenticated tenant. That guarantee lives here.

from agentship.auth import ApiKeyAuthProvider, EnvApiKeyStore
from agentship_service import create_app

app = create_app(auth=ApiKeyAuthProvider(EnvApiKeyStore()))

Integrations (we wire, we don't reinvent)

  • Streaming — /v1 …:stream and A2A message/stream frame Server-Sent Events with sse-starlette's EventSourceResponse, which owns the wire encoding, keepalive comments, and client-disconnect cancellation. We only shape each StreamEvent into its event/data fields.
  • Auth — agentship.auth ships pluggable providers; the optional OIDC path (JwtAuthProvider) delegates JWKS fetching, key-id resolution, and rotation to PyJWT's PyJWKClient. Tenant isolation on every read/write is the part that stays here.
  • A2A — we speak the protocol with our own thin Pydantic wire models rather than pull in the protobuf-first a2a-sdk. A drift guard under the agentship-service[a2a] extra (tests/test_a2a_conformance.py) validates every AgentCard / Message / status frame against a2a-sdk's own schema, so we cannot drift from the spec. See docs/decisions/0001-integrate-not-invent.md.

See agentship serve for the one-command server, and the phase-04 spec for the full endpoint contract.

Metadata

Release files for agentship-service 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for agentship-service 0.0.3
File Size Uploaded
agentship_service-0.0.3.tar.gz 79.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for agentship-service 0.0.3
File Interpreter ABI Platform
agentship_service-0.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 149.9 kB

Release files / agentship_service-0.0.3.tar.gz

Download URL agentship_service-0.0.3.tar.gz
Size 79.2 kB
Tags Source
SHA-256 checksum
How to use checksums
70b13cd726d8724c88a03048677cf6a264b3b13c05b3ba0ff6f8d4ac67b7b223
BLAKE2b-256 checksum
How to use checksums
ae1802ba12fe673682252622560ddbaecc55f2f1834721cf2d82fd545f29cabd
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 Oct 5, 2026.

Transparency log

Release files / agentship_service-0.0.3-py3-none-any.whl

Download URL agentship_service-0.0.3-py3-none-any.whl
Size 70.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9c434221ff79cda0d7eacf789f250028c50cb9b8e864bbbcdfc57886383aa2c6
BLAKE2b-256 checksum
How to use checksums
2f5814b91406b22b2529d79d493095bcbbe507db377e7827a27b5765754799a2
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 Oct 5, 2026.

Transparency log

Release history Release notifications | RSS feed

0.0.4

2 release files

This release

0.0.3 This release

2 release files

0.0.2

2 release files

0.0.1

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