Ob1 local http

From NateBJones-Projects/OB1 · View interactive version

Ob1 local http is an AI agent skill from the GitHub repository NateBJones-Projects/OB1. Capture and search thoughts against a self-hosted Open Brain over plain HTTPS, with no MCP transport involved. Use this skill in environments where Claude Code's MCP feature is disabled or the network blocks remote MCP endpoints, but the brain stack from the companion `local-brain-no-mcp` recipe is

How to use this skill

Skill file

OB1 Local HTTP

Problem

The canonical Open Brain stack assumes Claude Code can talk to a remote

Supabase MCP server. In environments that disable MCP entirely -- corporate

networks, air-gapped offices, restricted Claude Code builds -- that path is

not available. This skill replaces it with curl calls to a LAN-resident

Open Brain (see the local-brain-no-mcp recipe), keeping the same

capture-and-recall behavior without any MCP protocol involvement.

When to Use

they previously captured.

about", "show me today's notes").

When Not to Use

the canonical MCP-based capture/search tools.

not set on the dev host -- this skill cannot function without them; ask

the user to follow local-brain-no-mcp's install instructions first.

Required Environment

On each dev host that will use this skill, the user must export:

export BRAIN_URL="http://<brain-host>:8000"   # Supabase Kong gateway
export BRAIN_ANON_KEY="eyJhbGciOi..."          # written by setup.sh

If either is missing, stop and tell the user. Do not guess values.

Process

Capture

When the user says something like "remember X" or "save this thought":

curl -fsS -X POST "$BRAIN_URL/functions/v1/capture" \
  -H "apikey: $BRAIN_ANON_KEY" \
  -H "Authorization: Bearer $BRAIN_ANON_KEY" \
  -H "Content-Type: application/json" \
  -d '{"content":"<the thought>","metadata":{"source":"claude-code"}}'

Optional metadata fields: source, tags (array of strings),

thread_id, anything else useful. The server fingerprints content and

de-duplicates -- re-capturing identical text returns the existing id.

Search

When the user wants to recall:

curl -fsS -X POST "$BRAIN_URL/functions/v1/search" \
  -H "apikey: $BRAIN_ANON_KEY" \
  -H "Authorization: Bearer $BRAIN_ANON_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query":"<what to find>","match_count":10,"match_threshold":0.65}'

match_threshold defaults to 0.7. Lower it to 0.5-0.65 for broader recall;

raise to 0.8+ for precision. Cap match_count at 100.

Browse recent

When the user asks "what have I been thinking about" or wants a list rather

than a similarity search:

curl -fsS "$BRAIN_URL/functions/v1/list?limit=20" \
  -H "apikey: $BRAIN_ANON_KEY" \
  -H "Authorization: Bearer $BRAIN_ANON_KEY"

Output

one sentence. Don't paraphrase the captured content back at them.

created_at timestamps. Order by similarity descending. If no results

cross the threshold, say so plainly and suggest lowering it.

chars) and timestamps.

Failure Modes

is down. Tell the user to docker compose ps on the brain host.

loaded. Tell the user to run the documented ollama pull step.

changed after the volume was initialized. Tell the user to read the

"one-way door" section of local-brain-no-mcp's README.

check supabase-docker/docker/.env on the brain host.

the brain host from this dev host.

Notes

Ollama or any model files.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.