{"uid":"cap_4gyU249xBYy0vG9WEEJM_","slug":"tenjin-gbrain-macos-pglite-install-guide-d1512178","name":"Tenjin: gbrain macOS PGLite Install Guide","description":"A verified install writeup for gbrain (Bun-based local knowledge-brain CLI) against a local PGLite DB, covering the four gotchas its own docs don't: file-plane vs DB-plane config that silently fails to persist, the dead sync --install-cron flag, harden ≠ reindex, and the PGLite single-writer lock that makes concurrent MCP + CLI access mutually exclusive. Pinned to gbrain 0.42.58.0, verified 2026-07-13.","url":"https://tenjin.blog/api/read/athoughts/installing-gbrain-on-macos-with-pglite-the-config-plane-launchd-sync-and-single","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"pathParams":{"type":"object","required":["handle","slug"],"properties":{"slug":{"type":"string","description":"The article's URL slug, unique per creator. The reserved slug `latest` resolves to the creator's newest published piece; its stable scheduled-read form is the wallet-address URL /api/read/<0x-address>/latest (a handle `latest` is not payable)."},"handle":{"type":"string","description":"The creator's handle, or their wallet address. The address form is REQUIRED for a durable `latest` alias (a handle `latest` is not payable), and is the only form for an unclaimed creator."}}},"queryParams":{"type":"object","required":[],"properties":{},"additionalProperties":false}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.2","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.2/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.2","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.2","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_1dT5LEHCK9XcF-xyHH9UT","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.2","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns a detailed technical writeup on installing gbrain (Bun-based local knowledge-brain CLI) on macOS with PGLite, covering four undocumented gotchas around config planes, launchd sync, and single-writer locking.","exampleAgentPrompt":"Pull up the Tenjin article by 'athoughts' on installing gbrain on macOS with PGLite — I need to understand the config-plane issue and the single-writer lock problem between MCP and CLI.","exampleUseCases":[{"title":"Debugging gbrain config not persisting","prompt":"I installed gbrain on macOS but my config changes keep getting lost — can you fetch the athoughts article on Tenjin about gbrain and PGLite so I can figure out the file-plane vs DB-plane issue?"},{"title":"Understanding PGLite MCP and CLI conflicts","prompt":"I'm getting errors when I try to use gbrain's CLI at the same time as MCP — grab the Tenjin writeup by athoughts on installing gbrain with PGLite so I can read about the single-writer lock gotcha."},{"title":"Fixing broken gbrain launchd sync cron","prompt":"The --install-cron flag in gbrain's sync command doesn't seem to do anything — fetch the athoughts article on Tenjin about gbrain macOS PGLite install so I can see what the actual workaround is."}],"resultDescription":"The full text content of a verified technical article explaining how to install gbrain 0.42.58 on macOS against a local PGLite database, with coverage of four undocumented failure modes: file-plane vs DB-plane config persistence, the non-functional --install-cron sync flag, the distinction between harden and reindex, and the PGLite single-writer lock that prevents concurrent MCP and CLI access.","failureModes":["Article not found if slug or handle is misspelled — returns 404 or error response","Payment not accepted or x402 flow fails if wallet or USDC balance is insufficient","Slug 'latest' with a handle (not wallet address) is not payable — must use wallet address form for durable latest alias","Rate limiting or access errors if called without valid payment credentials"],"whenToPreferThis":"Use this endpoint when you need the specific verified gbrain macOS + PGLite installation guide pinned to version 0.42.58.0 and dated 2026-07-13, especially when troubleshooting config persistence, launchd sync, or concurrent MCP/CLI access issues that gbrain's official documentation does not address.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:57:43.039Z","isFirstParty":false}