API Keys

Some services use API keys instead of OAuth. These are static credentials you generate in the service’s dashboard and provide to Toolcog.

When API Keys Are Used

API keys are common for:

If a service gives you a secret key like sk-... or api_..., it uses API key authentication.

Adding API Keys

When AI encounters a service that needs an API key:

  1. AI requests the key — Provides a link to add credentials
  2. You enter the key — In a secure form on toolcog.com
  3. Key is encrypted — Stored in your vault
  4. AI continues — With authenticated access

Manual Addition

You can also add API keys proactively:

  1. Go to your Toolcog dashboard
  2. Navigate to Credentials
  3. Select the API and security scheme
  4. Enter your API key
  5. Save

The key is encrypted immediately and never stored in plaintext.

API Key Storage

Like OAuth tokens, API keys are protected with envelope encryption: session → derived KEK → vault DEK → encrypted key. Even Toolcog cannot read your API keys—the encryption keys derive from your session, which only you possess.

Security Considerations

Key Scope

Many services support scoped API keys:

Use the narrowest scope that accomplishes your task.

Key Rotation

Rotate API keys periodically:

  1. Generate a new key in the service’s dashboard
  2. Update the key in Toolcog
  3. Revoke the old key in the service’s dashboard

This limits exposure if a key is compromised.

Service-Side Controls

Most services provide additional controls:

Configure these in the service’s dashboard for defense in depth.

API Key vs OAuth

AspectAPI KeysOAuth
User interactionEnter key onceAuthorize via browser
Scope controlService-definedPer-operation
RefreshManual rotationAutomatic
RevocationIn service dashboardIn service dashboard
Multi-accountOne key per accountOne auth per account

OAuth is preferred when available because it:

API keys are simpler but require more manual management.

Best Practices

Use Dedicated Keys

Create API keys specifically for Toolcog:

Monitor Usage

Check your service’s dashboard for:

Have a Rotation Plan

Know how to rotate keys:

  1. Where to generate new keys
  2. Where keys are used (Toolcog, other apps)
  3. How to update without downtime
  4. When to revoke old keys

Next Steps