# Which key slot is used by \`onlykey-agent\`?

**URL:** <https://onlykey.discourse.group/t/which-key-slot-is-used-by-onlykey-agent/260>\
**Category:** SSH, OpenPGP, GPG\
**Created:** [March 9, 2021, 6:10am UTC](https://onlykey.discourse.group/t/which-key-slot-is-used-by-onlykey-agent/260 "2021-03-09T06:10:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Extrawdw](https://yyz2.discourse-cdn.com/free1/user_avatar/onlykey.discourse.group/extrawdw/32/60_2.png) [@Extrawdw](https://onlykey.discourse.group/u/Extrawdw)\
**Post date:** [March 9, 2021, 6:10am UTC](https://onlykey.discourse.group/t/which-key-slot-is-used-by-onlykey-agent/260/1 "2021-03-09T06:10:48Z")

</div>

For generated keys, the documentation said that a random key is generated to generate an unlimited number of identities, so which key slot is actually used? Will `onlykey-agent` break previously imported PGP keys?

---

<div class="post-metadata">

**Author:** ![t11](https://avatars.discourse-cdn.com/v4/letter/t/8e7dd6/32.png) [@t11](https://onlykey.discourse.group/u/t11)\
**Post date:** [March 9, 2021, 8:43pm UTC](https://onlykey.discourse.group/t/which-key-slot-is-used-by-onlykey-agent/260/2 "2021-03-09T20:43:05Z")

</div>

A key slot that is reserved is used. No onlykey-agent will not break anything previously used, the app must be used to load or change keys.

---

<div class="post-metadata">

**Author:** ![Extrawdw](https://yyz2.discourse-cdn.com/free1/user_avatar/onlykey.discourse.group/extrawdw/32/60_2.png) [@Extrawdw](https://onlykey.discourse.group/u/Extrawdw)\
**Post date:** [March 10, 2021, 2:06am UTC](https://onlykey.discourse.group/t/which-key-slot-is-used-by-onlykey-agent/260/3 "2021-03-10T02:06:49Z")

</div>

Thanks for replying. Is there any way to kind of re-generate or reset the reserved key slot for onlykey-agent?

---

<div class="post-metadata">

**Author:** ![t11](https://avatars.discourse-cdn.com/v4/letter/t/8e7dd6/32.png) [@t11](https://onlykey.discourse.group/u/t11)\
**Post date:** [March 10, 2021, 2:12pm UTC](https://onlykey.discourse.group/t/which-key-slot-is-used-by-onlykey-agent/260/4 "2021-03-10T14:12:21Z")

</div>

You could reset the OnlyKey, upon setup a random key is generated.
