OpenProgram Docs

Token tracking

Each assistant message carries one Usage record.

FieldMeaning
inputNon-cached input. Excludes cached tokens, as Anthropic does; inclusive vendors are converted by subtraction.
outputOutput tokens
cache_readServed from the prompt cache
cache_writeWritten to the prompt cache (explicit caching only)
total_tokensVendor-reported total
costUSD, from the enabled model's per-million prices

What each protocol reports

Taken from the vendor's final event or last chunk.

ProtocolProvidersRaw fieldsCache
Anthropic Messagesanthropic, gateways such as minimax, kimi_coding, vercel_ai_gatewayinput_tokens output_tokens cache_read_input_tokens cache_creation_input_tokensread, write
OpenAI Responsesopenai openai_codex azure_openai_responses github_copilotinput_tokens (cached subtracted) output_tokens input_tokens_details.cached_tokens total_tokensread
OpenAI Completionsdeepseek groq mistral openrouter, other compatible endpointsprompt_tokens completion_tokens (completion_tokens_details reasoning split out) total_tokensnone
Google Generative AIgoogleprompt_token_count candidates_token_count total_token_countnone
Cloud Code Assistgemini_subscription google_gemini_clipromptTokenCount candidatesTokenCount thoughtsTokenCount cachedContentTokenCount totalTokenCountread
Bedrock Converse Streamamazon_bedrockinputTokens outputTokens cacheReadInputTokens cacheWriteInputTokens totalTokensread, write

Cost is computed right after extraction. On OpenAI Responses the returned service_tier adjusts it, so Fast requests cost the priority rate.

Where it shows

PlaceShows
Each messageIts own usage and cost, saved with the session
Chat badgeLatest call only, such as 11.2k in · 450 out; that input count is what the context occupies. Tooltip: base, cache write, cache hit for Claude-protocol; base, cached for Codex; a percent cached otherwise. 1.2k above a thousand, 1.0m above a million.
Context barFill percent, from the context_stats WebSocket event after each turn
Function cardPer execution, from the function's own runtime, independent of the chat numbers

Context panel

Click the ring. Before a new chat's first message it shows what that message would carry, against the selected model's window.

PartLists
System promptBase prompt, environment, AGENTS.md, skills index and so on
ToolsLoaded, on demand, MCP
MemoryEach layer's MEMORY.md
ConversationBy kind, with its largest messages

Click a part or its bar segment to open it, a row to read the text sent, a message to jump to it. Compact conversation compacts now; refused during a turn, and no turn starts until it ends.

Last updated · 2026-11-25