Optional LLM key persistence for `blink init`
- Lingua principale
- TypeScript
- Stelle
- 164
- Fork
- 18
- Merge medio
- 1m
- PR unite (30g)
- 4
Descrizione
## Problem
Users have to manually locate and enter their LLM key every time they run `blink init` for a new agent, which creates friction in the workflow.
## Proposal
Add an optional feature to remember LLM keys between `blink init` sessions:
1. **Timing**: Only show the prompt on the *second* `blink init` (avoid making first-time experience longer)
2. **Dialog**: After user inputs their LLM key, ask: "Remember the key for the next `blink init`?"
3. **Transparency**: If confirmed, print: "Saved the key in `~/.blink/keys.txt`"
4. **Security consideration**: User needs to be clearly aware the key is stored persistently in their home directory in plain text
## Security Trade-offs
Currently keys are only stored in `.env.local` within each project, making it clear where to delete them. Storing in a global location like `~/.blink/keys.txt` introduces risk if the file leaks. The feature should prioritize transparency about where keys are stored and how to remove them.
## Priority
Nice-to-have / backlog item
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Direzione di ricerca
Inizia dal flusso di `blink init` e verifica come le chiavi LLM vengono attualmente scritte in `.env.local`. Definisci il prompt di opt-in alla seconda esecuzione e la persistenza in testo semplice in `~/.blink/keys.txt`, seguendo le considerazioni su trasparenza e sicurezza riportate nell’issue. Il lavoro è completato quando il comportamento opzionale funziona senza modificare l’esperienza della prima esecuzione e comunica chiaramente dove viene archiviata la chiave.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- typescript
- Ambito
- cli, security
- Tipo di issue
- Funzionalità
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 45/100