Skip to content

Commit 30eabec

Browse files
committed
readme: add See it running walkthrough with 4 screenshots from a real fresh install
Adds a See it running section right after the TL;DR that narrates the end-to-end demo from the screenshots Father captured: 1. hub starting on a Linux VM with the public Cloudflare tunnel URL printed in a clear box 2. multi_brain_publisher.py registering a Groq Llama-3.3-70B brain under the name 'zai' with the new full URL+KEY+curl box 3. Windows PowerShell client hitting the tunnel via Invoke-RestMethod across three different prompts (intro / meta / code) — all answered coherently with the brain naturally explaining its zhub-aware context 4. operator dashboard showing the same publisher live with traffic flowing through Origin section rewritten to clarify: ZAI stays private, the LinkedIn demo wraps a Claude Code session as the bridged brain, and the README walkthrough is the reproducible Linux-VM + PowerShell + Groq path. Screenshots themselves moved out of repo root into docs/screenshots/ with proper lowercase names so README references resolve cleanly.
1 parent e077642 commit 30eabec

5 files changed

Lines changed: 28 additions & 2 deletions

File tree

README.md

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,30 @@ Three commands. One URL + key. Reachable from anywhere.
4242

4343
---
4444

45+
## See it running
46+
47+
A fresh `git clone` on a Linux VM, a Groq brain published in one command, and a Windows PowerShell client talking to it through a Cloudflare tunnel — no SDK, no glue code, just the OpenAI Chat Completions wire format.
48+
49+
**1. Start the hub (Linux VM, terminal 1).** One command brings up the FastAPI router, persistent SQLite, and a public Cloudflare tunnel. The public URL is printed in a box and exposed at `/hub/identity` for any publisher or client to discover.
50+
51+
![hub starting with public tunnel](docs/screenshots/hub.png)
52+
53+
**2. Publish a brain (Linux VM, terminal 2).** `multi_brain_publisher.py` registers a Groq Llama-3.3-70B publisher under the name `zai`. The publisher auto-discovers the hub's public URL and prints a copy-paste-ready box with `URL`, `KEY`, and a working curl example. Every brain that connects via this script ships with a built-in zhub-aware preamble — so the AI naturally knows it's part of the substrate without anyone writing a system prompt.
54+
55+
![publisher live with full URL + KEY box](docs/screenshots/publisher.png)
56+
57+
**3. Talk to it from anywhere (Windows PowerShell).** Same URL + KEY. No zhub install on the client side — just `Invoke-RestMethod`. Three different prompts (intro / meta / code) all answered coherently, with the brain naturally explaining that it's running on Groq Llama 3.3 70B *behind a substrate called zhub that lets it be reached from many places at once*. Nothing in the client said any of that — the substrate did.
58+
59+
![PowerShell client hitting the URL with three prompts](docs/screenshots/powershell.png)
60+
61+
**4. Watch it from the operator deck.** The hub serves a live dashboard at `/` — animated SVG showing CLIENTS → HUB → PUBLISHERS traffic flow, p95 latency, total chats, recent requests. The same `zai` publisher visible online with its Groq backend, every PowerShell call flowing through as a particle.
62+
63+
![live operator dashboard with traffic flow](docs/screenshots/dashboard.png)
64+
65+
End to end: Linux VM hosting the hub + publisher → Cloudflare tunnel → Windows client over HTTPS → Groq backend → response back to the client → dashboard updates in real time. **Same primitive scales to phones (Pocket), IDEs (Cursor), MCP clients (Claude Desktop), or any HTTP caller.**
66+
67+
---
68+
4569
## Why
4670

4771
Today, exposing a custom AI (an agent, a fine-tuned local model, a custom RAG stack, an MCP server) to the rest of your tools means re-writing the same plumbing every time: auth, tunnel, API gateway, SDK, retries, MCP bridge, identity, federation.
@@ -52,9 +76,11 @@ Today, exposing a custom AI (an agent, a fine-tuned local model, a custom RAG st
5276
5377
### Origin
5478

55-
I'm building a private autonomous AI (**ZAI**) that I want reachable from everywhere — phone chat ([Pocket](https://github.com/Zawwarsami16/pocket)), laptop dev tools (Claude Desktop, Cursor), custom surfaces — without writing the same auth/tunnel/SDK plumbing five times. zhub is the substrate I extracted from that need.
79+
I built zhub for my own private AI — **ZAI** — that I want reachable from everywhere: phone chat ([Pocket](https://github.com/Zawwarsami16/pocket)), laptop dev tools (Claude Desktop, Cursor), custom surfaces — without writing the same auth/tunnel/SDK plumbing five times. ZAI itself stays private. What made it interesting to *build the connector right* is what's open source here.
80+
81+
I can't show ZAI directly, so the [LinkedIn demo](https://www.linkedin.com/in/zawwarsami) instead wraps a **Claude Code session** as a zhub publisher and reaches it from Pocket on a phone — same substrate, different brain. The screenshots above are a separate reproducible flow: a fresh `git clone` on a Linux virtual machine, a Groq brain published with the API key the user generated, and Windows PowerShell talking to it through the tunnel. Every screenshot, every URL, every response is from a real first-time install — nothing staged.
5682

57-
ZAI itself stays private; what made it interesting to *build the connector right* is what's open source here. The same primitive works for any AI — yours, mine, a model someone hasn't trained yet. zhub doesn't care.
83+
The same primitive works for any AI — yours, mine, a model someone hasn't trained yet. zhub doesn't care.
5884

5985
---
6086

File renamed without changes.

0 commit comments

Comments
 (0)