Skip to content

flashsh CLI

The flashsh command is FLASH's sovereign zero-knowledge shell — optimized for private RAG, agent memory, and integrity proofs.


Installation

bash
npm install -g flash-zk

Or via npx:

bash
npx flashsh init

Commands

Initialize workspace

bash
flashsh init

Creates ./flash_data, writes a welcome sample, and ingests it into Private RAG (cli_knowledge).

Interactive REPL

bash
flashsh
# flashsh> client.privateRAG('kb').ask('question')

Ingest knowledge (Private RAG)

bash
flashsh ingest ./notes.txt
echo "FLASH encrypts client-side" | flashsh ingest -

Semantic search (not a chatbot)

bash
flashsh ask "does the server see plaintext?"

ask searches ingested documents via semantic similarity. It returns the closest matching chunks — not a conversational LLM reply.

Integrity proof

bash
flashsh proof users

Options

FlagDescription
--storage ./dataStorage directory (default: ./flash_data)
--key secretMaster secret key
--uri flash://host:6742Remote FLASH server
--quiet / -qSuppress metadata output

Workflow

bash
# 1. Bootstrap
flashsh init

# 2. Add documents
flashsh ingest medical-notes.txt
flashsh ingest legal-contract.txt

# 3. Search
flashsh ask "side effects"
flashsh ask "termination clause"

Collection used: cli_knowledge under {storagePath}/flash_db/.


Released under the Apache 2.0 License.