whatisgithub

What is gbrain-bridgebrain?

uncmatteth/gbrain-bridgebrain — explained in plain English

Analysis updated 2026-05-18

13JavaScriptAudience · developerComplexity · 3/5Setup · moderate

In one sentence

A local service that gives GBrain text embeddings by piggybacking on your existing Codex CLI ChatGPT login, no GPU or API key needed.

Mindmap

mindmap
  root((BridgeBrain))
    What it does
      Local embedding service
      Uses Codex CLI login
      No GPU needed
    Tech stack
      JavaScript
      Node.js
    Use cases
      Power GBrain search
      Cache embeddings
      Auto-start service
    Audience
      Developers

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Give GBrain text embeddings using your existing Codex CLI login, no GPU or API key needed.

USE CASE 2

Run a local embedding service that GBrain talks to as if it were OpenAI's API.

USE CASE 3

Install a systemd, launchd, or Windows service so the embedding service starts automatically.

What is it built with?

JavaScriptNode.js

How does it compare?

uncmatteth/gbrain-bridgebrain09catho/axonabdulrdeveloper/react--tic-tac-toe
Stars131313
LanguageJavaScriptJavaScriptJavaScript
Setup difficultymoderatemoderateeasy
Complexity3/54/51/5
Audiencedeveloperresearcherdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 30min

Requires an already-logged-in Codex CLI session, the installer stops if Codex is not authenticated.

So what is it?

BridgeBrain is an installer and local service that connects GBrain (an AI agent memory system) to text embeddings without requiring a GPU, Ollama, or a separate API key for an embedding provider. Instead, it piggybacks on the user's existing Codex CLI login to ChatGPT, using that already-authenticated session as the source of the embedding capability. Embeddings are numerical representations of text that let AI systems search and compare content by meaning rather than exact word matching. GBrain needs them to store and retrieve useful context for AI agents. The service runs entirely on your local machine, listening on a loopback address (127.0.0.1) that nothing outside your computer can reach. It presents an API that looks like OpenAI's embedding API, which means GBrain can talk to it without knowing it is actually routing through your ChatGPT login. Text passed through the service is converted to a 1536-dimensional vector and cached by a hash of the source text, so repeated lookups do not re-process the same content. Raw source text is not stored in the cache, only the derived vectors. The default installation puts GBrain in "side brain" mode: it gains the embedding endpoint, can search and store context better, but does not automatically scan your whole machine or rewire other AI tools like Cursor or OpenClaw. Upgrading to "main brain" mode, where GBrain is hooked into those other agents and given access to specific folders on your computer, is a separate and explicit step that requires setting environment variables and specifying which directories to sync. The README is written with security boundaries spelled out clearly. The installer stops if Codex is not already logged in rather than attempting to handle credentials itself. It never copies, prints, or persists raw authentication data. A dry-run mode lets you see exactly what the installer would do before it writes any files or modifies anything. The repo works on Linux, macOS, and Windows and includes service installers for systemd, launchd, and Windows Scheduled Tasks so the embedding service can start automatically at login. It also ships test fixtures and an evaluation harness for measuring how accurately the embeddings support search and recall tasks.

Copy-paste prompts

Prompt 1
Set up BridgeBrain to give GBrain embeddings through my existing Codex CLI login.
Prompt 2
Explain the difference between BridgeBrain's side brain and main brain modes.
Prompt 3
Run BridgeBrain in dry-run mode and show me what it would install.

Frequently asked questions

What is gbrain-bridgebrain?

A local service that gives GBrain text embeddings by piggybacking on your existing Codex CLI ChatGPT login, no GPU or API key needed.

What language is gbrain-bridgebrain written in?

Mainly JavaScript. The stack also includes JavaScript, Node.js.

How hard is gbrain-bridgebrain to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is gbrain-bridgebrain for?

Mainly developer.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.