# How to add custom SPI to Keycloak 24.x version

**URL:** <https://forum.keycloak.org/t/how-to-add-custom-spi-to-keycloak-24-x-version/25575>\
**Category:** Configuring the server\
**Tags:** authentication\
**Created:** [April 16, 2024, 3:25am UTC](https://forum.keycloak.org/t/how-to-add-custom-spi-to-keycloak-24-x-version/25575 "2024-04-16T03:25:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![SatriyoJati](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/satriyojati/32/9865_2.png) [@SatriyoJati](https://forum.keycloak.org/u/SatriyoJati)\
**Post date:** [April 16, 2024, 3:25am UTC](https://forum.keycloak.org/t/how-to-add-custom-spi-to-keycloak-24-x-version/25575/1 "2024-04-16T03:25:29Z")

</div>

from the documentation, you can just copy the jar file into providers directory. But this custom SPI uses standalone.xml to populate the variables value. This one is custom provider I want to add to Keycloak :  
[GitHub - InseeFrLab/keycloak-hashicorp-vault-ext: Keycloak extension to obtain secrets from HashiCorp Vault](https://github.com/InseeFrLab/keycloak-hashicorp-vault-ext) . But since in the new version Keyclaok doesnt have standalone.xml, I cant integrating well. It shown on the providers tab. But I cant see it on admin console ui.

![image](https://global.discourse-cdn.com/free1/uploads/keycloak/original/2X/4/4b15ce079097bdcf68c97af08fc7a6e834dde406.png)

---

<div class="post-metadata">

**Author:** ![xgp](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/xgp/32/2589_2.png) [@xgp](https://forum.keycloak.org/u/xgp)\
**Post date:** [April 16, 2024, 4:31pm UTC](https://forum.keycloak.org/t/how-to-add-custom-spi-to-keycloak-24-x-version/25575/2 "2024-04-16T16:31:09Z")

</div>

It’s probably not compatible anymore, but if it miraculously has made it through all of the changes and is still compatible, you can use the new `--spi` format for configuring extension variables. Docs on how to set those variables are here [Configuring providers - Keycloak](https://keycloak.org/server/configuration-provider)

---

<div class="post-metadata">

**Author:** ![embesozzi](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/embesozzi/32/12390_2.png) [@embesozzi](https://forum.keycloak.org/u/embesozzi)\
**Post date:** [April 16, 2024, 7:25pm UTC](https://forum.keycloak.org/t/how-to-add-custom-spi-to-keycloak-24-x-version/25575/3 "2024-04-16T19:25:11Z")

</div>

As xgp was mentioned, perhaps if you light a 🕯, it might miraculously help you avoid compatibility problems. Just joking 🙂
