Exporting LiteLLM usage in FinOps FOCUS format

Send LiteLLM spend to S3 or GCS as FOCUS v1.2 datasets so cloud cost tools can ingest AI spend next to infrastructure, with the experimental status weighed for production.

On this page

Why put LiteLLM spend in your FinOps data set

FinOps teams usually see AI spend in one place and cloud spend in another. Model usage is billed through a LiteLLM gateway that records tokens and cost per key, team and model, while compute, storage and network costs sit in the cloud cost tool. Each view is accurate on its own, but nobody can see total cost per product or cost center without rebuilding the join by hand. LiteLLM can emit usage data in the FinOps FOCUS v1.2 format and push Parquet files to Amazon S3 or Google Cloud Storage through its focus callback, but the integration is experimental. That status matters before any finance report depends on it.

The people who benefit most are FinOps analysts who allocate shared cost, finance teams who close the month against provider invoices, and platform owners who must explain why the gateway costs what it does. A FOCUS dataset lets them load AI spend beside infrastructure using the same column names, so one query can show a team's Kubernetes nodes and its model calls together. A one-off spreadsheet export can answer a single question for a single month. It becomes insufficient when the same reconciliation must repeat, when several teams need the same data, or when auditors ask how a figure was produced and what changed between runs.

Before you build on this export, confirm three things with your own environment: which FOCUS fields your cost tool expects, whether the callback output matches the version you plan to ingest, and how the experimental status affects your change control. Ask DeployOpen or your internal team to run a test export into a non-production bucket and compare totals against the gateway's own spend reports for the same window. The result tells you whether the dataset is ready for chargeback or only for exploration.

How LiteLLM spend reaches the cost tool

Requests start in applications that call the LiteLLM proxy using the OpenAI request format. The proxy records spend against virtual keys and teams in its PostgreSQL database, then the focus callback writes FOCUS-formatted Parquet files to an S3 or GCS bucket in your cloud account. The cloud cost tool reads that bucket. Check that the bucket, database and proxy sit inside the trust boundary you approved, and that the export status matches your production risk.

Spend flows from applications through the proxy and bucket into the cost tool.

Export destination and configuration options

This table compares the Amazon S3 and Google Cloud Storage destinations for LiteLLM FOCUS exports across format, layout and credentials. Read each row against the cloud account your team already runs, then confirm the specifics in the official FOCUS documentation before you commit to a destination.

OptionAmazon S3Google Cloud Storage
Format deliveredFOCUS v1.2 usage data written as Parquet filesFOCUS v1.2 usage data written as Parquet files
Integration statusExperimental, so confirm behavior in your version before production relianceExperimental, so confirm behavior in your version before production reliance
Best fitTeam already runs AWS and wants AI spend beside existing AWS cost dataTeam already runs Google Cloud and wants AI spend beside existing GCP cost data
Bucket and prefix layoutConfirm the bucket name, prefix and partition path the callback writes to in your versionConfirm the bucket name, prefix and partition path the callback writes to in your version
Credentials approachConfirm whether the gateway uses an IAM role, access keys or both, and scope write access to the export prefixConfirm whether the gateway uses a service account key or workload identity, and scope write access to the export bucket
Secret handlingStore any access keys in your secret manager, not in config filesStore any service account key in your secret manager, not in config files
Ingestion by cost toolsConfirm which AWS-side cost tools can read the Parquet layout you chooseConfirm which Google Cloud cost tools can read the Parquet layout you choose
Retention and lifecycleSet bucket lifecycle rules with your data governance ownerSet bucket lifecycle rules with your data governance owner

Setting up the FOCUS export step by step

