{
  "slug": "chatblade",
  "name": "Chatblade",
  "repo": "https://github.com/npiv/chatblade",
  "license": "GPL-3.0",
  "stack": "Python command-line application calling an OpenAI-compatible or Azure OpenAI client.",
  "fit": "Consider it for terminal text workflows when you understand the configured API endpoint and session retention.",
  "review": "Treat cached conversation files as data you must manage. Verify the endpoint and actual provider bill; a local CLI is not proof of offline inference.",
  "findings": [
    {
      "label": "Messages leave the CLI",
      "observation": "The client builder selects Azure OpenAI when its environment setting is present; otherwise it uses OpenAI with a configurable base URL. The request sends the message list to chat.completions.create.",
      "path": "chatblade/chat.py",
      "line": 111,
      "url": "https://github.com/npiv/chatblade/blob/30bbeb48d392b177e74b4df919a6b1b0d3500d8b/chatblade/chat.py#L111"
    },
    {
      "label": "Local conversation storage",
      "observation": "Session paths use YAML files in the cache directory. The cache writer serializes the messages into a temporary file and replaces the session file.",
      "path": "chatblade/storage.py",
      "line": 42,
      "url": "https://github.com/npiv/chatblade/blob/30bbeb48d392b177e74b4df919a6b1b0d3500d8b/chatblade/storage.py#L42"
    },
    {
      "label": "Cost estimate boundary",
      "observation": "The source includes a model-price table. Its presence does not establish current provider pricing or the cost of any run on this site.",
      "path": "chatblade/chat.py",
      "line": 30,
      "url": "https://github.com/npiv/chatblade/blob/30bbeb48d392b177e74b4df919a6b1b0d3500d8b/chatblade/chat.py#L30"
    }
  ],
  "manifest": "setup.py",
  "commit": "30bbeb48d392b177e74b4df919a6b1b0d3500d8b",
  "checkedAt": "2026-10-11",
  "dataBoundary": "The inspected request path sends messages to the configured API client. Session messages can also be stored locally as YAML; retention and endpoint configuration need review.",
  "costBoundary": "The source license does not include model usage, hosting, storage, or operational work. No new paid execution or total-cost measurement was performed for this review.",
  "rea": {
    "version": "6.4.0",
    "command": "import-reference-source . --format json",
    "schema": "HistoricalSourceGraph",
    "authority": "historical-reference",
    "inventoryState": "partial",
    "rootSha256": "b28845435cba30748cc687db9d454348c30f902e20c6ba16c9d5c63b15f47377",
    "entries": 25,
    "relationships": 0,
    "parseFailures": 0,
    "exclusions": 1,
    "limitations": [
      "Path identity is revalidated around operations; Node lacks portable descriptor-relative openat traversal, so a syscall-boundary pathname race remains."
    ],
    "rawGraphSha256": "1bf2accf2b68169b39f3f6fb83265b2f82c6e83a3ec175d4179fbb3e91be349d"
  },
  "files": [
    {
      "path": "LICENSE",
      "sha256": "db577a83cb12a0be806cd166a31fa86335768c7981424181028a1a1bfbac0c62",
      "url": "https://github.com/npiv/chatblade/blob/30bbeb48d392b177e74b4df919a6b1b0d3500d8b/LICENSE"
    },
    {
      "path": "setup.py",
      "sha256": "843ac26c38a41abae578250bc0f9419194b320a0f67327d941037a4268f6cfe7",
      "url": "https://github.com/npiv/chatblade/blob/30bbeb48d392b177e74b4df919a6b1b0d3500d8b/setup.py"
    },
    {
      "path": "chatblade/chat.py",
      "sha256": "0eae0cf9e2170dab42f62be5f33819c01ffedb778760c9f7259977004160a3c2",
      "url": "https://github.com/npiv/chatblade/blob/30bbeb48d392b177e74b4df919a6b1b0d3500d8b/chatblade/chat.py"
    },
    {
      "path": "chatblade/storage.py",
      "sha256": "0803ef1be75d66e7d796a33002d4b1fec976f89c983b9d839111f5967483e826",
      "url": "https://github.com/npiv/chatblade/blob/30bbeb48d392b177e74b4df919a6b1b0d3500d8b/chatblade/storage.py"
    }
  ]
}
