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

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.4
File Size Uploaded Provenance Actions
agenticwf_auth_client-0.0.4.tar.gz 20.2 kB Without provenance Details for agenticwf_auth_client-0.0.4.tar.gz

Built distribution (wheel)

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

Total release size: 37.0 kB

Release files / agenticwf_auth_client-0.0.4.tar.gz

Download URL agenticwf_auth_client-0.0.4.tar.gz
Size 20.2 kB
Tags Source
SHA-256 checksum
How to use checksums
e2acbdc8ced2b2b2c581091561865245ca4ac626228709a434c82d74ef979108
BLAKE2b-256 checksum
How to use checksums
755595c4d4f1edca05732c575f8f09bc306f72c40bca25a2df7d5caaeb29b20c
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.4-py3-none-any.whl

Download URL agenticwf_auth_client-0.0.4-py3-none-any.whl
Size 16.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3bf1d2c09ef55c997cccc705ab602088813642840b9401f7eaabe108cfd8f71b
BLAKE2b-256 checksum
How to use checksums
326868cf4bec8f0a0208fdfd7b9fd2568e209e4a067ea712dfcc099313a8760a
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.4

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