keycloak-specialist

keycloak-specialist is an agent for Claude Code from atretyak1985/swarmery. It costs 27 tokens per session (1,998 once invoked), scanned A, original, Apache-2.0.

An identity and access specialist for Keycloak, an open-source service that manages user sign-in and permissions. It handles OpenID Connect connections, web application login, service-to-service credentials, realm setup, and security hardening.

In plain words
What is it for?
Use it to configure Keycloak realms and clients, connect Auth.js or Next.js applications, set up service accounts, and review authentication security settings.
Why use it?
It helps keep browser sessions, API access, secrets, cookies, and authentication endpoints configured safely. It also gives teams a focused place to diagnose login and token-related setup.

Agent for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: model in frontmatter.

Part of the infra-pack plugin — 11 skills, 1 command, 3 agents shipped together

Good fit Use it to configure Keycloak realms and clients, connect Auth.js or Next.js applications, set up service accounts, and review authentication security settings.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/atretyak1985/swarmery/keycloak-specialist
Install

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.

Clone the repo
git clone --depth 1 https://github.com/atretyak1985/swarmery

Made for: Claude Code.

Or install infra-pack, the plugin that ships this one along with the rest of its 11 skills, 1 command, 3 agents.

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

agentmods badge for keycloak-specialist

README.md
[![agentmods](https://agentmods.dev/badge/agents/atretyak1985/swarmery/keycloak-specialist/github.svg)](https://agentmods.dev/agents/atretyak1985/swarmery/keycloak-specialist)
Your own site
<a href="https://agentmods.dev/agents/atretyak1985/swarmery/keycloak-specialist"><img src="https://agentmods.dev/badge/agents/atretyak1985/swarmery/keycloak-specialist/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.

agentmods 80×15 button for keycloak-specialist

Your own site · 80×15
<a href="https://agentmods.dev/agents/atretyak1985/swarmery/keycloak-specialist"><img src="https://agentmods.dev/badge/agents/atretyak1985/swarmery/keycloak-specialist.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 27 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,998 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00027 $0.01998
Opus 5.5 $0.00011 $0.00799
Sonnet 5.5 $0.00005 $0.00400
Haiku 4.5 $0.00003 $0.00200

Measured 1mo ago against content hash 294eb21fb43e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

keycloak-specialist 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 1mo ago.

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.

plugins/infra-pack/agents/keycloak-specialist.md · 195 lines

How it starts

The opening of the file, as written. The whole thing — 195 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Role

You own Keycloak (codecentric/keycloakx chart) for this platform: realm and client configuration, OIDC/OAuth2 flows, Auth.js integration in the web portal (project.json → mainApp), service-to-service client credentials, and hardening.

Auth fails closed and fails loudly — a broken realm locks every user out at once. That is why the deployment is two-staged and why the rollback for the second stage is "disable ingress", not "debug it live".

Sandbox preflight

You may be running inside a git worktree isolate. Before your first read or write, follow the sandbox-preflight.md resource of core's code-standards skill (listed above, so it loads with you): one operation per Bash call, and confirm ROOT and every path the task names before you rely on it.

Scope

Yours: Keycloak Helm values, setup-keycloak.sh, Auth.js provider config, client and realm settings, and the security posture of the auth endpoints.

Not yours — hand these over rather than absorbing them:

  • Chart deployment mechanics and the PostgreSQL backing Keycloak → @helm-deployment.
  • CI secrets wiring → @gitlab-ci-specialist.
  • Security review beyond Keycloak → @security-auditor.

The deployment

  • Keycloak 26.x on the codecentric/keycloakx Helm chart.
  • Realm <keycloak-realm>; browser client <keycloak-client>; separate service clients for platform automation.
  • Two stages, in this order and never merged into one: Stage 1 — init, no ingress, bootstrap admin. Stage 2 — full, ingress enabled plus setup-keycloak.sh.
  • You cannot reach the Admin Console from here; you configure through Helm values and setup-keycloak.sh.
  • Rollback: Stage 2 → disable ingress; Stage 1 → redeploy the previous release.

The Auth.js side is a thin provider binding — credentials come from the environment, never from the file:

// <mainApp>/src/lib/auth.ts
import NextAuth from "next-auth";
import KeycloakProvider from "next-auth/providers/keycloak";

export const { handlers, auth, signIn, signOut } = NextAuth({
  providers: [
    KeycloakProvider({
      clientId: process.env.KEYCLOAK_CLIENT_ID!,
      clientSecret: process.env.KEYCLOAK_CLIENT_SECRET!,
      issuer: process.env.KEYCLOAK_ISSUER!,
    }),
  ],
});

Read the full file on GitHub · 195 lines

Changes

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.

  1. 1mo ago Changed · -41 lines 294eb21fb43e
  2. 1mo ago First seen · 236 lines · 27 tokens per session scan A 650f5fdb80bf

Subscribe to this mod's changes

keycloak-specialist is an agent published in the GitHub repository atretyak1985/swarmery (7 stars, last pushed today), licensed Apache-2.0. It adds 27 tokens to every session and 1,998 once invoked, about $0.0001 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-09-03.

Related

Other agents, from other repositories

fakoli-guido

Fakoli Crew polyglot architect for TypeScript, Python, Rust interfaces, type design, and API shape.

fakoli/fakoli-plugins · 30 tokens

fakoli-welder

Fakoli Crew integration engineer for wiring new code, adapting interfaces, and backward-compatible refactors.

fakoli/fakoli-plugins · 26 tokens

beam-architect

Use this agent as the Staff/Principal BEAM Architect owning Plane 1 of the Living Platform — the BEAM kernel. This agent designs core OTP supervision trees, authors Horde/Ra/pg distributed topology, enforces the BLOCKING-1 invariant (intra-session IPC stays in-BEAM via native message passing — gRPC never crosses a…

asiflow/claude-nexus-hyper-agent-team · 917 tokens

elixir-engineer

Use this agent when the user needs production-grade Elixir/OTP/Phoenix implementation on a BEAM-based platform — building genstatem processes, LiveView dashboards, Ecto/Absinthe layers, Oban pipelines, or any BEAM-resident code that implements the kernel architected by beam-architect. This is a Tier 1 Builder parallel…

asiflow/claude-nexus-hyper-agent-team · 886 tokens

go-hybrid-engineer

Use this agent for production-grade Go implementation work on the Plane 2 edge (HTTP+SSE + GraphQL Federation Platform API) and the Plane 1↔Plane 2 gRPC boundary between the Go edge and the BEAM kernel in the Living Platform Option C tri-cable architecture. This agent owns the smart-agents Go codebase (retention +…

asiflow/claude-nexus-hyper-agent-team · 778 tokens

api-expert

Use this agent as a distinguished API Design and GraphQL Federation authority for reviewing API contracts, schema design, federation configuration, resolver patterns, and API evolution strategy across the codebase's 14+ federated services. Reviews API code and schemas — implementation goes to builders. Examples…

asiflow/claude-nexus-hyper-agent-team · 301 tokens