AgentSDK
Authentication
Authentication
API Key Authentication
The simplest way to authenticate is with API keys.
Environment Variables
Function Parameters
OAuth Authentication
For tools that require OAuth (Gmail, Slack, etc.), use the built-in authentication flows.
Available Services
Gmail, Google Calendar, Google Docs, Google Drive, Google Sheets, Slack, Notion, Linear, Asana, Outlook, OneDrive, Atlassian, Supabase, Airtable, Discord, and more.
Start Authentication Flow
Using Authenticated Tools
Once authenticated, tools will automatically use your credentials:
Configuration Options
Custom Server URL
Priority Order
Authentication uses this priority:
- Function parameters (
observee_api_key
,observee_url
) - Environment variables (
OBSERVEE_API_KEY
,OBSERVEE_URL
) - Default values
Security Best Practices
- Never commit API keys to version control
- Use environment variables in production
- Rotate API keys regularly
- Use
.env
files for development only
Troubleshooting
Invalid API Key: Check your key starts with obs_
OAuth Failed: Make sure you completed the authentication flow
Permission Denied: Check your account has access to the requested service