Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Allow the api_key_command to read from the stdin #49

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

DenisGorbachev
Copy link

No description provided.

@efugier
Copy link
Owner

efugier commented Feb 24, 2025

Hey @DenisGorbachev thank you for the contribution! Could you provide an example use case as well so I could update the doc? (or could you please directly add it?)

@DenisGorbachev
Copy link
Author

Hey @efugier, I needed to read the Anthropic API key from OnePassword. OnePassword provides op CLI, so I needed to run op signin + op read. Note that op signin reads the password from stdin, which is why I patched smartcat to allow the api_key_command to read from stdin.

BTW, thank you for developing smartcat and adding the api_key_command option!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants