feat: use 1password for API key

This commit is contained in:
2026-09-05 16:14:02 +02:00
parent a2c8502c61
commit ca08ad34bc
2 changed files with 4 additions and 1 deletions
-1
View File
@@ -3,7 +3,6 @@
Requires Bash, FFmpeg, curl, jq, and standard coreutils.
```sh
export OPENROUTER_API_KEY='sk-or-v1-...'
./transcribe recording.m4a
./transcribe video.mp4 > transcript.txt
```
+4
View File
@@ -1,4 +1,8 @@
#!/usr/bin/env bash
export OPENROUTER_API_KEY
OPENROUTER_API_KEY="$(op read "op://API Keys/openrouter-mai-transcribe-2/credential")"
set -euo pipefail
if [[ $# == 1 && ($1 == -h || $1 == --help) ]]; then