Claude Code: Claude apps gateway admin API adds a cost report

The Claude apps gateway admin API has a cost report for reading past spend over a date range in total, per developer, per day or per IdP group.

Claude Code
Event type
Feature
Version
v2.1.317
Published by vendor
Compiled here

What changed

5 points

  1. The Claude apps gateway admin API gained a cost report for reading past spend over a date range in total, per developer, per day or per IdP group.

    Official wording · c1

    Added a cost report to the Claude apps gateway admin API, `GET /v1/organizations/analytics/cost`, for reading past spend over a date range in total, per developer, per day or per IdP group

    Official wording · c1
  2. Claude apps gateways with admin: set now keep a daily record of each developer's IdP groups for admin.identity_retention_days, and the cost report groups by it.

    Official wording · c2

    Added a daily record of each developer's IdP groups on Claude apps gateways with `admin:` set, kept for `admin.identity_retention_days`, which the cost report groups by

    Official wording · c2
  3. Agent SDK hook callbacks gained onFailure: "block", so a callback that fails blocks the action instead of letting it run.

    Official wording · c3

    Added `onFailure: "block"` for Agent SDK hook callbacks, so a callback that fails blocks the action instead of letting it run

    Official wording · c3
  4. The Read tool's "file unchanged since your last Read" stub was removed, so reading an unchanged file again returns its content.

    Official wording · c5

    Removed the Read tool's "file unchanged since your last Read" stub: reading an unchanged file again returns its content

    Official wording · c5
  5. claude -p no longer exits 0 when a full disk or quota loses its transcript or ~/.claude.json writes; it now prints an error and, in text and json output, exits 1, but full NFS exports may be missed.

    Official wording · c6

    Fixed `claude -p` exiting 0 when a full disk or quota lost its transcript or ~/.claude.json writes; it now prints an error and, in text and json output, exits 1. Full NFS exports may be missed

    Official wording · c6

Change details

Fields in this table are taken verbatim from the official text.

IDSubjectActionObjectScopeValues
c1Claude apps gateway admin APIaddedcost report for reading past spend over a date range in total, per developer, per day or per IdP groupClaude apps gateway admin API
c2Claude apps gateways with admin: setaddeddaily record of each developer's IdP groups, kept for admin.identity_retention_days, which the cost report groups byClaude apps gateways with `admin:` set
c3Agent SDK hook callbacksaddedonFailure: "block" so a failing callback blocks the action instead of letting it runAgent SDK
c5Read toolremoved"file unchanged since your last Read" stub, so reading an unchanged file again returns its content
c6claude -pfixed exiting 0 when a full disk or quota lost its transcript or ~/.claude.json writesnow prints an error and, in text and json output, exits 1; full NFS exports may be missedtext and json outputexactly 1

Version timeline

Published updates for this tool on this site, newest official date first.

  1. CurrentClaude apps gateway admin API adds a cost report
  2. Added sandbox.allowNestedUserNamespaces for sandboxed Linux commands
  3. Cache write token fields added to OpenTelemetry api_request event

About this tool

Claude Code

Claude Code is Anthropic's coding agent for reading codebase context, editing files, running commands and assisting development work.

CategoriesAI Coding

View Claude Code details

Related guides

Source and notes

Official source · github.com/anthropics/claude-code/releases/tag/v2.1.317

About this AI summary

This entry was compiled by AI from official sources and automatically checked. Found a mistake? Please send feedback.