Aider · JSON Structure

Aider Cli Token Usage Structure

TokenUsage schema from Aider CLI

Type: object Properties: 4
AIAI Pair ProgrammingDeveloper ToolsCLICommand LineCoding AssistantCode GenerationOpen SourcePythonApache 2.0LLMGitBYO LLMTerminalPolyglotTree SitterRepository MapPair Programming

TokenUsage is a JSON Structure definition published by Aider, describing 4 properties. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

chat_history_tokens repo_map_tokens in_chat_files_tokens budget_remaining_tokens

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/aider/refs/heads/main/json-structure/aider-cli-token-usage-structure.json",
  "name": "TokenUsage",
  "description": "TokenUsage schema from Aider CLI",
  "type": "object",
  "properties": {
    "chat_history_tokens": {
      "type": "int32",
      "example": 18412
    },
    "repo_map_tokens": {
      "type": "int32",
      "example": 4096
    },
    "in_chat_files_tokens": {
      "type": "int32",
      "example": 6234
    },
    "budget_remaining_tokens": {
      "type": "int32",
      "example": 171258
    }
  }
}