Admin only. Open Connect › Sources. Billing is on the Cloud tab and Vertex AI on the AI / LLM providers tab.
Billing export
TensorCost reads your BigQuery billing export, and has no other way to read project spend, so turn that on first.1
Enable the export
In Google Cloud billing, turn on the BigQuery export with detailed usage cost. Note the project id and dataset.
2
Choose how TensorCost authenticates
Either a service-account JSON key, or Workload Identity Federation (WIF). Many organisations created since 2024 block key creation with the
iam.disableServiceAccountKeyCreation policy; use WIF there. With WIF the console opens Cloud Shell and shows one bootstrap command to run, and you paste back the pool, provider and service-account email. No key is ever stored.3
Connect
Enter the project ID and BigQuery dataset, add the credential, and connect. Use Check now to verify access.
roles/bigquery.dataViewer and roles/bigquery.jobUser, plus roles/iam.workloadIdentityUser for WIF.
Vertex AI
Add Vertex as an AI provider with project ID and region, plus a service-account key or WIF. Grantroles/monitoring.viewer and roles/aiplatform.viewer. The BigQuery billing export is optional here.