BioContext7

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

ServiceEnvironment VariableRequired For
AnthropicANTHROPIC_API_KEYPipeline generation (LLM-assisted intent parsing)
OpenAIOPENAI_API_KEYAlternative LLM provider
NCBINCBI_API_KEYHigher rate limits for NCBI queries

Configuration

Environment Variables

Set API keys as environment variables:

export ANTHROPIC_API_KEY="sk-ant-..."
export NCBI_API_KEY="your-ncbi-key"

Configuration File

Add keys to ~/.biocontext7/config.yaml:

api_keys:
  anthropic: "sk-ant-..."
  ncbi: "your-ncbi-key"

.env File

For project-specific configuration, use a .env file:

# .env (do NOT commit this file)
ANTHROPIC_API_KEY=sk-ant-...
NCBI_API_KEY=your-ncbi-key

Obtaining API Keys

NCBI API Key

  1. Sign in to NCBI
  2. Go to Account Settings
  3. Scroll to "API Key Management"
  4. Click "Create an API Key"

The NCBI API key increases your rate limit from 3 to 10 requests per second.

Anthropic API Key

  1. Sign in to Anthropic Console
  2. Navigate to API Keys
  3. Create a new key

Security

  • Never commit API keys to version control
  • Use environment variables or .env files
  • Add .env to your .gitignore
  • Rotate keys periodically

On this page