API Keys
Configure API keys for authenticated registry access
Overview
Some BioContext7 features require API keys for authenticated access to external services.
Required API Keys
| Service | Environment Variable | Required For |
|---|---|---|
| Anthropic | ANTHROPIC_API_KEY | Pipeline generation (LLM-assisted intent parsing) |
| OpenAI | OPENAI_API_KEY | Alternative LLM provider |
| NCBI | NCBI_API_KEY | Higher rate limits for NCBI queries |
Configuration
Environment Variables
Set API keys as environment variables:
Configuration File
Add keys to ~/.biocontext7/config.yaml:
.env File
For project-specific configuration, use a .env file:
Obtaining API Keys
NCBI API Key
- Sign in to NCBI
- Go to Account Settings
- Scroll to "API Key Management"
- Click "Create an API Key"
The NCBI API key increases your rate limit from 3 to 10 requests per second.
Anthropic API Key
- Sign in to Anthropic Console
- Navigate to API Keys
- Create a new key
Security
- Never commit API keys to version control
- Use environment variables or
.envfiles - Add
.envto your.gitignore - Rotate keys periodically