Skip to main content

uv-agent auth code plugin

This plugin starts a small token-protected HTTP page that shows a single six-character challenge code. Other uv-agent plugins can call the auth_code.verify action with a user-provided code.

The code is uppercase alphanumeric, case-insensitive when verified, short lived, and consumed after one successful verification.

Configuration

{
  "plugins": {
    "auth-code": {
      "enabled": true,
      "config": {
        "token": "replace-with-a-long-random-token",
        "host": "0.0.0.0",
        "port": 8765,
        "ttl_s": 120
      }
    }
  }
}

token is required. The page can be opened as:

http://127.0.0.1:8765/?token=replace-with-a-long-random-token

After token login, the plugin stores an in-memory HttpOnly session cookie.

In a persistent daemon host, port is used as configured. In a TUI/session host, the plugin keeps the configured host binding but asks the OS for an ephemeral port. Run /auth-code in the TUI to show the actual bind address and local URL.

Action

result = await context.actions.call("auth_code.verify", {"code": "A7K2Q9"})

The plugin id is auth-code. The action id remains auth_code.verify because uv-agent action ids use dotted Python-style names.

Successful verification returns:

{"ok": true, "verified": true}

Failed verification returns ok: false, verified: false, and a reason.

Metadata

Release files for uv-agent-auth-code 0.2.0

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

Source distribution (sdist)

Source distribution for uv-agent-auth-code 0.2.0
File Size Uploaded
uv_agent_auth_code-0.2.0.tar.gz 71.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for uv-agent-auth-code 0.2.0
File Interpreter ABI Platform
uv_agent_auth_code-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 79.2 kB

Release files / uv_agent_auth_code-0.2.0.tar.gz

Download URL uv_agent_auth_code-0.2.0.tar.gz
Size 71.1 kB
Tags Source
SHA-256 checksum
How to use checksums
b576c44067563f3ebe3adf88e1ae10c638468188748643bfd2b938ad9e44cb2c
BLAKE2b-256 checksum
How to use checksums
9453f680b571464af43dc0ec99feb7b1c4971416ed2f920caa32979b3ecbdf55
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Jul 5, 2026.

Transparency log

Release files / uv_agent_auth_code-0.2.0-py3-none-any.whl

Download URL uv_agent_auth_code-0.2.0-py3-none-any.whl
Size 8.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7bfa411cc3db5c247d73f2d87c76ee64e78342c41b7ccce9ba8f3c0882a723b6
BLAKE2b-256 checksum
How to use checksums
af6d36afae4b035c021d6c78de3db97811195b730408edf46c2b4859b1ab2015
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Jul 5, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.0

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