/nlweb-protocol:nlweb-setupfrom nlweb-protocol
Bootstraps a local NLWeb development environment from scratch: clones the repo, configures .env, installs Python deps, runs interactive LLM/retrieval selection, loads sample Schema.org data, and verifies with `nlweb check`.
Ships in nlweb-protocol. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Config layout changed upstream. NLWeb replaced the single
site_types.xmlwith two files inconfig/:sites.xml(site name →itemTypelist + description) andtools.xml(per-site / per-type tool definitions, prompts and examples, scoped by<Site id="…">/<Item>blocks). Older guidance — including anysite_type/extendsinheritance syntax — describes the retired file. Fetchconfig/sites.xmlandconfig/tools.xmlfrom the live repo before editing anything.
Fetch live docs first:
nlweb CLI flags.site:github.com/nlweb-ai/NLWeb docs/release_notes and read the most recent dated release note — config keys and required env vars change between releases.write_endpoint and verify which backends are enabled by default in config/config_retrieval.yaml on main.A working NLWeb dev environment has four parts:
.env file with provider credentials (OpenAI/Azure OpenAI key + retrieval backend secrets).:8000 with /ask, /mcp, /sites reachable.NLWeb ships with three retrieval backends enabled by default in config_retrieval.yaml:
qdrant_local (file-backed, fine for dev)nlweb_west (Azure AI Search — requires Azure credentials)shopify_mcp (queries Shopify's MCP endpoint, requires network)For most local-dev cases, disable the latter two by setting enabled: false so you don't get connection errors at startup. The write_endpoint should point to qdrant_local for dev.
text-embedding-3-small on Azure OpenAI.development (allows query-string config overrides) or production in config_webserver.yaml?NLWeb/ # cloned repo
├── AskAgent/python/
│ ├── app-aiohttp.py # main entry
│ ├── core/, methods/, webserver/ # core code
│ ├── llm_providers/, embedding_providers/, retrieval_providers/
│ └── data_loading/
├── config/
│ ├── config_llm.yaml
│ ├── config_embedding.yaml
│ ├── config_retrieval.yaml
│ ├── config_nlweb.yaml
│ ├── config_webserver.yaml
│ ├── config_oauth.yaml
│ ├── config_storage.yaml
│ ├── config_tools.yaml
│ ├── tools.xml
│ └── prompts.xml
├── data/db/ # qdrant_local file store
├── .env # YOUR credentials (gitignored)
└── docs/, scripts/, demo/, tests/
git clone https://github.com/nlweb-ai/NLWeb && cd NLWebnlweb init-python (or manual python -m venv .venv && source .venv/bin/activate && pip install -r requirements.txt)nlweb init — interactive prompts walk through LLM + retrieval selection and write .envconfig/config_retrieval.yaml (nlweb_west, shopify_mcp for local-only dev)nlweb data-load <source> <site-name> — ingest sample content (use a small RSS feed for first run)nlweb check — runs connectivity diagnostics; resolve any red flagsnlweb app — start the server, hit http://localhost:8000//ask?query=hello&site=<site-name>&streaming=falseNLWeb expects credentials via env vars (never YAML). Common keys (verify live):
OPENAI_API_KEY, AZURE_OPENAI_API_KEY, AZURE_OPENAI_ENDPOINTANTHROPIC_API_KEY, GEMINI_API_KEYAZURE_SEARCH_ENDPOINT, AZURE_SEARCH_API_KEYQDRANT_API_KEY (only for remote Qdrant)SNOWFLAKE_USER, SNOWFLAKE_PASSWORD, SNOWFLAKE_ACCOUNTCLOUDFLARE_API_TOKEN, CLOUDFLARE_ACCOUNT_IDAfter setup, these should work:
curl http://localhost:8000/sites → JSON list including your loaded sitecurl 'http://localhost:8000/ask?query=test&site=<your-site>&streaming=false' → JSON with resultscurl -X POST http://localhost:8000/mcp -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}' → ask, list_sites, optionally whonlweb check fails on Azure: usually AZURE_OPENAI_ENDPOINT missing trailing slash or wrong deployment name.preferred_provider in config_embedding.yaml./ask returns empty: site name in the query doesn't match the site value used during ingest, or the sites: allowlist in config_nlweb.yaml excludes it./who endpoint pinging nlwm.azurewebsites.net. Disable who_endpoint_enabled for offline dev.Always re-verify against the latest hello-world doc — the exact env-var names and CLI flags change.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub orcaqubits/agentic-commerce-skills-plugins --plugin nlweb-protocol13 skills in this plugin
/nlweb-ask-endpointImplement and consume the NLWeb /ask REST endpoint — request shape (GET/POST, query-string and v0.55 structured body), SSE streaming response, modes (list/summarize/generate), in-stream "message_type" headers, error envelopes, and client-side parsing. Use when building an NLWeb server route, calling /ask from a custom agent, or debugging /ask responses./nlweb-auth-multitenancyConfigure NLWeb authentication and multi-tenant deployments — OAuth providers (GitHub, Google, Microsoft, Facebook), session storage, the `sites:` allowlist in `config_nlweb.yaml`, conversation persistence per authenticated user, and per-tenant data isolation. Use when adding login to an NLWeb instance, hosting multiple customers on one deployment, or persisting conversation history./nlweb-chatgpt-appsdkIntegrate NLWeb with ChatGPT's Apps SDK — the Node.js MCP server in `openai-apps-sdk-integration/`, the `nlweb-list` tool, the React widget at `ui://widget/nlweb-list.html`, and the port-8100 AppSDK adapter that translates NLWeb's message list to OpenAI Apps SDK envelopes. Use when publishing an NLWeb site as a ChatGPT app or wiring NLWeb results into an Apps SDK widget./nlweb-data-loadingIngest site content into NLWeb's vector store using `db_load.py` — supports RSS/Atom feeds, Schema.org JSON-LD, sitemap-driven URL lists, and CSV. Covers chunking, embedding computation, site partitioning, batch sizing, delete-and-reload, and per-backend write_endpoint targeting. Use when bootstrapping a site's index, refreshing content, or migrating between retrieval backends./nlweb-deploymentDeploy NLWeb to production — Azure App Service (`deploy_azure_webapp.sh` + AI Search + Azure OpenAI), Snowflake Container Services, Cloudflare Worker + AutoRAG, Docker, and self-hosted. Covers env-var conventions, `mode: production` lockdown, scaling, TLS, OAuth, and CI for data reloads. Use when going from local dev to a hosted, internet-facing NLWeb instance./nlweb-dev-patternsNLWeb development patterns — the mixed-mode programming philosophy, FastTrack vs Analysis parallel paths, config file precedence and the `mode: development` override trap, in-stream NLWS headers vs HTTP headers, embedding/ingest determinism, debugging the LLM-call chain, neural scorer selection (NLWebScorer ModernBERT+GAM), and the A2A / AgentFinder / DataFinder / ModelRouter subsystems. Use when designing the internal architecture of an NLWeb deployment or solving cross-cutting concerns.Other plugins' skills for the same job