Skip to main content
subagent CX Codex

keycloak-expert — Claude Code subagent: what it does, how to install

keycloak-expert — a Keycloak subagent for realms, clients, roles, user federation, and OIDC or SAML security work. Use it when an IAM task needs a structured setup.

MIT ★ 1,029 updated 2025-10-15

Install into Claude Code · Manually: put the files in place All methods and platforms ↓
.claude/agents/keycloak-expert.md
Open on GitHub

What keycloak-expert does

keycloak-expert covers Keycloak architecture and identity access management. It can guide realm and client setup, role and group design, identity provider connections, authentication flows, required actions, and user administration. The scope also includes LDAP and Active Directory federation, password rules, credential storage, MFA, auditing, and event logging.

It can help secure applications with OIDC or SAML, automate Keycloak through its REST API, and prepare deployment tasks with Ansible. Expected outputs include documented realm and client settings, identity-provider instructions, authentication-flow diagrams, migration plans, custom login themes, test cases, audit reports, and recovery documentation.

LDAP and Active Directory work depends on a clear view of the existing IAM setup and synchronization rules. Without that context, federation guidance will be less specific.

What it helps with

  • configure Keycloak realms, clients, roles, and groups
  • connect LDAP or Active Directory through user federation
  • design authentication flows with MFA
  • secure an application with OIDC or SAML
  • automate Keycloak management with Ansible and its REST API

Example prompts for the agent

  • Configure a Keycloak realm, client, and role model for this application.
  • Connect user federation to LDAP and define how synchronization should be monitored.
  • Review the authentication flow with MFA and write tests for edge cases.

How to install keycloak-expert

Manually: put the files in place

.claude/agents/keycloak-expert.md

For all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention

Step by step, with commands for each platform: Claude Code subagents: how to create one, call it and keep context clean

Questions about keycloak-expert

How do I install keycloak-expert in Claude Code?

Place the subagent file in the project at .claude/agents/keycloak-expert.md.

What does keycloak-expert do?

It assists with Keycloak configuration across realms, clients, roles, authentication flows, identity providers, user federation, and OIDC or SAML integrations. It can also help prepare Ansible automation, REST API tasks, and setup documentation.

Can it work with LDAP and Active Directory?

Yes. User federation with LDAP and Active Directory is one of its listed areas, along with synchronization and monitoring.

Source text

keycloak-expert.md · MIT
---
name: keycloak-expert
description: Keycloak specialist for identity and access management, realm configuration, and user federation.
model: claude-sonnet-4-20250514
---

## Focus Areas

- Understanding Keycloak architecture and components
- Configuring realms, clients, and roles
- Setting up identity providers (IdP) and service providers (SP)
- Implementing authentication flows and required actions
- Managing users and groups
- User federation with LDAP and Active Directory
- Configuring password policies and credential storage
- Enabling auditing and logging for security compliance
- Securing applications with OIDC and SAML
- Automating Keycloak deployment and management with Ansible

## Approach

- Begin with understanding requirements and existing IAM infrastructure
- Configure realms and clients to separate concerns
- Use roles and groups to manage access control effectively
- Set up identity providers to allow social login or SSO
- Use multi-factor authentication (MFA) for enhanced security
- Leverage user federation to integrate with external user databases
- Implement custom login themes for a seamless user experience
- Regularly update Keycloak instances to maintain security
- Use Keycloak REST API for automation and integration
- Monitor performance and optimize for scalability

## Quality Checklist

- Realms and roles are configured as per organizational policy
- Authentication flows are tested with edge cases
- Multi-factor authentication is enabled where necessary
- User federation is correctly synchronized and monitored
- Password policies comply with security requirements
- Auditing and logging capture all necessary events
- Applications are tested for secure OIDC/SAML integration
- Custom themes enhance user experience without errors
- Automated scripts are reliable and recover from failures
- Regular backups and recovery plans are in place

## Output

- Documented realm and client configurations
- Detailed setup instructions for identity providers
- Flow diagrams of authentication processes
- User migration and federation strategy
- Custom themes with clear branding guidelines
- Automated setup scripts with error handling
- Performance benchmarks and optimization reports
- Comprehensive test cases for login flows
- Audit logs and compliance reports
- Disaster recovery plans and documentation

© 0xfurai · MIT · 0xfurai/claude-code-subagents

Similar subagents

All subagents for Security →

From the same set137

The whole set →
angularjs-expert The angularjs-expert subagent refactors legacy AngularJS codebases, tunes digest cycles, and structures MVC components. It helps maintain older frontends without degrading runtime speed. CX Codex ★ 1,029repo stars pulumi-expert The pulumi-expert subagent helps build and maintain Pulumi infrastructure, from cloud resources and state to secrets, policies, and CI/CD workflows. Use it when working on infrastructure code or deployments. CX Codex ★ 1,029repo stars kafka-expert kafka-expert — a subagent for Kafka work: partition planning, broker tuning, Kafka Streams pipelines, security and monitoring. Useful when a topic layout or a lagging consumer group needs a decision. CX Codex ★ 1,029repo stars javascript-expert javascript-expert refactors modern JavaScript using ES6+ standards, async patterns, and strict equality. Helps optimize DOM queries and find race conditions. CX Codex ★ 1,029repo stars deno-expert deno-expert — a subagent for Claude Code that specializes in Deno—a modern runtime for JavaScript and TypeScript with built-in security and tooling. Covers permissions model, ES modules, type safety, and performance optimization. CX Codex ★ 1,029repo stars expo-expert expo-expert guides development and optimization of React Native mobile apps built with the Expo framework. CX Codex ★ 1,029repo stars fastapi-expert fastapi-expert is a Claude Code subagent for structuring FastAPI services, validating APIs, and adding tests. It handles application design and security tasks. CX Codex ★ 1,029repo stars ios-expert ios-expert is a Claude Code subagent for building iOS apps with Swift and SwiftUI. It handles app architecture and Swift optimization tasks. CX Codex ★ 1,029repo stars

Project sponsors

Companies that keep this analytics open