This sequence takes a self-hosted LiteLLM proxy from a version check to Parquet files in your own bucket, formatted for FOCUS v1.2 and checked against the spend your gateway already records. Each step ends with a check you can record before moving on.

  1. Confirm the version and callback support

    The platform team confirms that the LiteLLM version in use includes the focus callback. Check the GitHub releases page for the release you run and the FOCUS export documentation for that version. The latest listed release in the supplied facts is v1.105.1, published October 14, 2026, but your organization should confirm the version it deploys, since your upgrade path may place you on a different minor line. Record the running version and the documentation page you used. The step is done when the proxy reports the same version you recorded and the documentation describes the focus callback for that version.

  2. Create the bucket and write identity

    The cloud or infrastructure team creates an Amazon S3 or Google Cloud Storage bucket in an account they control, with public access blocked and a prefix reserved for FOCUS files. They then create an identity for the proxy that can write to that prefix and nothing else. Keep the bucket in the region your data handling rules require, and decide retention before the first export so files are not deleted by accident. The step is done when a test write using that identity succeeds in the prefix and a write to a different prefix or bucket is refused.

  3. Store credentials in a secret manager

    The platform team places the master key, the bucket name and the cloud credentials for the write identity in your secret manager. LiteLLM's production guidance is to keep LITELLM_MASTER_KEY in a secret manager, and the key must start with sk-. The proxy receives these values as environment variables injected at runtime, so nothing is written into the configuration file or the Git repository. The step is done when the running container shows the variables present, and a search of the configuration repository finds no bucket keys, access keys or master key values.

  4. Enable the focus callback in proxy configuration

    The platform team adds the focus callback to the proxy configuration, following the destination and format settings in the FOCUS export documentation for your version. Keep the change in version control so it is reviewed like any other gateway change. Restart or roll the proxy using your normal deployment path, and confirm that every replica runs the same configuration. The step is done when the proxy starts without configuration errors and its startup logs show the focus callback initialized with the bucket you created.

  5. Send test traffic through a dedicated key

    The team creates a virtual key used only for this test, restricted to one approved model. Virtual keys require a PostgreSQL database, so confirm the database is connected before testing. Send a small, known set of requests through the key, noting the number of requests and the approximate size of each prompt so the results can be compared later. The step is done when the requests appear in the gateway's spend records for the test key with the same request count you sent.

  6. Verify Parquet files and column mapping

    Once the export runs, the team lists the prefix in the bucket and confirms that Parquet files appear. They open one file with a Parquet reader and check that its columns follow the FOCUS v1.2 specification, including the cost, charge period and service fields that cost tools read. Confirm the column names against the specification rather than assuming they match, and record any field the gateway does not populate. Compare the total cost in the files with the test key's spend for the same window. The step is done when the files exist, the mapping is documented, and the totals agree within the tolerance your finance team sets.

  7. Ingest into the cost tool and set review rules

    The FinOps or cloud cost team points its cost tool at the bucket prefix and confirms that AI spend appears next to infrastructure spend for the same period. Because the integration is experimental, the team keeps the gateway's spend records as the reference, reviews the exported files on a set schedule, and decides in advance what would stop a production rollout, such as missing files or unexplained totals. The step is done when the cost tool shows the test spend under the expected service, and the review owner and schedule are written into the operations runbook.

What experimental status means for production use

When the FOCUS export feeds a dashboard that nobody bills against, the main risk is wasted effort rather than financial error. The integration is marked experimental, so field names, file layout or how fields are populated may change between releases. Treat the output as a trial of your data pipeline, not as a record of spend. Confirm the export behavior against the LiteLLM FOCUS documentation before you build dashboards on it.

  • Schema drift: Pin the LiteLLM version you test and record which FOCUS columns you actually read, so a later upgrade shows you exactly what changed.
  • Reconciliation: Spot-check a few days of exported rows against the proxy's spend records and one provider invoice, even for a pilot.
  • Fallback: Keep the proxy's database as the source of truth and treat the Parquet files as a convenience copy.
  • Ownership: Name one person who checks the export after each LiteLLM upgrade, since no one else will notice a silent column change.
  • Exit criteria: Write down what the pilot must show before anyone uses the data for showback or chargeback.

Before leaving the pilot, confirm with your FinOps tool owner which FOCUS fields it requires and whether the export still populates them on your chosen version.

Securing the export path and bucket

The FOCUS export moves spend records out of the gateway into a bucket that finance and cloud cost tools will read. Each card below covers one control on that path, and the client's own cloud controls enforce most of them.

Least-privilege bucket access

Give the LiteLLM workload a write-only identity scoped to the export prefix, and nothing else. Keep bucket administration, lifecycle changes and policy edits with a separate platform role. Check that the gateway identity cannot list or read other prefixes, since a broad grant would let any gateway compromise expose spend history. Confirm the exact permissions your cloud provider requires for object writes before you grant them.

FOCUS export docs

Encryption of Parquet files

Spend files contain team names, key aliases and model usage that many organizations treat as confidential. Use server-side encryption with a customer-managed key where your cloud offers it, so key rotation and revocation stay under your control. Confirm which encryption options your bucket type supports and whether the chosen key policy lets the finance tools that read the data decrypt it.

Retention and lifecycle rules

Parquet files accumulate daily and are rarely deleted by the export itself. Set lifecycle rules that match your finance retention policy, moving older files to cheaper storage classes and expiring them at the end of the period. Test that a rule does not delete the most recent files that a cost tool still needs for its current period.

Protecting the master key

