Grafana Cloud

Monitor coding agents

Every person on your team runs several coding agents, and each one keeps its own usage in its own silo. Nobody sees what the agents cost, how many tokens they burn, or which tools they call. Agent Observability puts all of it in one view, with no application code changes.

Before you begin

  • Install the agento11y CLI on your machine. On macOS, use Homebrew (brew install grafana/grafana/agento11y). On Linux and macOS, you can also use the install script. For instructions, refer to Set up and monitor coding agents.
  • To share sessions with Grafana Cloud, ensure Agent Observability is enabled on your Grafana Cloud stack and your role has data-read permission.

See all your agents in one view

Install the integration once and every supported agent reports into the same place: Claude Code, Cursor, Codex, Copilot CLI, OpenCode, Pi, and more. Refer to Supported coding agents for the full list.

Start locally, share when you’re ready

You see everything on your own machine first, and you choose what leaves it.

Coding agents send full sessions to a local app on your machine. You choose a privacy mode, metadata_only, no_tool_content, or full, to decide what Grafana Cloud receives for team views.

Review sessions in the local app

The local app runs on your machine at http://localhost:8765. It doesn’t need an account or network access. It keeps full conversations, tool calls, tokens, and estimated spend as plain files on your disk, so you can see what your agents do before you share anything. Open http://localhost:8765 in your browser, or run agento11y local open. Manage the app with agento11y local start, status, stop, or restart.

The app has four pages: Sessions, Analytics, Security, and Settings.

Inspect sessions and spend

Use Sessions to find any conversation. Search prompts, responses, and tools, and filter by workspace, agent, model, or status. Each row shows the first prompt, workspace, agent, cost, tokens, duration, call count, and models, so you can spot an expensive or long-running session at a glance. Open a session to read the full thread.

Local app Sessions page with search, filters, usage totals, and a table of sessions with agent, cost, tokens, and duration

Summary cards above the list show sessions, cost, total tokens, input cache hit rate, model calls, and errored sessions for the selected range. The app starts with sessions captured after you install agento11y. To add earlier sessions, use the banner on Sessions or go to Settings > History.

Use Analytics to measure usage in cost or tokens over the last 30 days. Review estimated spend, total tokens, input cache hit rate, and model calls with the change from the previous period. Break usage down by workspace and model, and compare blended cost per million tokens across models.

Local app Analytics page with estimated spend, total tokens, cache hit rate, tokens over time, workspaces, and models

Estimated spend is a partial estimate. The app excludes usage from models that it can’t price.

Scroll down on Analytics to see which sessions led to merged work. Break usage down by branch and merge status, and see which languages your tokens went to.

Local app Analytics page with language mix, branches sorted by tokens, and merge status

Stop risky actions with local guards

Use Security to turn on guard packs that block tool calls or redact their arguments before they run. Guards run on your device and work offline. Rules are saved in ~/.config/agento11y/guards.toml.

The following table lists each guard pack, when to choose it, what it covers, and what it doesn’t cover:

PackWhen to chooseWhat it coversWhat it doesn’t cover
Secret redactionChoose when tool calls might expose credentials.Redacts API keys, tokens, and private keys in captured tool calls.Unstructured sensitive text or custom secret patterns not defined in the rule set.
File safetyChoose when you want to protect sensitive configuration files.Blocks reading and writing .env files across file and shell tools.Files outside .env patterns unless configured in custom rules.
Git safetyChoose when you want to protect against lost work or history rewrites.Blocks git commands that discard uncommitted work or rewrite commit history.Normal git operations such as staging, committing, or branch creation.
Destructive commandsChoose when you want to prevent accidental filesystem deletion.Blocks recursive deletes such as rm -rf.Non-recursive deletions or single-file removal commands.
PermissionsChoose when you want to prevent unauthorized permission escalations.Blocks recursive chmod and chown, and chmod 777 on / or $HOME.Targeted permission changes on non-root or non-home paths.
Disk wipeChoose when you want to protect storage drives and partitions.Blocks irreversible disk operations such as dd to devices, mkfs, and wipefs.Standard file-level modifications or non-raw block device writes.
Local app Security page listing local guard packs for secrets, files, git, destructive commands, permissions, and disk wipes

Local guards are defense in depth, not a sandbox. Test your rules offline with agento11y guards test.

Choose what you share

When you connect to Grafana Cloud, the content capture mode controls what leaves your machine:

ModeWhen to chooseWhat is sharedWhat stays local
metadata_only (default)Choose when privacy policies require conversation text to remain on your machine.Model, tokens, tool names, timing, and costPrompts, responses, and tool arguments and results
no_tool_contentChoose when you want to review conversation messages while keeping tool arguments and outputs private.Conversation messages and metadataTool arguments and results
fullChoose when you need full debugging of prompts, responses, and tool execution.Everything, including messages, thinking, system prompts, and tool input and output (secrets are automatically redacted)Nothing

Get a team view in Grafana Cloud

In Grafana Cloud, navigate to Agent Observability and select Coding agents to view sessions, estimated cost, tokens, active repositories, and active users across your team.

Coding agents view with session, cost, token, repository, and user totals and sessions by repository

Use the breakdown picker on the usage chart to group sessions, tokens, or cost by dimension.

To see who and what drives spend, enable automatic tags for user, repo, and branch. Then sort repositories and branches by estimated cost.

Repositories and branches sorted by estimated cost with share charts

Because agent data lands as standard metrics, you can also build alerts and reports in Grafana for spend or token spikes. For attribution details, refer to Attribute cost to a user, repository, or branch.

Get started in three commands

Run the following commands to install agento11y, authenticate with Grafana Cloud, and launch an agent:

Bash
brew install grafana/grafana/agento11y
agento11y login
agento11y claude

Replace claude with codex, pi, or another supported agent. For other platforms, credentials, and unattended rollouts, refer to Set up and monitor coding agents.

Next steps