Skip to content

How to call api_key_cmd interactively so one can fill prompt for a password? #392

@jumski

Description

@jumski

I have written a simple script that i want to use to get OpenAI API key from bitwarden vault using bitwarden-cli:

#!/bin/bash

bw get item OpenAI | jq --raw-output '.fields[] | select(.name == "cli_token") | .value'

it is correctly called (verified by logging date from this script to a tmp log file) but given the session is noninteractive, Bitwarden CLI does not prompt for a password and just silently fails without printing on stdout.

Is there a way in ChatGPT.nvim to make api_key_cmd be called interactively so user can input a password?

It is relevant to #322

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions