Skip to main content
Sourcegraph Cody logo

Sourcegraph Cody

Sourcegraph Cody / Amp — Analytics API (CSV) for per-user-per-day code AI usage (searches, chats, autocomplete, CAR%). Spend connector for the AI Platform Spend Governance feature.

Category ai platform

Capability matrix

Catalog declarations describe the connector. Review status and limits for qualification.

Indexes No
Tracks spend Declared
Discovers AI assets Declared
Runs actions No
Webhook events No

Declared capabilities

What the connector catalog declares for Sourcegraph Cody. A declaration is not proof that it is qualified for your deployment; anything not yet qualified is listed on Status and limits.

AI asset discovery
Telara can read the AI assets this system holds into the AI Estate.
Spend and usage
Telara can collect AI spend and usage from this system.

How Telara applies

Policy applies to calls routed through Telara. Discovery and spend collection observe activity; they do not govern calls that bypass Telara.

MCP routing
No MCP routing declaration

Prerequisites

A Sourcegraph Enterprise instance with Cody. Cody Free / Pro on sourcegraph.com does not expose this analytics token.
Site admin who can open analytics.sourcegraph.com (or the instance’s analytics) and create access tokens.

Get the credential

1
Open Access Tokens
Sign in to Sourcegraph Analytics (analytics.sourcegraph.com, or the analytics entry on your instance). Open Access Tokens.
2
Create a token
Click Create access token. Name it for Telara. Copy it. Sourcegraph authorizes with a token prefix on the Authorization header — Telara’s form handles that.
3
Paste in Telara
Settings → Integrations → Sourcegraph Cody. Paste the analytics access token.

Permissions Telara requests

  • mcp
    OAuth 2.0

Connect in Telara

OAuth 2.0

Per-instance Sourcegraph OAuth metadata for MCP dynamic client registration. DCR clients are restricted to mcp; prove the issued token is accepted by the selected Sourcegraph API surface before enabling browser authorization.

In Telara, open Settings → Integrations, choose this connector, and click Connect. Telara sends you to the vendor to approve access, then returns you here. You do not create an OAuth app or paste a client secret.

API key

Sourcegraph Analytics access token (analytics.sourcegraph.com → Access Tokens). Enterprise. The token authorizes the by-user-client-date report. Sourcegraph uses `Authorization: token <key>`.

In Telara, open Settings → Integrations, choose this connector, and paste the key into the fields Telara shows.

Fields Telara asks for
  • API key
API key

Sourcegraph site admin access token (User settings, Access tokens) and the https URL of the instance (for example https://sourcegraph.example.com). Needed to read and update the site configuration that holds the Cody model filters.

In Telara, open Settings → Integrations, choose this connector, and paste the key into the fields Telara shows.

Fields Telara asks for
  • API key
  • Instance Url

What gets measured

Method pull_admin_api. Cadence daily.

Catalog status available. Tier team. Billing method admin_api.

Resolution: Per user per day.

Attribution: Matched to people by email.

How far back vendor history goes is not published uniformly for this connector.

  • searches
    count
  • chat_events
    count
  • completions_suggested
    count
  • completions_accepted
    count
  • chars_written
    count

What gets discovered

Discovery method file.

Config paths
  • ~/.config/amp/settings.json
  • ~/.config/amp/settings.jsonc
Resource kinds

mcp_client_configuration, mcp_server_deployment

Discovery method file.

Config paths
  • .amp/settings.json
  • .amp/settings.jsonc
Resource kinds

mcp_client_configuration, mcp_server_deployment

Freshness & sync

Indexing lag is not published for this connector. Review the declared collection method and cadence in the measurement section.

Permissions & data handling

The scopes above are the permissions this connector requests. They come from the catalog, not from a hand-written page.

This catalog entry does not declare extra semantic-search exclusions.

Verify it worked

The catalog does not declare a credential probe for this connector. Verify the connection path and source response before relying on a saved connection.

Known limitations

An instance access token from user settings is the wrong class if Telara asks for an analytics token.
Cody usage only appears after analytics is enabled for the instance.

In the product

Screens from a Telara test workspace with sample data. Your workspace shows your own systems, people and policies.

Integrations catalog filtered by a search for aws
Searching the integration catalog. Email addresses masked.
Connect page for an integration that signs in with OAuth
The connect page for a connector that signs in with OAuth. The sign-in was not started. Email addresses masked.
Connect form for an integration that uses an access key, with the credential scope and empty key fields
The connect form for a connector that authenticates with keys. Nothing was entered. Email addresses masked.
Integration detail for a connected integration with its connections and status
A connected integration with its connections, status and indexing state. Email addresses masked.