Skip to main content
Opik Documentation

Search documentation

Type to search this documentation.

On this pageOverview

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.

  1. Navigate to the Admin Dashboard
  2. Click on Service Accounts in the sidebar
  3. Click Create service account
  4. Enter a name for the service account
  5. Optionally select a default workspace
  6. Optionally select authorized workspaces to restrict access
  7. Click Create

Each service account can have multiple API keys. To manage keys:

  1. Navigate to the Service Accounts section in the Admin Dashboard
  2. 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)
  1. Navigate to the Service Accounts section in the Admin Dashboard
  2. Find the service account you want to delete
  3. Click the delete action
  4. Confirm the deletion

Configure the Opik SDK with a service account API key:

Python
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"
)
Suggest an edit

Propose a replacement for this page. The site team reviews it before applying any changes.

Export
Documentation menu