Plugin with managed settings
Claude Code’s server-managed settings let you deliver configuration from Anthropic’s admin console to every authenticated user in your organization, with no MDM and no per-device work, and it follows the user to whatever machine they sign in on.
This is the fastest path to a working rollout. The trade-off is that it has no targeting: the configuration applies to every authenticated user in the organization as soon as you save it, so you can’t pilot with a single team first.
Requires Claude for Teams or Enterprise.
If you want to stage the rollout (one team first, then widen), use MDM instead. That’s our general recommendation, and it’s also the path to use if your developers are on personal Claude accounts or you need to cover machines whose accounts you don’t control.
Generate the configuration
You can hand-write the JSON, but the product will build it for you, including any cost policies you’ve already configured.
In Opik, go to Cost Intelligence → Organization Policies and use Copy settings file. The generated JSON contains the plugin bootstrap that you can use in the Claude Code admin console.
Apply it in the admin console
Open the managed settings editor
In Claude.ai, go to Admin Settings → Claude Code → Managed settings.
What each part does
Use a service-account API key scoped to ingest, never a personal token. Managed settings are readable by the Claude Code process on each device, so treat the key as distributed the moment you save. Rotate it by updating this configuration.
What happens on a developer’s machine
Nothing they have to do. On the next Claude Code launch:
- The plugin installs and registers a
SessionStarthook. - The hook runs
opik-cipx sync, which is idempotent: it installs an OS supervisor (launchd on macOS, systemd on Linux) so the daemon restarts on crash, starts the daemon if it isn’t running, and points Claude Code at the local proxy by settingANTHROPIC_BASE_URLin~/.claude/settings.json. - Capture begins. Every subsequent session is picked up automatically.
The proxy binds loopback only and Claude Code talks plain HTTP to it, so no certificate is installed and no TLS is intercepted.
The hook tolerates a missing binary: if anything about the install is incomplete it prints a hint and lets the session continue. Cost Intelligence is designed never to be the reason a developer can’t work.
Verify
On a developer machine, in a fresh Claude Code session:
Then confirm traces are landing in the target Opik workspace. That’s the check that actually proves the rollout worked.
Using your own gateway
If your traffic goes through a corporate LLM gateway, LiteLLM, or an AWS Bedrock access gateway rather than straight to the provider, add its origin:
The gateway must expose the Anthropic Messages API. Because a gateway bills under its own account, sessions are reported as API-priced with no subscription plan, and user identity comes from the environment channel rather than an OAuth profile. Set OPIK_CIPX_USER_EMAIL and OPIK_CIPX_USERNAME alongside it if git and OS identity aren’t reliable on your fleet.