• USAGE
  • COST
  • AUDIT
  • HUMAN

How to track agent token costs with your agent

Connect AgentOps to your AI client once. From then on, you can ask your agent to pull exact usage data from any specific trace.

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 how many tokens my agent is using?

Ask your agent to retrieve metrics for a specific trace ID. It will pull the exact token counts and cost data from AgentOps. You'll get a clear breakdown of usage per trace.

The outcomes

What you get from your agent

Your agent uses AgentOps data to provide these specific insights.

USAGE

Token count breakdown

Your agent pulls specific input and output token numbers for a trace. You see exactly how much each step costs.

COST

Direct cost analysis

Your agent calculates the monetary cost of a trace based on the retrieved metrics. This helps you spot expensive loops.

AUDIT

Trace-level visibility

Your agent identifies which specific agent actions drove up your bill. You get a granular view of each execution.

HUMAN

Manual budget adjustments

Your agent provides the data, but you decide how to change your prompt logic or model settings to save money.

The workflow

What your agent does when you ask for metrics.

Your agent acts as a bridge between your chat interface and your AgentOps telemetry.

  1. Identify the trace

    Your agent looks for the specific trace ID you mentioned in your request.

    get_trace_metrics
  2. Fetch telemetry

    Your agent calls the tool to pull the raw token and cost data for that trace.

    get_trace_metrics
  3. Calculate totals

    Your agent sums up the input, output, and total costs from the retrieved data.

    get_trace_metrics
  4. Report findings

    Your agent presents the cost breakdown in a readable format in your chat window.

    get_trace_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 AgentOps 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 prompts into your AI client to begin.

Starting points

Replace the trace IDs and agent names with your actual data from your AgentOps dashboard.

AgentOps Connector

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

Connector linkhttps://edge.vinkius.com/vk_preview_OCln8CM8I7G7rNCo6QKijZPwPeMGY7W7gj6qBqEG/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, AgentOps capabilities are ready to use.
Configuration · claude_desktop_config.jsonCopy
{
  "mcpServers": {
    "agentops-agent-telemetry-and-monitoring-mcp": {
      "url": "https://edge.vinkius.com/vk_preview_OCln8CM8I7G7rNCo6QKijZPwPeMGY7W7gj6qBqEG/mcp"
    }
  }
}
Copy into chat04
  • 01

    Get the token usage and total cost for trace ID 12345.

  • 02

    How many tokens did your agent use in trace abc-789?

  • 03

    Show me the cost breakdown for the last agent trace I ran.

  • 04

    Which trace in my recent history had the highest token consumption?

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

Start here

Connect AgentOps once, then ask.

Link your account once. Your credentials stay encrypted, and you can immediately start asking your agent about your telemetry.

Connect AgentOps to your agent

FAQ

Common questions

  • 01

    Can your agent change my AgentOps settings?

    No. Your agent can only read metrics from existing traces. It cannot modify your AgentOps configuration or account settings.

  • 02

    Does your agent delete any traces?

    No. Your agent only retrieves data. It has no capability to delete or overwrite your telemetry data.

  • 03

    Can I see costs for all agents at once?

    The current tool focuses on retrieving metrics for specific traces. You'll need to provide the trace ID for the data you want.

  • 04

    Do I need to provide the trace ID each time?

    Yes. To get accurate cost data, your agent needs to know which specific trace you are asking about.

  • 05

    Can your agent predict future costs?

    No. Your agent only reports on the actual token usage and costs that have already occurred in recorded traces.

  • More questions about AgentOps? See everything the AgentOps 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 AgentOps 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.

    AgentOps 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 AgentOps 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.