Service Accounts
Service accounts provide programmatic access to Opik for automated systems, CI/CD pipelines, and integrations. Unlike user accounts, service accounts use API keys for authentication and don't require interactive login.
Creating a Service Account
Section titled “Creating a Service Account”- Navigate to the Admin Dashboard
- Click on Service Accounts in the sidebar
- Click Create service account
- Enter a name for the service account
- Optionally select a default workspace
- Optionally select authorized workspaces to restrict access
- Click Create
Managing API Keys
Section titled “Managing API Keys”Each service account can have multiple API keys. To manage keys:
- Navigate to the Service Accounts section in the Admin Dashboard
- Find the service account and click Manage API keys
From the API keys modal you can:
- Add key: Generate a new API key
- Copy key: Copy an existing key to clipboard
- Delete key: Remove a key (takes effect immediately)
Deleting a Service Account
Section titled “Deleting a Service Account”- Navigate to the Service Accounts section in the Admin Dashboard
- Find the service account you want to delete
- Click the delete action
- Confirm the deletion
Using Service Account API Keys
Section titled “Using Service Account API Keys”Configure the Opik SDK with a service account API key:
import opik
# Using environment variables (recommended)
# export OPIK_API_KEY=your-service-account-api-key
# export OPIK_WORKSPACE=your-workspace
client = opik.Opik()
# Or configure directly
client = opik.Opik(
api_key="your-service-account-api-key",
workspace="your-workspace"
)Related Documentation
Section titled “Related Documentation”- Roles and Permissions - Workspace role configuration
- Workspaces - Workspace management