Çok Önemli Ayrım: Standart Chat Anahtarı (sk-proj-) vs. Fatura Okuma Anahtarı (sk-admin-)
OpenAI ve Anthropic güvenlik tasarımı gereği normal sohbet/kod üretme anahtarlarının (sk-proj-...) şirket faturasını okumasına izin vermez. Günlük dolar harcamanızı ve token limitinizi masaüstünde görmek için yalnızca Usage/Billing Read iznine sahip bir Admin Key kullanılır:
OpenAI (sk-admin-...) & Anthropic Claude (sk-ant-admin-...)
platform.openai.com/settings/organization/admin-keys ekranından yalnızca Usage / Billing Read yetkili bir sk-admin-... anahtarı oluşturun. Claude için console.anthropic.com Organization Admin Keys, ya da tek anahtarla tüm modelleri kullanıyorsanız OpenRouter (sk-or-v1-... — kredileri doğrudan döner!) kullanabilirsiniz.
PostHog (phx_...) & Plausible Analytics
PostHog → Personal API Keys menüsünden query:read iznine sahip phx_... jetonunuzu ve sayısal Project ID’nizi alın. Plausible için Settings → API Keys altından Stats API anahtarınızı ve domain adınızı girin.
Sentry Crash Monitörü & GitHub Actions CI/CD
Sentry’de event:read ve project:read yetkili Auth Token (sntryu_...) + org/project bilginizi; GitHub’da ise yalnızca Actions: Read-only iznine sahip Fine-Grained Personal Access Token (github_pat_...) ve kullanici/repo adınızı yapıştırın.
OpenAI Billing : sk-admin-xxxxxxxxxxxxxxxxxxxxxxxx (Usage Read-Only)
Claude Admin : sk-ant-admin01-xxxxxxxxxxxxxxxxxx
OpenRouter : sk-or-v1-xxxxxxxxxxxxxxxxxxxxxxxx (Anlık bakiye & kullanım)
PostHog : phx_xxxxxxxxxxxxxxxxxxxxxxxxxxxxx (+ Project ID, ör. 48210)
Sentry : sntryu_xxxxxxxxxxxxxxxxxxxxxxxxxx (+ org-slug/project-slug)
GitHub Actions : github_pat_xxxxxxxxxxxxxxxxxxxxxx (+ owner/repo)
Standard Inference Key (sk-proj-) vs. Organization Billing Key (sk-admin-)
By design, OpenAI’s standard project keys (sk-proj-...) can generate completions but return 403 on Organization Usage/Costs endpoints. To monitor real-time daily AI spend without risking token generation:
- OpenAI: Visit
platform.openai.com/settings/organization/admin-keysand create a read-onlysk-admin-...key scoped strictly to Usage/Billing Read. - Anthropic Claude & OpenRouter: Use an Anthropic Admin key (
sk-ant-admin-...) or an OpenRouter key (sk-or-v1-..., which natively returns live credit usage). - PostHog & Plausible: Create a PostHog Personal API Key (
phx_...withquery:read+ Project ID) or a Plausible Stats API key. - Sentry & GitHub Actions: Use a Sentry Auth Token (
sntryu_...withproject:read,event:read) and a GitHub Fine-Grained PAT (Actions: Read-only).
OpenAI (sk-admin-), Claude, PostHog (phx_), Sentry & GitHub Actions
- OpenAI & Claude : Créez une clé
sk-admin-...(lecture seule Usage/Billing) surplatform.openai.com/settings/organization/admin-keysplutôt qu’une clé de chat classique. - PostHog & Plausible : Utilisez une Personal API Key PostHog (
phx_...) avecquery:read+ Project ID. - Sentry & GitHub : Jetons lecture seule
sntryu_...etgithub_pat_...(Actions : Read-only).
OpenAI (sk-admin-), Claude, PostHog (phx_), Sentry y GitHub Actions
- OpenAI y Claude: Genere una clave
sk-admin-...con permiso de solo lectura en facturación/uso enplatform.openai.com/settings/organization/admin-keys. - PostHog y Plausible: Personal API Key (
phx_...conquery:read+ Project ID). - Sentry y GitHub: Tokens de solo lectura
sntryu_...ygithub_pat_....