The LiteLLM master key controls administrative access to the gateway that produces the export. Keep it in your secret manager rather than in configuration files, and have the proxy read it at startup. Restrict who can view the secret, and rotate it on a schedule you define. Make sure the export bucket credentials are stored separately from the master key so one leak does not expose both.

Required key prefix
sk-

Who can read cost data

Spend data reveals which teams use which models and how much they spend, so read access should follow the same governance as finance reports. Grant read access to FinOps analysts and cost tool service accounts through named groups, not shared credentials. Review membership on a regular cadence and confirm that engineering teams cannot reach the bucket unless they have a documented need.

Auditing reads and writes

Enable object-level access logging on the export bucket so every write by the gateway and every read by a cost tool leaves a record. Route those logs to your SIEM or log archive and alert on unexpected readers or deletions. Confirm which logging features your cloud provider offers for the bucket type you choose, and whether they carry an extra cost for high request volumes.

Questions buyers ask before exporting LiteLLM spend

What drives the effort of exporting LiteLLM usage in FOCUS format?

The main drivers are how many teams, keys and providers produce spend, how cleanly your existing LiteLLM spend data already maps to the columns your cost tool expects, and how many cost-tool consumers depend on the output. A single gateway with one provider and a known tagging scheme is far simpler than several gateways feeding several accounts. Storage target setup (an S3 or GCS bucket with the right permissions), validation against an invoice, and documentation of the field mapping also add work. Ask any partner to list each of these drivers in the written scope before quoting.

Can our own team set up the FOCUS export without outside help?

Yes, if you have engineers who run the LiteLLM proxy and someone who owns the cloud storage account. The focus callback is configured in the proxy settings and pushes Parquet files to Amazon S3 or Google Cloud Storage, so the technical steps are not large. The harder parts are reconciling the output with provider invoices, agreeing which cost owner gets which fields, and deciding who maintains the export when LiteLLM changes. Teams without FinOps experience often choose a partner for the validation and reporting design, while keeping the configuration in-house.

What do you need from our team to run the export?

Plan to provide access to the LiteLLM proxy configuration and a non-production environment, permission to create or use a bucket in S3 or GCS, and a named owner for the destination account. You will also need the cost owners who will read the data, such as FinOps analysts or platform leads, and the billing contacts who can supply recent provider invoices for comparison. Confirm with your cloud team which identity will write the files and how keys are issued, since the proxy needs credentials for the bucket.

How long does validating FOCUS output against our bills take?

Validation time depends on the length of the billing window you choose, how many providers feed the gateway, and whether cache or discount pricing needs adjusting before totals match. Choose a stable window that closes before invoices are final, then compare token categories and cost totals per provider. Ask the partner to state how many billing cycles the validation will cover and what happens if the gap is caused by pricing data rather than ingestion. Treat the timeline as a question for the written scope, not a fixed figure.

Does the experimental status of the FOCUS integration block production use?

It does not block use by itself, but it does change how you should plan. The LiteLLM FOCUS integration is marked experimental in the LiteLLM FOCUS documentation, so the output format and configuration options may change between releases. Pin the LiteLLM version you test, keep a copy of the exported Parquet files, and reconcile totals against provider invoices on a schedule. Decide before go-live who approves upgrades and how a broken export is detected, because your cost reports will depend on it.

How should we ask a partner for a fixed-scope quote?

Send the partner a written description of your gateway topology, the number of teams and providers, the target bucket type, the cost tools that will read the data, and the reports you need. Ask for deliverables such as configuration, a field mapping document, a reconciliation against named invoices, and handover notes. DeployOpen agrees scope, deliverables and timelines in writing before work starts, and a quote follows from that written scope. Ask any vendor to list what is excluded, such as ongoing upgrades or retainer support.

Who maintains the export after the first delivery?

Someone on your side needs to own the export after handover, because LiteLLM releases, provider pricing changes and cost tool updates all affect the output. Name an operator who watches the bucket for new files, a reviewer who checks totals each billing cycle, and an owner for LiteLLM version upgrades. Ongoing support, upgrades and continuous testing are available from DeployOpen as retainers, so ask for those terms separately from the initial scope.

Limits to confirm in your environment

The FOCUS export is experimental, so the files it produces depend on your exact LiteLLM release, your providers and the cloud cost tool that reads them. The cards below list what to confirm before any spend data reaches a finance or FinOps workflow.

Release line in use

Confirm which LiteLLM release you run and whether it sits within the four most recent stable minor versions. The focus callback is a recent, experimental addition, so behavior can change between minor releases. Record the exact version in your change log so that a later export difference can be traced to an upgrade rather than to your data.

Latest listed release
v1.105.1
LiteLLM releases

Callback behavior in your version

