• MONEY
  • USAGE
  • BUDGET
  • HUMAN

How to track LLM token costs with your agent

Connect New Relic AI to your agent to turn raw telemetry into clear dollar amounts. You get immediate visibility into what your LLM calls are actually costing you.

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 track my LLM token costs?

Your agent uses the query_llm_costs tool to pull real-time USD consumption data directly from your New Relic telemetry. You can ask for specific cost breakdowns by model, service, or time range to see exactly where your budget is going.

Cost visibility outcomes.

Where your spending lands.

Your agent translates complex telemetry into actionable financial data.

MONEY

Real-time USD tracking

Your agent pulls current spending data from your infrastructure. You see the actual dollar impact of your LLM usage immediately.

USAGE

Token consumption analysis

Get a breakdown of how many tokens are being burned across different models. This helps you spot inefficient prompts or runaway loops.

BUDGET

Threshold monitoring

Ask your agent to compare current spending against your set limits. It identifies when costs are trending toward a budget overrun.

HUMAN

Manual cost adjustments

Your agent only reads and reports data. You remain responsible for setting budget limits and making changes in your New Relic dashboard.

The workflow

What your agent does when you ask about costs.

Your agent bridges the gap between your New Relic logs and your chat interface.

  1. Fetch telemetry

    Your agent reaches into your New Relic environment to find relevant LLM performance and cost metrics.

    query_llm_costs
  2. Calculate USD totals

    It processes the raw token counts and applies your specific pricing models to find the total dollar spend.

    query_llm_costs
  3. Filter by model

    Your agent isolates costs for specific LLMs, such as those used in your production agents or testing environments.

    query_llm_costs
  4. Report findings

    Your agent presents the final cost numbers in a clean, readable format within your chat window.

    query_llm_costs

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 New Relic AI 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.

Use these prompts to get immediate answers from your agent.

Starting points

Replace the bracketed text with your specific model names or timeframes.

New Relic AI Connector

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

Connector linkhttps://edge.vinkius.com/vk_preview_oqdaAroeFoXBv9yPI4WsHZZZZZuzqhwVoSn1YCyq/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, New Relic AI capabilities are ready to use.
Configuration · claude_desktop_config.jsonCopy
{
  "mcpServers": {
    "new-relic-ai-llm-observability-mcp": {
      "url": "https://edge.vinkius.com/vk_preview_oqdaAroeFoXBv9yPI4WsHZZZZZuzqhwVoSn1YCyq/mcp"
    }
  }
}
Copy into chat04
  • 01

    How much did we spend on GPT-4o tokens in the last 24 hours?

  • 02

    Show me the total USD cost for all LLM calls made yesterday.

  • 03

    Which model is currently driving the highest token costs in our production environment?

  • 04

    Compare the token usage between our staging and production clusters for this week.

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

Start here

Connect New Relic AI once, then ask.

Link your account once. Your credentials stay encrypted and secure, and you can start querying costs immediately in any compatible client.

Connect New Relic AI to your agent

FAQ

How this task behaves

  • 01

    Can your agent change my New Relic settings?

    No. Your agent can only read cost and usage data. It cannot modify your New Relic configurations or alert settings.

  • 02

    Does your agent know my specific pricing per token?

    Yes, it uses the pricing data available in your New Relic telemetry to calculate the USD amounts.

  • 03

    Can your agent delete old telemetry data?

    No. Your agent has no permission to delete or alter any data within your New Relic account.

  • 04

    Can I ask for costs by specific API keys?

    Yes, if your New Relic telemetry includes those attributes, your agent can filter by them.

  • 05

    Will your agent automatically stop my services if I go over budget?

    No. Your agent only reports on the costs. You must set up your own automated scaling or shutdown policies in your infrastructure.

  • More questions about New Relic AI? The Connector page answers them. See everything the New Relic AI 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 New Relic AI 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.

    New Relic AI 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 New Relic AI 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.