continuedev / continuedev/continue
Feature Request: Secure API Key Storage for LLM Models
@RomneyDa is already working on this.
Since Mar 14, 2025.
- Dominant language
- TypeScript
- Stars
- 36k
- Forks
- 5.4k
- PR merge metrics
- No merged PRs in 30d
Description
Validations
- I believe this is a way to improve. I'll try to join the Continue Discord for questions
- I'm not able to find an open issue that requests the same enhancement
Problem
Currently, the Continue extension requires users to specify API keys for different LLM models in the config.json file in plain text. This poses a security risk, as sensitive credentials are stored in an unencrypted format.
Additional Context
If there’s already a recommended way to handle this securely, please advise. Otherwise, implementing one of the above solutions would improve security for all users.
Thanks for considering this feature request!
Solution
Proposed Solution
Would it be possible to:
1. Allow specifying an external file for API keys (e.g., .env or a secure config file)?
2. Support environment variables to load API keys dynamically?
3. Integrate with secure credential managers (e.g., OS keychain, vaults, or secret management tools)?
Benefits
• Reduces the risk of accidental credential leaks.
• Enhances security by keeping sensitive information separate from the main configuration file.
• Aligns with best practices for API key management.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.