Levered Documentation
Infrastructure for self-optimizing products
Levered is an optimization platform designed for coding agents: It equips your agent with the infrastructure to run Bayesian bandits for real-time product optimization and personalization.
Why Levered?
Most experimentation tools are built for humans to run manual tests. Levered is built for a different model: AI-native products that optimize themselves, continuously, at runtime.
Levered uses data-efficient learning algorithms to dynamically shift traffic toward better-performing variants in real time, while continuously exploring new alternatives. Every user gets the variant most likely to work for them based on their context.
Every capability in Levered is accessible through the CLI and API with structured JSON output, making it easy for AI agents like Claude Code to generate variations, set up optimizations, connect data sources, and monitor results autonomously.
How it works
- Choose a warehouse. Connect your own BigQuery, Snowflake or Postgres (data warehouse native), or use the Managed Warehouse that Levered hosts.
- Define metrics. Write SQL queries that define the reward, for example conversion, revenue or engagement.
- Create an optimization. Define the design factors, for example headline text, CTA color or layout, and their levels.
- Integrate the SDK. Use the JavaScript SDK or the REST API to request a variant for each user.
- Levered optimizes. The model trains on the exposure and reward data and updates the variant selection.
Quick links
- Setup with an Agent: a prompt for a coding agent, which goes through the setup with you
- Manual Setup: the complete setup by hand, in 10 minutes
- Concepts: optimizations, factors and the model
- SDK Reference: JavaScript and TypeScript integration
- CLI Reference: installation, configuration and commands of the command-line tool
- API Reference: REST API endpoints