Skip to main content

agenticwf-auth-client

The agenticwf command for AgenticWF: sign-in (OAuth device flow via Logto), access tokens, and calls to the AgenticWF API. Standard library only.

pip install agenticwf-auth-client
agenticwf login                 # prints a link to paste into a browser; works over SSH too
agenticwf token                 # a valid access token, e.g. for curl
agenticwf whoami
agenticwf call GET /api/v1/me

Behind the AgenticWF server (Caddy, Logto) the commands sign in with agenticwf login. The application URL is enough: authsvc publishes the rest at <application URL>/auth/config, and a service's URL works as well (AGENTICWF_KB_URL, AGENTICWF_AGENT_URL):

export AGENTICWF_API_URL=https://host.example.org/app
agenticwf login

Variables that are set take precedence over what is published (an administrator gets the values with docker exec agenticwf cat /var/lib/agenticwf/logto/clients.env):

export AGENTICWF_AUTH_URL=https://host.example.org
export AGENTICWF_CLIENT_ID=<Logto native app id>
export AGENTICWF_RESOURCE=<API resource indicator>

Scripts and CI use a personal access token instead (AGENTICWF_TOKEN=pat_…), or a machine client (AGENTICWF_CLIENT_ID + AGENTICWF_CLIENT_SECRET).

HTTPS: the clients trust the system's CAs plus CERN's, which are installed with the package (agenticwf_auth_cli/cacerts/), so a server with a CERN certificate works from a machine that lacks CERN's CA. A site CA of your own is added with AGENTICWF_CA_BUNDLE=/path/to/ca.pem (a file, or a c_rehashed directory). These come on top of the system's, never instead of them.

The service clients add their commands to agenticwf, with the same sign-in:

pip install agenticwf-kb-client       # agenticwf kb …
pip install agenticwf-agent-client    # agenticwf agent …

From Python:

from agenticwf_auth_cli import Client, service_access

api = Client.from_env()
print(api.request("GET", "/api/v1/me"))
base, token = service_access("kb", "/kb")     # a service's URL, and a function giving a valid token

Metadata

Release files for agenticwf-auth-client 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 agenticwf-auth-client 0.0.3
File Size Uploaded Provenance Actions
agenticwf_auth_client-0.0.3.tar.gz 20.1 kB Without provenance Details for agenticwf_auth_client-0.0.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for agenticwf-auth-client 0.0.3
File Interpreter ABI Platform Actions
agenticwf_auth_client-0.0.3-py3-none-any.whl Python 3 none any Details for agenticwf_auth_client-0.0.3-py3-none-any.whl

Total release size: 36.9 kB

Release files / agenticwf_auth_client-0.0.3.tar.gz

Download URL agenticwf_auth_client-0.0.3.tar.gz
Size 20.1 kB
Tags Source
SHA-256 checksum
How to use checksums
2954e7417bd53bf41caab6bc6f6f810353a46e8319e98d6eabff6b899e3e0faa
BLAKE2b-256 checksum
How to use checksums
521de1364e91d94d14436ae730e6e0e3526746e974f86ac1fa467679b8f942cb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.15

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

Download URL agenticwf_auth_client-0.0.3-py3-none-any.whl
Size 16.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2dd19c03f6bae41ae6b261728cc35acefeb3bdc5c502dad1cf738ce9da67fbca
BLAKE2b-256 checksum
How to use checksums
279eedba10f4c5738d7970d5d44a900489072edf32efcbeb68edb8a6a362feca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.15

Security for agenticwf-auth-client 0.0.3

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

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.

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