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                 # opens the 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).

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

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.2
File Size Uploaded Provenance Actions
agenticwf_auth_client-0.0.2.tar.gz 13.3 kB Without provenance Details for agenticwf_auth_client-0.0.2.tar.gz

Built distribution (wheel)

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

Total release size: 24.2 kB

Release files / agenticwf_auth_client-0.0.2.tar.gz

Download URL agenticwf_auth_client-0.0.2.tar.gz
Size 13.3 kB
Tags Source
SHA-256 checksum
How to use checksums
3075ad018ad93a98491768427bf4a2710d8027614f5dbde8b42abbd6713bff3a
BLAKE2b-256 checksum
How to use checksums
d5da471137353618591813389d438ee24e390a623afefeac5249578253935c08
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.2-py3-none-any.whl

Download URL agenticwf_auth_client-0.0.2-py3-none-any.whl
Size 10.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
07a54606369b58cb1e9cca62c8832afaa815ec25e866297f435cbf05bddea9b6
BLAKE2b-256 checksum
How to use checksums
31b13750561c692c10fb18189acfb388bc724253df2f44c8a30405be3b0b13bc
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.2

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