Skip to main content

Check out Port for yourself ➜ 

Track AI coding assistants costs

As organizations adopt multiple AI coding assistants, understanding the cost impact of each coding assistant becomes critical. Without centralized visibility, teams overspend or fail to detect runaway costs across Cursor, Claude, and GitHub Copilot.

This guide shows you how to build a unified cost analysis dashboard in Port that aggregates spending data from your existing AI coding assistant integrations, giving you a single pane of glass for AI cost monitoring.

Prerequisites

This guide assumes the following:

  • You have a Port account and have completed the onboarding process.
  • You have installed at least one of the following integrations and have data flowing into Port:
    • Cursor integration: provides total_cents cost data at organization, user, and team levels.
    • Claude integration: provides cost records (claude_cost_record) and token usage data by workspace and model.
    • GitHub Copilot integration: provides usage metrics (suggestions, acceptances, active users) that correlate with seat-based licensing costs.
Install the integrations first

If you haven't installed any of these integrations yet, follow the linked documentation above to set them up. Each integration page includes installation instructions, blueprint definitions, and mapping configurations. Once data is flowing, return to this guide to build your cost dashboard.

Available cost data

Each integration brings different cost-related data into Port. Here is a summary of what is available:

The Cursor integration ingests daily usage records that include a total_cents property representing actual spend. Cost data is available at three levels:

BlueprintDescriptionCost property
cursor_usage_recordOrganization-level daily metrics.total_cents - total cost in cents for the day.
cursor_user_usage_recordPer-user daily metrics.total_cents - cost attributed to a specific user.
cursor_team_usage_recordPer-team daily metrics.total_cents - cost attributed to a specific team.

Additional properties useful for cost analysis include usage_based_reqs, api_key_reqs, subscription_included_reqs, and token counts (total_input_tokens, total_output_tokens).

For full blueprint definitions and setup instructions, see the Cursor integration documentation.

Visualize costs

With your integration data flowing into Port, create a dashboard to visualize AI tool costs and usage across all tools.

Create a dashboard

  1. Navigate to your software catalog.
  2. Click on the + button in the left sidebar.
  3. Select New dashboard.
  4. Name the dashboard AI Tool Costs.
  5. Input Track and compare AI coding tool costs across your organization under Description.
  6. Select the DollarSign icon.
  7. Click Create.

Add widgets

In the new dashboard, create widgets based on the integrations you have installed. Select the relevant tab below:

Total daily spend number chart (click to expand)
  1. Click + Widget and select Number Chart.
  2. Title: Cursor Daily Spend.
  3. Description: Total Cursor cost in cents for the current period.
  4. Select Aggregate by property Chart type and choose Cursor Usage Record as the Blueprint.
  5. Select total_cents as the Property.
  6. Select sum for the Function.
  7. Select custom as the Unit and input cents as the Custom unit.
  8. Click Save.
Cost per team bar chart (click to expand)
  1. Click + Widget and select Bar Chart.
  2. Title: Cursor Cost by Team.
  3. Description: Cost distribution across teams.
  4. Choose the Cursor Team Usage Record blueprint.
  5. Under Breakdown by property, select the Team property.
  6. Click Save.
Cost details table (click to expand)
  1. Click + Widget and select Table.
  2. Title: Cursor Cost Details.
  3. Choose the Cursor Usage Record blueprint.
  4. Click Save to add the widget to the dashboard.
  5. Click on the ... button in the top right corner of the table and select Customize table.
  6. In the top right corner of the table, click on Manage Properties and add the following columns:
    • Record Date (UTC): The date of the usage record.
    • Organization: The Cursor organization.
    • Total Cost (cents): The cost for that day.
    • Usage-based Requests: Requests billed on usage.
    • Total Active Users: Number of active users.
    • Most Used Model: The model consuming the most resources.
  7. Click on the save icon in the top right corner of the widget to save the customized table.
High-cost users table (click to expand)
  1. Click + Widget and select Table.

  2. Title: Cursor High-Cost Users.

  3. Choose the Cursor User Usage Record blueprint.

  4. Add a filter with the following configuration:

    {
    "combinator": "and",
    "rules": [
    {
    "value": 1000,
    "property": "total_cents",
    "operator": ">="
    }
    ]
    }
  5. Click Save.