Skip to main content
Connect Sourcegraph to track your team’s AI-assisted development activity. Weave ingests Sourcegraph usage via CSV upload. Amp is tracked separately, through git attribution.

What’s tracked

  • Usage activity — engineers using Sourcegraph and their activity
  • Code generation — AI-assisted code and lines generated
  • Cost tracking — seat-based Sourcegraph cost

Prerequisites

  • A Sourcegraph subscription with access to usage exports
  • Admin access to your Weave organization

Setup

1

Export your Sourcegraph usage CSV

From your Sourcegraph admin tools, export the per-user usage report as a CSV.
2

Upload to Weave

Go to Data → Sourcegraph → Upload and upload the CSV. Weave parses it and attributes activity to your engineers.
3

Verify

Check that Sourcegraph activity appears in Weave’s AI metrics.

Metrics enabled

Once connected, you can track:

Cost tracking

The Sourcegraph usage CSV tracks activity, not dollar cost, so Sourcegraph cost is seat-based. Enter your Sourcegraph subscription in Settings → Financial → Tool subscription costs (seats × cost per user), and Weave allocates that flat cost across the engineers active in Sourcegraph during each period.

Data privacy

Weave syncs only the aggregate usage metrics contained in the CSV you upload:
  • Per-user usage and code-generation counts
We never access:
  • Your source code content
  • AI prompts or responses
  • File names or project structure
Last modified on October 17, 2026