16강 · 비용 & 거버넌스Lesson 16 · Cost & Governance
Rule No.16 — 개인 도구가 팀 인프라가 되려면Rule No.16 — From personal tool to team infrastructure
강의 요약Summary
혼자 쓸 때는 몰랐던 문제들이 팀이 되는 순간 한꺼번에 터집니다. 팀원 다섯 명이 API 키 하나를 공유했더니 한 달 만에 예상을 훨씬 넘긴 청구서가 왔고, 고객 데이터가 프롬프트에 들어간 사실을 뒤늦게 발견했는데 로그가 없습니다. 비용·접근·감사 로그 — 이 세 가지는 혼자 쓸 때는 무시해도 되지만, 팀이 되는 순간 모두 필수 설계 항목이 됩니다. 오늘 강의는 이 세 가지를 어떻게 설계하는지를 순서대로 다룹니다.Problems invisible when you use Claude alone blow up all at once the moment it becomes a team tool. Five team members shared one API key; a month later, the invoice was far higher than expected, and they later discovered customer data had ended up in a prompt — with no logs to trace it. Cost, access, and audit logs: you can ignore these three alone, but the moment it becomes a team, all three become mandatory design items. This lecture covers how to design each of them in order.
비용을 설계하려면 먼저 구조를 알아야 합니다. Claude API 비용은 토큰 수에 따라 청구되며 2026-06 기준 Sonnet 4.6 입력이 $3/1M, 출력이 $15/1M입니다. 출력이 입력의 5배라는 점이 핵심 — 짧은 답이 나오게 설계하는 것만으로도 비용이 크게 달라집니다. 여기에 두 가지 최적화 레버가 있습니다. 프롬프트 캐싱은 반복 입력의 90%를 절감하고, 배치 API는 즉시성이 필요 없는 작업을 최대 50% 낮춥니다. 개인 사용엔 Pro($20/월)나 Max(from $100/월)의 정액 플랜이 적합하지만, 팀이 되는 순간 API 종량제로 전환해야 키·사용량·로그를 분리할 수 있습니다.To design for cost, you first need to understand the structure. Claude API is billed by token count: as of 2026-06, Sonnet 4.6 input is $3/1M and output is $15/1M. The key fact is that output costs five times input — designing for shorter responses alone makes a large difference. On top of that, two optimization levers exist: prompt caching cuts 90% from repeated inputs, and the Batch API reduces non-urgent tasks by up to 50%. For personal use, flat-rate plans like Pro ($20/mo) or Max (from $100/mo) are fine, but the moment it becomes a team, moving to the API pay-as-you-go model is necessary to separate keys, usage, and logs.
접근 제어의 원칙은 하나입니다 — 각 역할에 필요한 최소한의 권한만 줍니다. 하나의 키를 공유하면 사용량 추적도 안 되고, 키 유출 시 전체가 차단되며, 퇴사자 접근을 선택적으로 회수할 수 없습니다. 역할별로 키를 나누면(MD팀·매장 운영·외부 대행사·자동 리포트 봇) 사용량이 팀 단위로 분리되고, 문제가 생긴 키만 골라 비활성화할 수 있습니다. 마지막으로 감사 로그는 복잡하게 생각할 필요 없이 네 가지 필드만 기록하면 충분합니다 — timestamp·key_id·model·tokens_in/out. 이 넷만 있어도 사고가 났을 때 언제·누가·무엇을·얼마나를 모두 추적할 수 있습니다. 거버넌스는 사고가 난 다음이 아니라 도구를 도입할 때 함께 설계하는 것입니다.The principle of access control is one thing: give each role only the minimum permissions it needs. Sharing one key means no usage tracking, a full lockout on key leak, and no selective revocation when someone leaves. Split keys by role — MD team, store ops, external agency, auto-report bot — and usage separates by team, and only the problem key needs to be deactivated. Finally, audit logs don't have to be complex: four fields are enough — timestamp, key_id, model, tokens_in/out. With just these four, when an incident happens you can trace when, who, what, and how much. Governance is not something you do after an incident; it is something you design when you first introduce the tool.
핵심 개념 5가지Five key concepts
-
01
팀이 커지면 터지는 세 가지 — 비용·접근·감사Three things that break when the team grows — cost, access, audit
API 키 공유는 팀 도입 초기에 가장 빠른 선택처럼 보이지만, 한 달이 지나면 세 가지 위기가 동시에 찾아옵니다. 첫째, 비용 — 누가 얼마나 썼는지 알 수 없어 청구서가 예측 불가능해집니다. 둘째, 접근 — 키가 유출되면 팀 전체 접근이 한꺼번에 끊기고, 퇴사자 키를 선택적으로 회수할 수 없습니다. 셋째, 감사 — 고객 데이터가 프롬프트에 들어갔어도 언제 어떤 요청인지 추적할 로그가 없습니다. 이 세 가지는 개인이 쓸 때는 무시해도 되지만, 팀이 되는 순간 전부 필수 설계 항목이 됩니다.Sharing an API key looks like the fastest option at the start of a team rollout, but a month later three crises arrive at once. First, cost — you can't tell who used how much, making invoices unpredictable. Second, access — a key leak cuts off the entire team at once, and you can't selectively revoke a leaver's access. Third, audit — if customer data ends up in a prompt, there are no logs to trace when or what the request was. These three can be ignored individually, but the moment it becomes a team, all of them become mandatory design items.
-
02
비용 공식 — 토큰 × 단가, 출력은 입력의 5배The cost formula — tokens × unit price, output costs 5× input
Claude API 비용을 이해하는 핵심 공식은 단순합니다. 월 비용 = [평균 입력 토큰 × $3/1M + 평균 출력 토큰 × $15/1M] × [일 요청 수 × 30일]. 2026-06 기준 Sonnet 4.6 수치입니다. 여기서 가장 중요한 숫자는 출력이 입력의 5배라는 점 — 짧고 구체적인 답변이 나오도록 설계하는 것만으로도 비용을 크게 줄일 수 있습니다. 예산을 짜기 전에 이 공식으로 반드시 먼저 추정해 두고, Anthropic 콘솔에서 spending limit를 보수적으로 설정한 뒤 한 주 관찰하며 조정하는 방식이 안전합니다. 수치는 공식 문서(anthropic.com/pricing) 기준이며 변경될 수 있습니다.The core formula for understanding Claude API costs is simple. Monthly cost = [avg input tokens × $3/1M + avg output tokens × $15/1M] × [daily requests × 30]. These are 2026-06 figures for Sonnet 4.6. The most important number here is that output costs five times input — designing for short, specific responses can cut costs significantly on its own. Always estimate with this formula before setting a budget, then set the spending limit conservatively in the Anthropic console and observe for a week before adjusting upward. Figures are per official docs (anthropic.com/pricing) and subject to change.
-
03
절감 3종 — 캐싱·배치·모델 라우팅, 순서대로Three cost levers — caching, batching, model routing, in order
비용을 줄이는 레버는 세 가지이며 적용 순서가 있습니다. 첫째 모델 선택 — 단가 자체가 달라지므로 가장 효과가 큽니다. 단순 분류나 정리 작업에 항상 Sonnet을 쓸 필요는 없습니다. 둘째 프롬프트 캐싱 — 반복 사용하는 시스템 프롬프트나 문서를 캐싱하면 처음 저장 시 +25%가 붙지만 이후 재사용 시 −90%가 적용됩니다. 팀 워크플로우에서 가장 지속적인 절감 효과를 냅니다. 셋째 배치 처리 — 보고서 생성·데이터 요약처럼 즉시성이 필요 없는 작업은 배치 API로 묶어 최대 −50%까지 절감할 수 있습니다. 단 즉시 응답을 포기해야 하는 조건이 있습니다. 순서를 지키면 복잡성 없이 단계적으로 비용을 줄일 수 있습니다.There are three cost levers, and they should be applied in order. First, model selection — it changes the unit price itself, so the impact is largest. Simple classification or organization tasks don't need Sonnet every time. Second, prompt caching — caching repeated system prompts or documents adds +25% on the first store but applies −90% on subsequent reuse. This gives the most sustained savings in team workflows. Third, batch processing — tasks like report generation or data summarization that don't require immediate responses can be grouped via the Batch API for up to −50% savings, though this requires giving up immediacy. Follow the order and you can reduce costs step by step without added complexity.
-
04
접근 제어 — 역할별 키와 최소 권한 원칙Access control — per-role keys and the least-privilege principle
팀 거버넌스의 출발점은 API 키를 역할별로 분리 발급하는 것입니다. 리테일 조직을 예로 들면 MD팀은 상품 분석용 팀 키(전체 접근·사용량 추적), 매장 운영은 조회 전용 키(읽기만, 출력 제한), 외부 마케팅 대행사는 협업 기간 한정 임시 키(만료일 설정), 자동 리포트 봇은 특정 작업 전용 키(최소 권한)를 씁니다. 이렇게 나누면 사용량을 팀 단위로 분리 추적하고, 문제가 생긴 키만 골라 비활성화하고, 협업이 끝나도 키를 잊고 방치할 일이 없습니다. 키 분리는 번거롭게 느껴지지만, 사고가 났을 때 해당 키 하나만 비활성화하면 된다는 게 얼마나 큰 이점인지 그때 실감하게 됩니다.The starting point of team governance is issuing separate API keys per role. For a retail organization: the MD team gets a team key for product analysis (full access, usage tracking), store ops gets a read-only query key (read only, output limit), external marketing agencies get a time-limited temporary key (expiry date set), and the auto-report bot gets a task-specific key (minimum privilege). With this split, usage is tracked separately per team, only the problem key needs to be deactivated on an incident, and no key gets forgotten and left active after a collaboration ends. Key separation feels tedious, but when an incident happens you'll immediately understand the value of deactivating just one key.
-
05
감사 로그 4개 필드와 비용 대시보드Four audit log fields and the cost dashboard
감사 로그는 복잡하게 만들 필요가 없습니다. 네 개 필드만 기록해도 충분합니다 — timestamp(요청 시각, 사고 시점 추적), key_id(어느 키·역할, 접근 주체 식별), model(어떤 모델, 비용 분석·정책 준수), tokens_in/out(토큰 수, 비용 계산·이상 감지). 주의할 점은 프롬프트 내용을 로그에 포함하면 고객 데이터가 남을 수 있으므로, 무엇을 기록하고 뺄지를 정책으로 미리 정해야 합니다. 로그를 쌓았다면 대시보드로 보이게 해야 합니다 — 역할별 사용량(책임 배분), 날짜별 추이(이상 감지), 모델별 비중(최적화 여지), 급증 알림(사고 사전 차단). Anthropic 콘솔이 일부 지표를 제공하고, 세밀한 분석은 감사 로그 기반으로 직접 구현합니다.Audit logs don't have to be complex. Four fields are sufficient — timestamp (request time, for tracing incidents), key_id (which key/role, for identifying the access subject), model (which model, for cost analysis and policy compliance), tokens_in/out (token counts, for cost calculation and anomaly detection). One caution: including prompt content in logs may leave customer data, so decide in advance as a policy what to record and what to exclude. Once logs are collected, they need to be made visible through a dashboard — usage by role (accountability), trend by date (anomaly detection), model share (optimization headroom), and spike alerts (pre-empting incidents). The Anthropic console provides some metrics; finer analysis is built on top of your own audit logs.
실습 예제 — 우리 팀 월 비용 추정 워크시트Exercise — Monthly cost estimate worksheet for your team
비용 숫자를 한 장으로 정리하는 연습입니다. 계산기나 스프레드시트만 있으면 됩니다. 예산 한 장이 나오면 성공 — 이게 도입 품의서의 근거가 됩니다. 아래 3단계를 순서대로 따라가세요. 괄호 안 숫자는 가정(assumption)이며 우리 팀 실제 수치로 교체해야 합니다.Practice putting cost numbers into a single sheet. All you need is a calculator or a spreadsheet. Success means getting one page of budget — that becomes the justification for your procurement proposal. Follow the three steps below in order. Numbers in parentheses are assumptions and must be replaced with your team's actual figures.
- 가정 잡기. 하루 요청 수, 평균 입력 토큰, 평균 출력 토큰을 추정합니다. 예: 팀원 10명이 하루 각 10회 요청, 요청당 입력 2,000토큰·출력 500토큰(가정). 모르면 일주일 동안 개인 Pro 계정으로 먼저 써 보고 Anthropic 콘솔 사용량 화면에서 평균을 재세요.Set the assumptions. Estimate daily request count, average input tokens, and average output tokens. Example: 10 team members × 10 requests each per day, 2,000 input tokens and 500 output tokens per request (assumption). If you don't know, use an individual Pro account for a week first and read the average from the usage screen in the Anthropic console.
- 공식으로 월 비용 계산. 위 가정을 아래 공식에 대입합니다.
월 비용 = (입력토큰 × $3/1M + 출력토큰 × $15/1M) × 일요청수 × 30일
예: (2,000×$3/1,000,000 + 500×$15/1,000,000) × 100 × 30
= ($0.006 + $0.0075) × 3,000 = $0.0135 × 3,000 ≈ 월 $40.5 (가정)
이 숫자가 도입 품의의 기준 비용입니다.Calculate monthly cost with the formula. Plug the assumptions above into the formula below.
Monthly cost = (input_tokens × $3/1M + output_tokens × $15/1M) × daily_requests × 30
Example: (2,000×$3/1,000,000 + 500×$15/1,000,000) × 100 × 30
= ($0.006 + $0.0075) × 3,000 = $0.0135 × 3,000 ≈ $40.5/mo (assumption)
This number becomes the baseline cost for your procurement proposal. - 캐싱·배치 적용 시 절감액 비교. 시스템 프롬프트(예: 1,000토큰, 가정)를 캐싱한다고 가정합니다. 첫 번째 요청 캐시 쓰기 +25% → 이후 요청마다 반복 입력 −90%. 배치 처리를 절반의 요청에 적용하면 최대 −50%. 두 가지를 적용한 뒤 위 공식으로 다시 계산해 '절감 전·후' 두 열을 만듭니다. 이 표가 품의서에 넣을 비용 요약입니다.Compare savings with caching and batching. Assume you cache the system prompt (e.g., 1,000 tokens, assumption). First request: cache write +25%. Subsequent requests: repeated input −90%. Apply batching to half of requests: up to −50%. Recalculate with the formula after applying both, and create two columns — before and after savings. This table becomes the cost summary you put in the procurement proposal.
우리 팀의 클로드 사용 패턴을 알려줄게. 월 예상 비용을 추정하고, 캐싱과 배치 처리를 적용했을 때 절감액까지 표로 계산해줘. 마지막에 도입 품의서에 넣을 비용 요약 3줄을 만들어줘.I'll tell you our team's Claude usage pattern. Estimate the expected monthly cost, calculate the savings in a table when prompt caching and batch processing are applied. At the end, write a 3-line cost summary I can put in a procurement proposal.
[하루 요청 수, 평균 입력/출력 분량, 쓰는 모델][daily request count, average input/output size, model being used]
계산 기준: 2026-06 기준 Claude Sonnet 4.6 — 입력 $3/1M, 출력 $15/1M, 캐시 쓰기 +25%, 캐시 읽기 −90%, 배치 최대 −50%. 가정은 명확히 표시해줘.Calculation basis: Claude Sonnet 4.6 as of 2026-06 — input $3/1M, output $15/1M, cache write +25%, cache read −90%, batch up to −50%. Clearly label all assumptions.