Experimentation Lab
Interactive implementation reference
Integration implementation

Optimizely Agent

A local decision and tracking service for unsupported languages or centralized architecture.

Container · HTTP service
This runtime cannot execute inside a Next.js browser process. The page shows the native, official SDK shape; use the JavaScript, React, or Next.js pages for a live decision and event round trip with the same project, flag, event, and visitor ID.

Implementation

Official docs ↗
docker run -p 8080:8080 optimizely/agent
curl -X POST http://localhost:8080/v1/decide \
  -H 'X-Optimizely-SDK-Key: YOUR_SDK_KEY' \
  -H 'Content-Type: application/json' \
  -d '{"userId":"visitor-123","keys":["demo_flag"]}'