Test the focus callback in a non-production proxy before relying on it. Check that Parquet files are written to the configured S3 or GCS path, that file names and partitions are stable, and that a request made through a virtual key appears in the output. Do not assume the behavior described in the docs matches your build until a test export proves it.

FOCUS export docs

FOCUS column coverage by provider

Check which FOCUS v1.2 columns are populated for each provider you route to. Cost, usage quantity and billing period fields may be filled differently for token-based and capacity-based models. Compare a sample of exported rows with a provider invoice line to see whether cost and currency columns hold the values finance expects.

Tag and team dimension mapping

Decide how LiteLLM team, key and tag fields map onto the cost allocation dimensions your cloud tool uses. Confirm that team names are stable identifiers, not display names that people change, and that untagged requests land in a visible bucket. Unmapped dimensions will break chargeback reports even when the files load correctly.

Upload timing and completeness

Confirm how often spend data is written to storage and how that interacts with the database batching interval your deployment uses. Late or partial files can split a billing period across two exports. Agree on a cutoff time and check that the last export of each month is complete before finance closes the period.

Cloud cost tool acceptance

Verify that your FinOps platform accepts the FOCUS v1.2 schema from your bucket, including the file format and the bucket access method it expects. Test ingestion with a sample export and confirm that the AI spend appears beside infrastructure costs with the currency and dates you need. Ask the tool vendor which FOCUS version it validates against.

How to check that exported spend matches provider bills

FOCUS output is only useful for FinOps if it reconciles with the invoice your provider sends you. Before any FOCUS dataset reaches a cloud cost tool, run a reconciliation for one closed billing period and treat the result as the acceptance test for the export. Choose a window that matches how the provider bills, such as the provider's calendar month in its billing time zone, and avoid comparing a LiteLLM day against a provider invoice cycle. Pull the invoice line items for the same models and the same window, then compare totals per model and per provider account before comparing anything finer.

Once totals are in the same window, compare token categories separately. Input, output, cached input and any batch or reasoning tokens often bill at different rates, so a single blended total can hide a gap that cancels out. Check that the token counts in the exported rows match the counts the provider reports, and confirm which model and provider identifiers LiteLLM writes for each deployment. Ask your DeployOpen team or LiteLLM's documentation to confirm how the FOCUS export represents cached tokens for each provider you use, because that behavior determines what a correct match looks like.

When a gap remains, sort it into one of three causes before changing anything. An ingestion gap means rows are missing, duplicated or delayed, which shows up as counts that differ by whole requests or by a stretch of days. A formula gap means the cost calculation differs, often from a discount, margin or tax applied in one system and not the other. A pricing gap means LiteLLM's cost map holds a rate that differs from the rate on the invoice. Keep this check running every billing cycle, since the export is experimental and a silent change in one of these areas would otherwise reach the cloud cost tool unnoticed.

How DeployOpen scopes and delivers FOCUS export work

DeployOpen treats a FOCUS export as a scoped piece of platform work: we agree which usage data leaves the gateway, where it lands, and how it is checked against provider invoices before anything is built. The result is a written scope, a tested export path into storage you control, and a handover your FinOps and platform teams can run.

How we scope

  • Agree in writing which LiteLLM spend fields, tags and teams feed the FOCUS dataset and which stay in the gateway.
  • Confirm the target S3 or GCS bucket, account ownership, retention and the cloud cost tool that will ingest the files.
  • Record that the LiteLLM FOCUS integration is experimental and agree how production use will be risk-accepted by your owners.
  • Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts.

How we build

  • Configure the focus callback and credentials in your gateway, keeping secrets in your existing secret manager rather than config files.
  • Run test exports to a non-production bucket and compare row counts and cost totals against a known spend window.
  • Verify generated Parquet files against the FOCUS v1.2 column definitions and document any fields that differ from your ingestion tool's expectations.
  • Test failure behavior, including bucket permission errors and missed export intervals, and record how each one surfaces to operators.

How we hand over

  • Deliver a runbook covering the export schedule, bucket layout, IAM policies, and the steps to re-run or backfill a failed export.
  • Document a reconciliation procedure that compares exported spend with provider invoices for a stable time window.
  • Walk through the setup with platform and FinOps staff and record the known limits of the experimental integration.
  • Provide configuration as code and a change record so future LiteLLM upgrades can be checked against the export path.

How we support

  • Offer ongoing support, upgrades and continuous testing of the export path as a retainer once the handover is complete.
  • Retest the export after each LiteLLM version change on the release line your organization supports.
  • Review the export when the FOCUS integration changes status or when your cost tool requires new fields.
  • Confirm support hours, response expectations and retainer terms in the written quote before any work starts.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.