You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,8 +23,9 @@ Never built an Open Brain? Start here:
23
23
1.**[Quick Start Guide](docs/QUICKSTART.md)** — Already set up? Get your first 10 wins in 5 minutes.
24
24
2.**[Setup Guide](docs/01-getting-started.md)** — Build the full system (database, AI gateway, Slack capture, MCP server) in about 45 minutes. No coding experience needed.
25
25
3.**[AI-Assisted Setup](docs/04-ai-assisted-setup.md)** — Prefer building with Cursor, Claude Code, or another AI coding tool? Point it at this repo and go. Same system, different workflow.
26
-
4.**[Companion Prompts](docs/02-companion-prompts.md)** — Five prompts that help you migrate your memories, discover use cases, and build the capture habit.
27
-
5.**Then pick Extension 1** and start building.
26
+
4.**[CLI-Direct Approach](docs/CLI_DIRECT_APPROACH.md)** — Use Claude Code, Codex, or Gemini CLI? Skip MCP entirely and use the lightweight [`ob` CLI tool](resources/ob-cli/) for direct access with just `curl` and `jq`.
27
+
5.**[Companion Prompts](docs/02-companion-prompts.md)** — Five prompts that help you migrate your memories, discover use cases, and build the capture habit.
28
+
6.**Then pick Extension 1** and start building.
28
29
29
30
**If you hit a wall:** We built a [FAQ](docs/03-faq.md) that covers the most common questions and gotchas. And if you need real-time help, we created dedicated AI assistants that know this system inside and out: a [Claude Skill](https://www.notion.so/product-templates/Open-Brain-Companion-Claude-Skill-31a5a2ccb526802797caeb37df3ba3cb?source=copy_link), a [ChatGPT Custom GPT](https://chatgpt.com/g/g-69a892b6a7708191b00e48ff655d5597-nate-jones-open-brain-assistant), and a [Gemini GEM](https://gemini.google.com/gem/1fDsAENjhdku-3RufY7ystbS1Md8MtDCg?usp=sharing). Use whichever one matches the AI tool you already use.
30
31
@@ -42,6 +43,7 @@ Never built an Open Brain? Start here:
42
43
|[Companion Prompts](docs/02-companion-prompts.md)| Users | Memory migration, use case discovery, weekly review ritual |
43
44
|[FAQ](docs/03-faq.md)| Everyone | Common issues, architecture questions, community tips |
44
45
|[AI-Assisted Setup](docs/04-ai-assisted-setup.md)| Everyone | Build with Cursor, Claude Code, or other AI coding tools |
46
+
|[CLI-Direct Approach](docs/CLI_DIRECT_APPROACH.md)| Developers | Use Open Brain from terminal AI tools without MCP — includes the `ob` CLI |
A database that stores your thoughts with vector embeddings, plus an MCP server that lets any AI assistant search and write to your brain. No Slack required — capture happens from whatever AI tool you're already using (Claude Desktop, ChatGPT, Claude Code, Cursor).
12
12
13
+
> **Using a terminal-based AI tool (Claude Code, Codex, Gemini CLI)?** You can skip MCP entirely and use the lightweight `ob` CLI instead. See the [CLI-Direct Approach](CLI_DIRECT_APPROACH.md) guide and the [`ob` CLI tool](../resources/ob-cli/). You still need Steps 1–4 below (database + OpenRouter), but you can skip Steps 5–7 (Edge Function and MCP).
14
+
13
15
## What You Need
14
16
15
17
About 30 minutes and zero coding experience. You'll copy and paste everything.
Copy file name to clipboardExpand all lines: docs/02-companion-prompts.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ Your Open Brain is built. Now make it work for you. These five prompts cover the
12
12
-**Prompt 4: Quick Capture Templates** — Five capture patterns optimized for clean metadata extraction
13
13
-**Prompt 5: The Weekly Review** — End-of-week synthesis that surfaces themes, forgotten action items, and emerging patterns
14
14
15
-
**Tools:** All prompts work with any MCP-connected AI (Claude, ChatGPT, Gemini, Grok). Prompt 1 specifically requires an AI that has accumulated memory about you. Prompts 2 and 5 require your Open Brain MCP server to be connected.
15
+
**Tools:** All prompts work with any MCP-connected AI (Claude, ChatGPT, Gemini, Grok). Prompt 1 specifically requires an AI that has accumulated memory about you. Prompts 2 and 5 require your Open Brain MCP server to be connected. If you use the [CLI-Direct approach](CLI_DIRECT_APPROACH.md) with the [`ob` CLI tool](../resources/ob-cli/) instead of MCP, you can adapt these prompts by having your AI run `ob capture` and `ob search` shell commands in place of the MCP tools.
Copy file name to clipboardExpand all lines: docs/03-faq.md
+18Lines changed: 18 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -180,4 +180,22 @@ If you run into a blocker, post it in the Substack chat thread — not in someon
180
180
181
181
---
182
182
183
+
---
184
+
185
+
## CLI-Direct and the `ob` Tool
186
+
187
+
### "Can I use Open Brain from the terminal without MCP?"
188
+
189
+
Yes. The [CLI-Direct Approach](CLI_DIRECT_APPROACH.md) describes how to use Open Brain from terminal-based AI tools (Claude Code, OpenAI Codex, Gemini CLI) without MCP. It uses a lightweight bash script called `ob` that talks directly to Supabase and OpenRouter using `curl` and `jq`. No Edge Function, no MCP server, no deployment step. Setup takes 5–10 minutes. The script lives at [`resources/ob-cli/ob`](../resources/ob-cli/) in this repo.
190
+
191
+
### "Should I use MCP or the `ob` CLI?"
192
+
193
+
If you only use terminal-based AI tools, the CLI-Direct approach is simpler. If you use both GUI clients (Claude Desktop, ChatGPT) and CLI tools, use both — MCP for GUI, `ob` for terminal. Both paths write to the same `thoughts` table and are fully interoperable. See the [comparison matrix](CLI_DIRECT_APPROACH.md#9-comparison-matrix-mcp-vs-cli-direct) for a detailed breakdown.
194
+
195
+
### "I set up `ob` but `ob capture` fails"
196
+
197
+
Check your environment variables: `OB_SUPABASE_URL`, `OB_SUPABASE_KEY`, and `OB_OPENROUTER_KEY` must all be set. Run `ob version` to see which are configured. See the [CLI-Direct troubleshooting section](CLI_DIRECT_APPROACH.md#11-troubleshooting) for common issues.
198
+
199
+
---
200
+
183
201
*This FAQ is based on real community questions from the Substack chat and YouTube comments. If you run into something not covered here, [open an issue](https://github.com/NateBJones-Projects/OB1/issues) or post in the [Substack community](https://natesnewsletter.substack.com/) so everyone benefits from the answer.*
Copy file name to clipboardExpand all lines: docs/04-ai-assisted-setup.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,8 @@ Point your AI coding tool at this repo and tell it to walk you through the [setu
6
6
7
7
This works in Cursor, Claude Code, Codex, Windsurf, OpenClaw, or any AI coding tool that can read files. You don't need to copy-paste from a browser or follow along manually. Let your AI be your pair programmer through the whole build.
8
8
9
+
> **Terminal-only alternative:** If you use Claude Code, Codex, or Gemini CLI and want the simplest possible setup, consider the [CLI-Direct Approach](CLI_DIRECT_APPROACH.md) instead. It uses a lightweight [`ob` CLI tool](../resources/ob-cli/) (`curl` + `jq` only) to talk directly to Supabase — no MCP server, no Edge Function deployment. Setup takes 5–10 minutes instead of 30–45.
Copy file name to clipboardExpand all lines: docs/API_REFERENCE.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,6 +21,8 @@ Complete reference for the Open Brain MCP Tools API, extension MCP servers, data
21
21
22
22
The core MCP server is deployed as a Supabase Edge Function. It provides four tools that give any MCP-connected AI client the ability to read and write to the `thoughts` table.
23
23
24
+
> **CLI alternative:** The [`ob` CLI tool](../resources/ob-cli/) provides the same four capabilities (capture, search, recent, stats) as direct shell commands using `curl` and `jq`. It talks to the same Supabase REST API and `match_thoughts()` RPC function documented below — no MCP server required. See [CLI-Direct Approach](CLI_DIRECT_APPROACH.md) for the full architecture.
Copy file name to clipboardExpand all lines: docs/ARCHITECTURE.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,6 +23,8 @@ This document describes the complete technical architecture of the Open Brain sy
23
23
24
24
Open Brain is a three-tier system. Think of it like a classic client-server application, except the "client" is an AI assistant and the "server" speaks a specialized protocol called MCP.
25
25
26
+
> **Alternative path:** Terminal-based AI tools (Claude Code, Codex, Gemini CLI) can bypass Tier 2 entirely using the [`ob` CLI tool](../resources/ob-cli/), which calls the Supabase REST API and OpenRouter directly. See [CLI-Direct Approach](CLI_DIRECT_APPROACH.md) for that architecture. Both paths use the same Tier 3 infrastructure and the same `thoughts` table.
Copy file name to clipboardExpand all lines: docs/DEVELOPER_GUIDE.md
+6-3Lines changed: 6 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -610,14 +610,17 @@ docs/
610
610
611
611
These are end-user docs. The DEVELOPER_GUIDE.md you are reading is also in this folder.
612
612
613
-
### `resources/` — Claude Skill and Companion Files
613
+
### `resources/` — Companion Tools and Files
614
614
615
615
```
616
616
resources/
617
-
└── (Claude Skill and companion prompt files)
617
+
├── ob-cli/ # ob CLI tool — direct Open Brain access without MCP
618
+
│ ├── ob # The bash script (curl + jq only)
619
+
│ └── README.md # Installation and usage
620
+
└── open-brain-companion.skill # Claude Skill for AI-assisted help
618
621
```
619
622
620
-
Resources are companion tools — things like the Claude Skill that knows the Open Brain system and can help users when they get stuck.
623
+
Resources are companion tools. The `ob` CLI provides a lightweight alternative to MCP for terminal-based AI tools — see [`docs/CLI_DIRECT_APPROACH.md`](CLI_DIRECT_APPROACH.md) for the full guide. The Claude Skill helps users when they get stuck.
0 commit comments