CoAgent8
    Preparing search index...

    Interface TokenUsage

    Tokens one turn used, as the backend reported them (AX-001a).

    An absent field is unknown, never zero. inputTokens counts every input token the model processed, cached ones included; cachedInputTokens and cacheWriteInputTokens are the parts read from and written to the prompt cache, and cacheWriteLongInputTokens the part of the writes kept for an hour instead of minutes. outputTokens counts every output token, reasoning included; reasoningTokens is the reasoning part. These are counts, not billing: a subscription CLI may charge nothing per token, and a list-price equivalent is a separate calculation.

    interface TokenUsage {
        cachedInputTokens?: number;
        cacheWriteInputTokens?: number;
        cacheWriteLongInputTokens?: number;
        inputTokens?: number;
        outputTokens?: number;
        reasoningTokens?: number;
        source: "provider";
        totalTokens?: number;
    }
    Index
    cachedInputTokens?: number
    cacheWriteInputTokens?: number
    cacheWriteLongInputTokens?: number
    inputTokens?: number
    outputTokens?: number
    reasoningTokens?: number
    source: "provider"
    totalTokens?: number