Skip to content
kjanatPublic

About

Vaultwarden-first CLI and SDK

Topics

Resources

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

Vaultwarden CLI

CI pkg.pr.new GitHub Sponsors

An independent TypeScript client built for Vaultwarden, with a reusable library and a command-line frontend built on @kjanat/dreamcli.

This project is not affiliated with or endorsed by Dani Garcia or the Vaultwarden project. If Dani would like to take over this project, I'm happy to hand it over.

Package Version Purpose
@kjanat/vaultwarden NPM Version Authentication, protocol, cryptography, vault management, generation, and transfers.
@kjanat/vaultwarden-cli NPM Version The vw executable, encrypted local cache, and unlock sessions.

Requires Node.js 24.8.0+.

Run the CLI without a global installation using either form:

npx @kjanat/vaultwarden-cli
npx --package=@kjanat/vaultwarden-cli vw

To install the vw command globally:

npm install --global @kjanat/vaultwarden-cli
vw --help
vw config server https://vault.example.com
export VW_SESSION="$(vw login you@example.com --raw)"
vw list items
vw lock
unset VW_SESSION

For direct TypeScript integration, install the @kjanat/vaultwarden SDK. Package managers install optionalDependencies by default, so this also installs the CLI package:

npm install @kjanat/vaultwarden

To install the SDK alone, omit optional dependencies. This omits every optional dependency in the project:

npm install --omit=optional @kjanat/vaultwarden

See the usage guide, implementation status, Vaultwarden compatibility notes, and contributing guide.

License

Source-available under the PolyForm Noncommercial License 1.0.0. Noncommercial use is free, including the personal uses and organizations specified in the license.

Commercial use is permitted with sponsorship.

Third-party notices.

Feature checklist

One checkbox represents one user-facing feature. [x] means implemented and completely tested; [ ] means open or lacking complete tests. Import format names follow the pinned Bitwarden CLI inventory. Implementation details and known Vaultwarden differences are in implementation status and Vaultwarden accommodations.

Account and session

  • Configure the Vaultwarden server and split service URLs.
  • Log in with a master password.
  • Log in with a personal API key and refresh its access token.
  • Log in to an existing SSO account with PKCE.
  • Set up a new SSO account and its vault password.
  • Log in using TOTP.
  • Enroll and log in using email two-factor authentication.
  • Log in using a recovery code.
  • Complete interactive Duo login against a live Duo provider.
  • Complete WebAuthn login against a physical authenticator.
  • Complete YubiKey login against a physical authenticator.
  • Supply account passwords through positional input, standard and named environment variables, or a password file.
  • Supply API credentials through standard or named environment variables.
  • Unlock the vault and issue a session token.
  • Check login status.
  • Check unlock status.
  • Lock the vault.
  • Log out.

Vault data

  • Sync the vault, including revision checks, forced sync, and token renewal.
  • View account and vault status, including last-sync time.
  • List, search, and read all eight supported vault item types.
  • Search items by name, ID prefix, subtitle, URI hostname, and notes.
  • Apply supported item filters and cross-field search terms.
  • Find an item by URI.
  • Read secret fields from an item.
  • List and find folders, collections, organizations, and organization members.
  • Read user fingerprints.
  • Read object templates.
  • Create, edit, and delete vault items.
  • Create, edit, and delete folders and collections.
  • Create, edit, and delete item attachments.
  • Retrieve an attachment by exact ID despite a colliding filename.
  • Move items into organizations.
  • Edit item collection assignments.
  • Use the deprecated share command as a move alias.
  • Confirm an accepted organization member.
  • Archive, restore, trash, and permanently delete items.
  • Edit redacted items without replacing hidden passwords, TOTP, or custom fields.

