caddy-security is a security application and set of plugins for Caddy v2, a web server, that handles user authentication and controls access to HTTP requests. It supports methods including local, LDAP, OpenID Connect, OAuth 2.0, SAML, JWT, and PASETO, and is used to protect web services behind Caddy.
Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add greenpau/caddy-security --skill configuration-authentication-cross-devicegit clone --depth 1 https://github.com/greenpau/caddy-securityWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/greenpau/caddy-security/configuration-authentication-cross-device)<a href="https://agentmods.dev/skills/greenpau/caddy-security/configuration-authentication-cross-device"><img src="https://agentmods.dev/badge/skills/greenpau/caddy-security/configuration-authentication-cross-device/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/greenpau/caddy-security/configuration-authentication-cross-device"><img src="https://agentmods.dev/badge/skills/greenpau/caddy-security/configuration-authentication-cross-device.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00043 | $0.02048 |
| Opus 5.5 | $0.00017 | $0.00819 |
| Sonnet 5.5 | $0.00009 | $0.00410 |
| Haiku 4.5 | $0.00004 | $0.00205 |
Grade A, and why
configuration-authentication-cross-device scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 180 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Cross-device Portal Login
Configuration and ownership
The selected published go-authcrunch supplies the parser, runtime and
embedded UI. Check go.mod and the selected module directory when changing this
integration; a sibling working tree is only a read-only reference. No local
replacement or copied portal handler, QR generator, store or template is needed.
Inside an existing authentication portal:
authentication portal myportal {
enable identity store localdb
enable cross-device login
cookie cross-device session id name __Secure-LOGIN_TRANSFER
}
Declare localdb separately and mount the portal through authenticate with myportal. Omit the cookie override to use AUTHP_CROSS_DEVICE_SESSION_ID.
disable cross-device login explicitly disables the feature. Omission also
disables it and preserves a nil field in adapted JSON. Enabling produces
"cross_device_login":{"enabled":true} in the portal config; an explicit
false/empty object is disabled on JSON load. Cookie naming alone never enables
routes or a login action.
caddyfile_authn.go collects complete enable/disable statements before the
ordinary miscellaneous/admin dispatch, encodes original token boundaries with
cfgutil.EncodeArgs, and calls the public
cross_device/parser.NewCrossDeviceLoginConfigFromDirectives once per portal.
The shared parser owns grammar and duplicate/conflict checks, including imports.
Reject empty/multiline tokens before encoding, nested blocks, joined quoted
keywords, wrong arity and unsupported arguments without echoing their values.
Individual quoted keywords preserve the same token boundaries and remain valid.
Do not add per-line boolean mutation to caddyfile_authn_misc.go.
Routing and browser contract
Mount the entire namespace, without stripping its prefix:
auth.example.com {
@portal path /auth /auth/*
route @portal {
authenticate with myportal
}
}
All paths below are relative to that mount; root and nested mounts work.
A name containing cross-device, such as /cross-device-team/auth, is not a
transfer route by substring. /oauth2/cross-device and /saml/cross-device
remain provider realms even when transfer is disabled. Unknown transfer children
return 404; do not reserve the name globally or add permissive CORS.
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- today First seen · 180 lines · 43 tokens per session scan A 0d5fa6964042
configuration-authentication-cross-device is a skill published in the GitHub repository greenpau/caddy-security (2,263 stars, last pushed today), licensed Apache-2.0. It adds 43 tokens to every session and 2,048 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-25.
Other skills, from other repositories
auth-patterns
Use when implementing authentication (JWT, sessions, OAuth), authorization (RBAC, ABAC), password hashing, MFA, or security best practices for backend services.
auth0-docs
Auth0 — identity platform: auth flows, Universal Login, SSO, identity providers, MFA, RBAC, Actions, tokens.
JWT Security Testing
Comprehensive JWT token security testing including signature verification, expiration checks, algorithm confusion attacks, and claim validation.
security-review
Security Code Review: Reviews code for security vulnerabilities including authentication (OAuth2, JWT), authorization (RBAC, roles), API security, data protection, payment security, and common attack vectors. Use whenever the user wants a security review, penetration test analysis, threat model, or mentions OAuth2…
testing-api-authentication-weaknesses
Tests API authentication mechanisms for weaknesses including broken token validation, missing authentication on endpoints, weak password policies, credential stuffing susceptibility, token leakage in URLs or logs, and session management flaws. The tester evaluates JWT implementation, API key handling, OAuth flows, and…
implementing-jwt-signing-and-verification
JSON Web Tokens (JWT) defined in RFC 7519 are compact, URL-safe tokens used for authentication and authorization in web applications. This skill covers implementing secure JWT signing with HMAC-SHA256.