# Personal API Key / CLI

**URL:** <https://vaultwarden.discourse.group/t/personal-api-key-cli/1190>\
**Category:** Feature Requests\
**Created:** [October 12, 2021, 10:49pm UTC](https://vaultwarden.discourse.group/t/personal-api-key-cli/1190 "2021-10-12T22:49:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![laul0\_68](https://avatars.discourse-cdn.com/v4/letter/l/dc4da7/32.png) [@laul0\_68](https://vaultwarden.discourse.group/u/laul0_68)\
**Post date:** [October 12, 2021, 10:49pm UTC](https://vaultwarden.discourse.group/t/personal-api-key-cli/1190/1 "2021-10-12T22:49:30Z")

</div>

Thank you the team and all contributors for this very useful version 🙌🏻

I hope I am not duplicating a feature request (I didn’t found it).

I am using this version of “bitwarden” for personal and open source projects and I wish to implement some automated actions for testing et sharing some solutions for automation.  
The MFA is not an option for me, but with the MFA I can not authenticate a “Service Account” via CLI from an automated action (ex: GitHub Action, DevOps, etc.)

That can be really useful and appreciate having a Personal API Key to authenticate CLI scripts.

Other people are in the same case?

Thank you very much!

---

<div class="post-metadata">

**Author:** ![cksapp](https://avatars.discourse-cdn.com/v4/letter/c/b9e5f3/32.png) [@cksapp](https://vaultwarden.discourse.group/u/cksapp)\
**Post date:** [October 12, 2021, 11:44pm UTC](https://vaultwarden.discourse.group/t/personal-api-key-cli/1190/2 "2021-10-12T23:44:29Z")

</div>

As Vaultwarden is meant to replicate the upstream project as much as possible the devs tends to try to avoid changes on how things are implemented.

I would recommend going to the official forums for further support with this.  
There does appear to be a similar posting I found so you may have luck with the suggested OAUTH toolkit program recommended there.

> **[Bitwarden-cli login with Google authenticator as 2FA](https://community.bitwarden.com/t/bitwarden-cli-login-with-google-authenticator-as-2fa/9533)**
>
> Hi, I would like to use Bitwarden-cli to export my passwords periodically using a Bash script. When I try to login, it asks me to enter the TOTP code which is normal since Google authenticator provider is activated but this step prevents me from...

Edit: I found supported features within the official version for API support within the CLI to authenticate.  
[https://bitwarden.com/help/article/personal-api-key/](https://bitwarden.com/help/article/personal-api-key/)  
But this appears not to be in Vaultwarden yet, hopefully it does get implemented to fullfil this request.

---

<div class="post-metadata">

**Author:** ![BlackDex](https://yyz2.discourse-cdn.com/free1/user_avatar/vaultwarden.discourse.group/blackdex/32/8_2.png) [@BlackDex](https://vaultwarden.discourse.group/u/BlackDex)\
**Post date:** [October 13, 2021, 6:02am UTC](https://vaultwarden.discourse.group/t/personal-api-key-cli/1190/3 "2021-10-13T06:02:58Z")

</div>

Bitwardan has API key support, only Vaultwarden doesn’t (Yet).  
It is on the list tho [[META] Feature Requests · Issue #246 · dani-garcia/vaultwarden · GitHub](https://github.com/dani-garcia/vaultwarden/issues/246#issue-379217280)

Also, Vaultwarden does not support the api provide by Bitwarden right now. Only the client/web-vault API which are different.

---

<div class="post-metadata">

**Author:** ![laul0\_68](https://avatars.discourse-cdn.com/v4/letter/l/dc4da7/32.png) [@laul0\_68](https://vaultwarden.discourse.group/u/laul0_68)\
**Post date:** [October 18, 2021, 11:21pm UTC](https://vaultwarden.discourse.group/t/personal-api-key-cli/1190/4 "2021-10-18T23:21:37Z")

</div>

Hi,

Thank you!  
Yes, I read the Bitwarden documentation and I compared the features with Vaultwarden. I understand that some features are not available (yet) and have no trouble with that.  
As I said, In my case and maybe for someone else, the API key feature available with Bitwarden can be a good addition to Vaultwarden to help developers with automation without losing 2FA.  
I can’t wait for the release that will include this feature 🙂

And once again, thank you for your awesome job! 💪🏻

---

<div class="post-metadata">

**Author:** ![laul0\_68](https://avatars.discourse-cdn.com/v4/letter/l/dc4da7/32.png) [@laul0\_68](https://vaultwarden.discourse.group/u/laul0_68)\
**Post date:** [January 31, 2022, 7:45pm UTC](https://vaultwarden.discourse.group/t/personal-api-key-cli/1190/5 "2022-01-31T19:45:01Z")

</div>

Hi !  
So happy to see the new release that includes the [API Key feature](https://github.com/dani-garcia/vaultwarden/pull/2245). I will try it now 🙂

Thank you very much community and especially @jjlin 🙏🏻
