Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

feat(billing): add PostHog Code usage filter (#71118)

Pawel Cebulaed53f2743515
diff --git a/ee/hogai/tools/read_billing_tool/tool.py b/ee/hogai/tools/read_billing_tool/tool.py
index 95960497cf9f..ace0762f58db 100644
--- a/ee/hogai/tools/read_billing_tool/tool.py
+++ b/ee/hogai/tools/read_billing_tool/tool.py
@@ -35,6 +35,7 @@ USAGE_TYPES = [
{"label": "Rows exported", "value": "rows_exported_in_period"},
{"label": "PostHog AI", "value": "ai_credits_used_in_period"},
{"label": "Inbox credits", "value": "signals_credits_used_in_period"},
+ {"label": "PostHog Code credits", "value": "posthog_code_credits_used_in_period"},
{"label": "Replay vision credits", "value": "replay_vision_credits_used_in_period"},
{"label": "Workflow emails", "value": "workflow_emails_sent_in_period"},
{"label": "Workflow push notifications", "value": "workflow_push_sent_in_period"},
diff --git a/frontend/src/scenes/billing/constants.ts b/frontend/src/scenes/billing/constants.ts
index 3d83e4d3809c..2e15913f62d5 100644
--- a/frontend/src/scenes/billing/constants.ts
+++ b/frontend/src/scenes/billing/constants.ts
@@ -17,6 +17,7 @@ export const USAGE_TYPES = [
{ label: 'Rows exported', value: 'rows_exported_in_period' },
{ label: 'PostHog AI', value: 'ai_credits_used_in_period' },
{ label: 'Inbox credits', value: 'signals_credits_used_in_period' },
+ { label: 'PostHog Code credits', value: 'posthog_code_credits_used_in_period' },
{ label: 'Replay vision credits', value: 'replay_vision_credits_used_in_period' },
{ label: 'Workflow emails', value: 'workflow_emails_sent_in_period' },
{ label: 'Workflow push notifications', value: 'workflow_push_sent_in_period' },