QuickStart
Start with one read-only Knowledge Source. Install the published llmwiki-serve package, point it at one Markdown, Obsidian-style, or LLMWiki folder, verify the CLI and HTTP surfaces, then add llmwiki-bridge-start as the next handoff step.
The default source URL in this page is http://127.0.0.1:8765. Keep the first run on loopback while you verify behavior. Package versions and compatibility evidence are tracked in Release Status & Compatibility and Evidence.
Optional guided setup for Claude Code and Codex
The direct llmwiki-serve flow below is the default. If you use Claude Code or Codex and want skills that guide setup, status, and read-only doctor checks with approvals before package installation, process start, config writes, broad discovery, or remote probing, install the released LLMWiki Bridge Plugin from the public GitHub repository-backed marketplace, then return here to verify the served source.
1. Install llmwiki-serve
Install the current public-preview CLI from PyPI:
uv tool install llmwiki-serve
llmwiki-serve --helpFor a reproducible check against the current public baseline:
uvx --from llmwiki-serve==0.2.10 llmwiki-serve --helpPin llmwiki-serve==0.2.10 only when you need to reproduce the current released baseline exactly. Use Release Status & Compatibility before publishing docs or release notes.
Alternatives:
pipx install llmwiki-serve
# or install inside an activated virtual environment
python -m pip install llmwiki-serve2. Choose SOURCE_PATH
If you already have a Markdown, Obsidian-style, or LLMWiki folder, use that folder:
$SourcePath = "C:\path\to\your\wiki"SOURCE_PATH=/path/to/your/wikiIf you do not have a source yet, create a tiny local smoke-test folder:
$SourcePath = Join-Path (Get-Location) "llmwiki-quickstart-source"
New-Item -ItemType Directory -Force $SourcePath | Out-Null
@'
---
wiki_title: QuickStart Agent Wiki
description: Tiny local sample for llmwiki-serve package install.
review_state: approved
source_refs:
- SRC-INDEX
---
# QuickStart Agent Wiki
This wiki tracks release readiness for an agent context smoke. Start with
[[hot]] before packaging handoff.
'@ | Set-Content -NoNewline -Encoding ascii (Join-Path $SourcePath "index.md")
@'
---
title: Current Agent Focus
review_state: approved
source_refs:
- SRC-HOT
---
# Current Agent Focus
The current focus is release readiness, required copy, approved evidence, and
handoff status before packaging release.
'@ | Set-Content -NoNewline -Encoding ascii (Join-Path $SourcePath "hot.md")
@'
---
title: Draft Note
review_state: draft
draft: true
source_refs:
- SRC-DRAFT
---
# Draft Note
This page should be withheld unless draft serving is explicitly enabled.
'@ | Set-Content -NoNewline -Encoding ascii (Join-Path $SourcePath "draft-note.md")SOURCE_PATH="$PWD/llmwiki-quickstart-source"
mkdir -p "$SOURCE_PATH"
cat > "$SOURCE_PATH/index.md" <<'EOF'
---
wiki_title: QuickStart Agent Wiki
description: Tiny local sample for llmwiki-serve package install.
review_state: approved
source_refs:
- SRC-INDEX
---
# QuickStart Agent Wiki
This wiki tracks release readiness for an agent context smoke. Start with
[[hot]] before packaging handoff.
EOF
cat > "$SOURCE_PATH/hot.md" <<'EOF'
---
title: Current Agent Focus
review_state: approved
source_refs:
- SRC-HOT
---
# Current Agent Focus
The current focus is release readiness, required copy, approved evidence, and
handoff status before packaging release.
EOF
cat > "$SOURCE_PATH/draft-note.md" <<'EOF'
---
title: Draft Note
review_state: draft
draft: true
source_refs:
- SRC-DRAFT
---
# Draft Note
This page should be withheld unless draft serving is explicitly enabled.
EOF3. Run CLI Checks
PowerShell:
llmwiki-serve manifest $SourcePath
llmwiki-serve query $SourcePath "release readiness required copy" --limit 4
llmwiki-serve source-refs $SourcePath
llmwiki-serve source-bundle $SourcePath
llmwiki-serve search $SourcePath "release readiness" --mode literal `
--fields page_id,title,route --snippet-chars 0POSIX shell:
llmwiki-serve manifest "$SOURCE_PATH"
llmwiki-serve query "$SOURCE_PATH" "release readiness required copy" --limit 4
llmwiki-serve source-refs "$SOURCE_PATH"
llmwiki-serve source-bundle "$SOURCE_PATH"
llmwiki-serve search "$SOURCE_PATH" "release readiness" \
--mode literal \
--fields page_id,title,route \
--snippet-chars 0For the tiny sample, check these signals:
manifestreportssource_id: quickstart-agent-wiki.manifestreportspage_count: 3andapproved_page_count: 2.queryreturns approved evidence such ashot.md.limitationssays one draft or unapproved page was withheld.source-refsincludesSRC-HOT.source-bundlereports the same source identity and projection metadata.
The CLI manifest includes the resolved local root for operator verification. Network GET /manifest responses redact the root.
4. Serve The Source
Start the source server:
llmwiki-serve serve $SourcePath --host 127.0.0.1 --port 8765llmwiki-serve serve "$SOURCE_PATH" --host 127.0.0.1 --port 8765This default keeps GraphStore disabled. In llmwiki-serve==0.2.10, the base install includes the optional SQLite GraphStore code. Do not add a [sqlite] or [graph] extra. Keep the SQLite file outside SOURCE_PATH; it is a sensitive derived graph cache and should not be committed, served, or synced with the source folder.
$GraphStorePath = "C:\path\to\llmwiki-cache\quickstart-graph-store.sqlite"
llmwiki-serve serve $SourcePath --host 127.0.0.1 --port 8765 `
--graph-store sqlite `
--graph-store-path $GraphStorePathGRAPH_STORE_PATH=/path/to/llmwiki-cache/quickstart-graph-store.sqlite
llmwiki-serve serve "$SOURCE_PATH" --host 127.0.0.1 --port 8765 \
--graph-store sqlite \
--graph-store-path "$GRAPH_STORE_PATH"The environment-variable equivalent is:
LLMWIKI_GRAPH_STORE=sqlite \
LLMWIKI_GRAPH_STORE_PATH="$GRAPH_STORE_PATH" \
llmwiki-serve serve "$SOURCE_PATH" --host 127.0.0.1 --port 8765Leave that terminal running. In another terminal, set the source URL:
$SourceUrl = "http://127.0.0.1:8765"SOURCE_URL=http://127.0.0.1:8765Inspect local running source records:
llmwiki-serve ls
llmwiki-serve status --jsonstatus is an alias for ls. These commands combine local registry records written by serve with OS process command-line discovery for llmwiki-serve serve processes, then probe discovered local /health endpoints by default. They do not use default fixed-port probing. Use --no-processes for registry-only output and --probe-port <port> only for a manual loopback diagnostic. JSON output can include discovery_source and root_source. Redact real local roots from public issues, logs, and screenshots.
5. Verify HTTP
PowerShell:
Invoke-RestMethod "$SourceUrl/health"
Invoke-RestMethod "$SourceUrl/manifest"
Invoke-RestMethod "$SourceUrl/source-refs"
Invoke-RestMethod "$SourceUrl/source-bundle"
$Body = @{ query = "release readiness required copy"; limit = 4 } |
ConvertTo-Json -Compress
Invoke-RestMethod "$SourceUrl/query" -Method Post `
-ContentType "application/json" -Body $BodyPOSIX shell:
curl -s "$SOURCE_URL/health"
curl -s "$SOURCE_URL/manifest"
curl -s "$SOURCE_URL/source-refs"
curl -s "$SOURCE_URL/source-bundle"
curl -s "$SOURCE_URL/query" \
-H 'content-type: application/json' \
-d '{"query":"release readiness required copy","limit":4}'You have a working source when /health reports status: ok, /manifest and /source-bundle agree on the source identity, /source-refs returns visible refs, and /query returns evidence with page paths and source-ref labels. For coding agents that should turn /query or MCP llmwiki_context guidance into follow-up lexical search/read calls, see Direct Agent Integrations.
6. Optional MCP Smoke
If your client supports MCP Streamable HTTP, smoke the source endpoint before registering it:
curl -s "$SOURCE_URL/mcp/stream" \
-H 'accept: application/json, text/event-stream' \
-H 'content-type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-06-18","capabilities":{},"clientInfo":{"name":"llmwiki-quickstart-smoke","version":"0.0.0"}}}'
curl -s "$SOURCE_URL/mcp/stream" \
-H 'accept: application/json, text/event-stream' \
-H 'content-type: application/json' \
-d '{"jsonrpc":"2.0","id":2,"method":"tools/list"}'
curl -s "$SOURCE_URL/mcp/stream" \
-H 'accept: application/json, text/event-stream' \
-H 'content-type: application/json' \
-d '{"jsonrpc":"2.0","id":3,"method":"tools/call","params":{"name":"llmwiki_context","arguments":{"query":"release readiness required copy","limit":4}}}'The smoke passes when tools/list includes llmwiki_context and the tool call returns approved evidence. This is an SDK-backed source surface where supported by the installed server and client; it is not a certification claim for every MCP client or runtime.
7. Connect An Agent Directly
When a local agent, script, or IDE command can call HTTP directly, pass the source URL as LLMWIKI_SOURCE_URL:
$env:LLMWIKI_SOURCE_URL = $SourceUrlexport LLMWIKI_SOURCE_URL="$SOURCE_URL"Use this instruction for direct retrieval:
Use the local read-only LLMWiki source at LLMWIKI_SOURCE_URL.
Call POST /query first with the task question and a small limit.
Inspect /source-bundle and /source-refs for source identity and citation refs.
Use /read/{page_id} or /graph/neighborhood only after evidence identifies a page
or graph seed. Treat returned snippets, paths, and source_refs as source
evidence, not as a generated final answer.For an MCP Streamable HTTP client, register:
Name: quickstart-agent-wiki
Transport: Streamable HTTP
URL: http://127.0.0.1:8765/mcp/stream
First tool: llmwiki_context
Inspection tools: llmwiki_source_bundle, llmwiki_source_refs, llmwiki_read,
llmwiki_graph_neighborsStop here if your agent can retrieve evidence and synthesize its own answer.
8. Next: Add llmwiki-bridge-start
After the source checks pass, use llmwiki-bridge-start when you want guided discovery, repeatable source startup, optional bridge registration, and smoke checks:
npx --yes llmwiki-bridge-start@latest --path $SourcePath
npx --yes llmwiki-bridge-start@latest status --jsonnpx --yes llmwiki-bridge-start@latest --path "$SOURCE_PATH"
npx --yes llmwiki-bridge-start@latest status --jsonIf you add a next source later, repeat the same pattern with another source path and port, then use llmwiki-bridge-start status --json or llmwiki-serve ls to inspect what is running.
Use llmwiki-agent-bridge only when one local companion endpoint should fan out across selected sources or call a configured runtime for a normalized cited artifact. Keep the bridge URL distinct from runtime endpoint variables:
BRIDGE_URL=http://127.0.0.1:8788
curl -s "$BRIDGE_URL/health"
curl -s "$BRIDGE_URL/sources?probe=1"LLMWIKI_AGENT_BRIDGE_BASE_URL is the model runtime base URL used by the bridge in runtime-backed modes. It is not the bridge URL.
Package Smoke Checklist
| Check | Command or action | Expected result |
|---|---|---|
| Install source CLI | uv tool install llmwiki-serve | Command installs. |
| Reproduce pinned CLI help | uvx --from llmwiki-serve==0.2.10 llmwiki-serve --help | Help prints. |
| Choose source | Existing folder or tiny local sample above | SOURCE_PATH points at Markdown content. |
| Inspect source | llmwiki-serve manifest "$SOURCE_PATH" | Manifest prints source metadata. |
| Query source | llmwiki-serve query "$SOURCE_PATH" "release readiness required copy" --limit 4 | Approved evidence returns. |
| Inspect refs | llmwiki-serve source-refs "$SOURCE_PATH" | Visible source refs return. |
| Inspect bundle | llmwiki-serve source-bundle "$SOURCE_PATH" | Source bundle returns. |
| Serve source | llmwiki-serve serve "$SOURCE_PATH" --host 127.0.0.1 --port 8765 | Loopback server starts. |
| Optionally enable SQLite GraphStore | llmwiki-serve serve "$SOURCE_PATH" --host 127.0.0.1 --port 8765 --graph-store sqlite --graph-store-path "$GRAPH_STORE_PATH" | With llmwiki-serve==0.2.10 or newer, graph responses can use an opt-in derived SQLite cache outside the source root. |
| Inspect discovery | llmwiki-serve ls or llmwiki-serve status --json | Running instances report health, stale state, and registry/process discovery source. |
| Verify HTTP | /health, /manifest, /query, /source-refs, /source-bundle | Endpoints return source data. |
| Optionally verify MCP | /mcp/stream initialize, tools/list, and llmwiki_context | MCP source smoke passes where supported. |
| Add guided handoff | npx --yes llmwiki-bridge-start@latest --path "$SOURCE_PATH" | Guided source startup and handoff checks run. |
Source Checkout Use
Use a source checkout only when you want bundled repository fixtures, development scripts, contribution workflow checks, or release verification. Package-installed users should point llmwiki-serve at an existing Markdown folder or the tiny local sample above.