• MONEY
  • TOKENS
  • HUMAN
  • REPORTS

How to track LLM usage costs with your agent

Connect Langfuse to your agent to turn raw trace data into clear spending reports.

Ask AI about this page

Our technology reaches across leading technology and enterprise teams.

  • Amazon
  • NVIDIA
  • Red Hat
  • Fidelity Investments
  • Intuit
  • OLX Brasil
  • Writesonic
  • Artium
  • Trolley
Bunny World Voxel Workspace

Short answer

How can I see my daily LLM spend and token usage?

Ask your agent to pull daily metrics from your Langfuse project. It will fetch the exact USD spent and token counts for any given day. You'll get a breakdown of your costs below.

The results.

Where your data lands.

Your agent handles the heavy lifting of querying Langfuse.

MONEY

Cost tracking

Your agent uses get_daily_metrics to find out exactly how many dollars you spent on LLM calls. You get a clear number for your budget.

TOKENS

Usage volume

It pulls the specific token counts used in your traces. This helps you see if your prompts are getting too heavy.

HUMAN

Manual review

Your agent provides the raw numbers, but you decide if the spending patterns look suspicious or need optimization.

REPORTS

Daily summaries

You can ask for a summary of the last week or month. Your agent aggregates the daily data into a single view.

The workflow

What your agent does when the request arrives.

Your agent acts as a bridge between your chat interface and your Langfuse project.

  1. Fetch metrics

    Your agent reaches into your Langfuse project to grab the specific usage data you asked for.

    get_daily_metrics
  2. Calculate totals

    It sums up the USD and token values from the retrieved data points.

    get_daily_metrics
  3. Format report

    Your agent turns the raw numbers into a readable list or summary.

    get_daily_metrics
  4. Identify spikes

    It compares the current data against previous days to highlight unusual cost jumps.

    get_daily_metrics

Vinkius Agentic Execution Platform

State the outcome. Agents take it from there.

You don't have to drive this run by hand. Inside the Vinkius Agentic Execution Platform, agents pick up the task above and carry it to the end: you set the limits, you watch the steps, you keep all decisions.

Run it in Vinkius

Agents carry the task to the end

Agents execute Langfuse tasks from end to end inside the Vinkius Agentic Execution Platform: set the outcome, and the steps run.

Take it to any compatible AI

One connection, any client

Same connection follows you to ChatGPT, Claude, Gemini and any other client you love. Switch whenever you want: your connection, your permissions and your record move with you.

Spaces

One Space per activity

A Space gathers the context, tools and tasks of one activity, so you coordinate several agents at once and follow each execution as it happens.

Limits

Autonomy inside limits you set

Permissions and spending limits are yours to define. Agents halt for your approval on anything sensitive, and you choose how far autonomy goes, step by step or end to end.

Record

All steps, on the record

Each action your agents take lands in a signed audit trail. Results are verified, mistakes are learned from, and an emergency stop is one click away.

Models

Included in your plan

A curated selection of AI models is included in your plan, and you can add your own through BYOK whenever you prefer.

Try it

Copy these to start.

Paste these directly into your chat to begin.

Starting points

These are only ideas. Swap out the project names or date ranges to match your actual Langfuse setup.

Langfuse Connector

You're all set. Choose your MCP client and follow the setup instructions.

Connector linkhttps://edge.vinkius.com/vk_preview_sTXOynCd5hRTA7WbjY0nBUsTjmjwRIVY989VA7VU/mcp

Claude Desktop

Follow the steps below to connect in seconds.

  1. 1In Claude Desktop, open Settings → Connectors.
  2. 2Click “Add custom connector” and paste the connector link above as the remote MCP server URL.
  3. 3Click Add and start a new chat, Langfuse capabilities are ready to use.
Configuration · claude_desktop_config.jsonCopy
{
  "mcpServers": {
    "langfuse-llm-tracing-evals-mcp": {
      "url": "https://edge.vinkius.com/vk_preview_sTXOynCd5hRTA7WbjY0nBUsTjmjwRIVY989VA7VU/mcp"
    }
  }
}
Copy into chat04
  • 01

    How much did I spend on my 'Production-App' project yesterday?

  • 02

    Show me the total token usage for the last 7 days in my 'Testing-Env' project.

  • 03

    Did my LLM costs spike on Tuesday? Check the daily metrics for my main project.

  • 04

    Give me a summary of USD spending for the 'Customer-Bot' project this month.

  • Claude
  • ChatGPT
  • Cursor
  • VS Code
  • Windsurf
  • Claude Code
  • JetBrains
  • Cline

Start here

Connect Langfuse once, then ask.

Link your Langfuse account through Vinkius. Your credentials stay encrypted, and you can immediately start asking your agent about your usage.

Connect Langfuse to your agent

FAQ

How this task behaves.

  • 01

    Can your agent change my Langfuse settings?

    No. Your agent can only read metrics. It cannot modify your Langfuse projects or settings.

  • 02

    Can I ask for specific trace details?

    No. This specific task is limited to daily metrics like USD and tokens. It cannot pull individual trace IDs.

  • 03

    Does your agent see my API keys?

    No. Your credentials are encrypted and managed by Vinkius. Your agent only sees the data returned by the tools.

  • 04

    Can your agent delete my usage history?

    No. Your agent has no capability to delete or overwrite any data in Langfuse.

  • 05

    How accurate are the USD totals?

    The totals are exactly what is recorded in your Langfuse project via the get_daily_metrics tool.

  • More questions about Langfuse? The Connector page answers them. See everything the Langfuse Connector can do

Building with AI? Ship this whole workflow in your product.

Vinkius Connect is the connectivity layer for AI builders. All the capabilities used on this page, from Langfuse to thousands more, arrive through one SDK, already maintained for you. One Application, unlimited seats, each with their own connectors and credentials, isolated and never exposed to Vinkius. No OAuth flows to write, no tokens to store, no APIs to chase.

Explore Vinkius Connect

TypeScript · Python · Java · Go · C# · PHP · Rust

  • 01

    Your customers bring their own keys.

    Each user connects their own apps and keeps their own credentials. Vinkius only sees the identifier your backend sends.

  • 02

    Whole catalog, kept current.

    Langfuse plus thousands more, maintained and growing daily. No integrations to write, no token storage, no OAuth plumbing.

  • 03

    Any agent, any model.

    Capabilities land as framework-neutral objects, with adapters for OpenAI, Anthropic, Gemini, the Vercel AI SDK, LangChain and more.

Connect Langfuse to Claude, Cursor, ChatGPT & more

From idea to done

See what gets done when the agents take over the busywork

Each workflow on this page runs on the same platform. Connect your tools once, and your agents keep working in any AI you trust.