> ## Documentation Index
> Fetch the complete documentation index at: https://docs.valmi.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Architecture

> How Valmi Value works under the hood

## How It Works

Valmi **Value** is built around three simple pieces that work together seamlessly. You integrate our lightweight SDK into your agents, and everything else happens automatically.

### 1. The SDK

The SDK runs alongside your agents, collecting usage data as things happen. It's invisible by design—non-blocking, reliable, and fast. It automatically captures **outcomes** (successful hires, qualified leads, conversions, or any business result you define) along with LLM calls, tokens, and actions in real-time. If your connection drops, it buffers locally and syncs when you're back online.

<Info>
  The SDK is designed to be non-blocking and have minimal performance impact on your agents.
</Info>

### 2. The Control Plane

A fully managed service that processes your usage data and **outcomes**, applies your pricing rules (including **outcome-based pricing**), and generates invoices automatically. You manage everything through a simple dashboard—no servers to configure, no infrastructure to maintain. It's SaaS that scales with you automatically.

Key capabilities:

* Tracks profitability in real-time—see which outcomes drive revenue
* Generates invoices based on outcomes, usage, or both

### 3. The Extension Framework

Connects Valmi **Value** to the tools you already use. Invoices automatically go to Stripe for payment, payments sync to QuickBooks, and usage changes update your CRM. Built on the open-source valext protocol, so you can build custom integrations or use community-built ones.

### The Complete Flow

Your agent performs an action and achieves an **outcome** (e.g., successful hire, qualified lead). The SDK captures the action, usage, and **outcome** instantly. The Control Plane processes it and applies pricing—including **outcome-based pricing**. Invoices generate automatically, payments flow through your existing systems, and you see everything in real-time.

**You focus on your product. We handle the infrastructure.**