Import formats

  • Import 1Password PIF.
  • Import 1Password PUX.
  • Import 1Password Mac CSV.
  • Import 1Password Windows CSV.
  • Import Arc CSV.
  • Import Ascendo CSV.
  • Import Avast CSV.
  • Import Avast JSON.
  • Import Avira CSV.
  • Import Bitwarden CSV.
  • Import Bitwarden JSON.
  • Import BlackBerry CSV.
  • Import Blur CSV.
  • Import Brave CSV.
  • Import Buttercup CSV.
  • Import Chrome CSV.
  • Import Clipperz HTML.
  • Import Codebook CSV.
  • Import Dashlane CSV.
  • Import Dashlane JSON.
  • Import Delinea CSV.
  • Import Delinea XML.
  • Import Edge CSV.
  • Import Encryptr CSV.
  • Import Enpass CSV.
  • Import Enpass JSON.
  • Import Firefox CSV.
  • Import F-Secure FSK.
  • Import GNOME Passwords JSON.
  • Import Kaspersky TXT.
  • Import KeePass 2 XML.
  • Import KeePass KDBX. See also kp2bw.
  • Import KeePassXC CSV.
  • Import generic Keeper export.
  • Import Keeper CSV.
  • Import Keeper JSON.
  • Import LastPass CSV.
  • Import LogMeOnce CSV.
  • Import Meldium CSV.
  • Import mSecure CSV.
  • Import Myki CSV.
  • Import Netwrix Password Secure.
  • Import NordPass CSV.
  • Import Opera CSV.
  • Import Padlock CSV.
  • Import Passbolt CSV.
  • Import PassKeep CSV.
  • Import Passky JSON.
  • Import Passman JSON.
  • Import Passpack CSV.
  • Import Password Agent CSV.
  • Import Password Boss JSON.
  • Import Password Depot 17 XML.
  • Import Password Dragon XML.
  • Import Password Wallet TXT.
  • Import PasswordXP CSV.
  • Import Proton Pass.
  • Import Psono JSON.
  • Import Password Safe XML.
  • Import RememBear CSV.
  • Import RoboForm CSV.
  • Import Safari CSV.
  • Import SafeInCloud XML.
  • Import SaferPass CSV.
  • Import SecureSafe CSV.
  • Import SplashID CSV.
  • Import Sticky Password XML.
  • Import True Key CSV.
  • Import UPM CSV.
  • Import Vivaldi CSV.
  • Import Yoti CSV.
  • Import Zoho Vault CSV.

Export formats

  • Export Bitwarden CSV.
  • Export Bitwarden JSON.
  • Export password-encrypted JSON.
  • Export an organization vault through its administrative endpoint.
  • Export a personal vault as ZIP with attachments.
  • Apply RestrictedItemTypes restrictions to items and their ZIP attachments.
  • Import ZIP backups with Bitwarden duplicate-item suffixes.

Sends

  • Create text and file Sends.
  • Read anonymous and password-protected text and file Sends.
  • List, find, edit, and delete owned Sends.
  • Set Send passwords, access limits, and expiry.
  • Remove password protection from a Send.
  • Read Send templates.
  • Return a Send URL or the full Send object.
  • Read text from a text Send without selecting a file Send by mistake.
  • Show the Bitwarden-compatible quick-send syntax in command help.

Reports and local tools

  • Generate passwords and passphrases with configurable policy.
  • Encode UTF-8 input as Base64.
  • Report password strength, reuse, and exposure.
  • Generate schema-derived Bash, Zsh, Fish, and PowerShell completions.
  • Print the CLI version.
  • Print the SDK version.
  • Check for public package updates.
  • Show command and subcommand help.
  • Use quiet, raw, pretty, response, clean-exit, and no-interaction modes.

Local REST API

  • Serve the vault over TCP.
  • Serve inherited listening and connected file descriptors.
  • Authenticate protected listeners and reject disallowed origins and hosts.
  • Serve login, status, sync, lock, and unlock routes.
  • Serve item, folder, collection, organization, member, and secret-field routes.
  • Serve text Sends through the REST API.
  • Reject REST file Send routes unsupported by the reference.
  • Match tested missing-object, unknown-object, method, query, and body behavior.
  • List vault archives through the local REST API.
  • Search objects through the local REST API.
  • Apply server entitlement rules to local REST API routes.
  • Manage organization device-approval requests through Bitwarden Cloud.

About

Vaultwarden-first CLI and SDK

Topics

Resources

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Sponsor this project

Used by

Contributors

Languages