wenqu-cli
wenqu is the runtime companion for Wenqu Skills. It owns executable
capabilities, runtime setup and external integrations; the skills themselves
remain focused on editorial workflows and decision rules.
The first migrated capability is library: multi-engine candidate discovery
and browser-backed material downloads. It replaces the separate
open-websearch and crwl command contracts with a single Python CLI.
Install
pipx install wenqu-cli
wenqu setup library
The package installs its Python dependencies with Wenqu. wenqu setup library
explicitly downloads Chromium for Crawl4AI; this separate command makes the
large browser download visible and consent-based.
Optional credentials
Run this once to create the local, owner-only credentials template:
wenqu config init
wenqu config status
To enable Exa, edit the printed credentials.env path and set
EXA_API_KEY=.... The file is created with mode 600, is never committed, and
Wenqu never prints the key. You can instead provide EXA_API_KEY in the command
environment. If Exa is selected without a key, Wenqu skips it before making a
network request and returns an explicit skippedEngines entry.
Library commands
# Inspect dependencies and managed directories.
wenqu doctor --json
# Preview first-run browser setup without downloading anything.
wenqu setup library --dry-run
# Search all ten managed channels, preserving partial failures in JSON.
wenqu library search "agent memory system" --limit 12 --json
# Select only relevant channels for Chinese technical articles.
wenqu library search "智能体记忆 源码解析" \
--engines baidu,juejin,csdn --limit 9 --json
# Download a page as Markdown; browser rendering is provided by Crawl4AI.
wenqu library fetch https://example.com/article --out materials/articles/example.md
# Bounded same-origin collection. The output is one Markdown file separated by URLs.
wenqu library fetch https://docs.example.com --max-pages 8 --out materials/docs/example.md
# Download a confirmed public WeChat article. Wenqu uses a mobile WeChat UA
# and waits for the article body before writing Markdown.
wenqu library fetch 'https://mp.weixin.qq.com/s?...' \
--out materials/articles/wechat/article.md --json
wenqu library search supports baidu, bing, linuxdo, csdn,
duckduckgo, exa, brave, juejin, and sogou. Exa requires
EXA_API_KEY; it is skipped with a structured configuration hint when no key is present.
For Baidu, Bing, Brave and Sogou, direct-search failures can be retried through
Wenqu's Crawl4AI adapter. CSDN discovery searches public indexes with a CSDN
keyword and keeps only CSDN-domain results, instead of calling CSDN's protected
search endpoint. Pass --no-browser-fallback to disable browser retries.
WeChat page downloads automatically use the required mobile UA and wait for
#js_content; access controls and verification pages are reported as failures
rather than retried or bypassed.
When Baidu returns an access-verification page, Wenqu reports
ACCESS_CHALLENGE rather than silently treating it as an empty result. LinuxDo
candidate discovery uses site:linux.do through DuckDuckGo, Bing, then Brave;
it does not call LinuxDo's challenged unauthenticated search endpoint.
Set WENQU_PROXY_URL for a runtime HTTP proxy, or configure the same value in
~/.gogoingai/wenqu-skills/config.json:
{
"library": {
"proxyUrl": "http://127.0.0.1:7890"
}
}
Wenqu shares the existing ~/.gogoingai/wenqu-skills/ root: non-secret
configuration is config.json, private credentials are credentials.env,
runtime state is in runtime/, and cached data is in cache/.
Image commands
# Check Codex, PicGo, and configured image providers without printing secrets.
wenqu image doctor --json
# Create image defaults and a private provider credentials template.
wenqu image config-init
# Generate one image. Provider can be codex, openai, openrouter, dashscope, or seedream.
wenqu image generate --provider codex --ar 16:9 \
--prompt "一张中文技术架构示意图" --out /tmp/diagram --timeout-sec 300
# `--image` is kept as an alias for `--out`; use a one-off private credentials file when needed.
wenqu image generate --provider openai --prompt "一张技术示意图" \
--image /tmp/diagram --env-file /secure/provider-credentials.env
# Download one versioned Wenqu style reference into the managed cache.
wenqu image fetch-ref mono-marker/mono-marker-03-layered-arch.png
Image-specific non-secret defaults live in ~/.gogoingai/wenqu-skills/image/config.json;
provider credentials live separately in ~/.gogoingai/wenqu-skills/image/credentials.env
with mode 600. --env-file can select another owner-only credentials file;
its entries never override credentials already supplied by the process environment.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file wenqu_cli-0.1.0.tar.gz.
File metadata
- Download URL: wenqu_cli-0.1.0.tar.gz
- Upload date:
- Size: 29.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0d2fc1309a3a0b2afdd14015347c3f31e5cf67a5c7b6158aa89d7684c40b81d2
|
|
| MD5 |
a4cd382d0e44ccb26d6893a78df10991
|
|
| BLAKE2b-256 |
24f499f667f5fd14acbf067ae5e8b774cbe209f621d507f2b5f0564a94198b0b
|
Provenance
The following attestation bundles were made for wenqu_cli-0.1.0.tar.gz:
Publisher:
release.yml on gogoingai/wenqu-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
wenqu_cli-0.1.0.tar.gz -
Subject digest:
0d2fc1309a3a0b2afdd14015347c3f31e5cf67a5c7b6158aa89d7684c40b81d2 - Sigstore transparency entry: 2311541233
- Sigstore integration time:
-
Permalink:
gogoingai/wenqu-cli@a6b84380390d1594a9c4f6e6c6745ad78a12dc19 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/gogoingai
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@a6b84380390d1594a9c4f6e6c6745ad78a12dc19 -
Trigger Event:
push
-
Statement type:
File details
Details for the file wenqu_cli-0.1.0-py3-none-any.whl.
File metadata
- Download URL: wenqu_cli-0.1.0-py3-none-any.whl
- Upload date:
- Size: 26.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8fadc8f75118a9d6a35b788051b9df2fcbf562a06c5e0c138387f3bdc6193b81
|
|
| MD5 |
1b94f53d27ee9134e5224c5b462a644d
|
|
| BLAKE2b-256 |
2f0e27110cca232f244a024a68e9765f8b4a9d009008bf0337d17b161dcecf6e
|
Provenance
The following attestation bundles were made for wenqu_cli-0.1.0-py3-none-any.whl:
Publisher:
release.yml on gogoingai/wenqu-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
wenqu_cli-0.1.0-py3-none-any.whl -
Subject digest:
8fadc8f75118a9d6a35b788051b9df2fcbf562a06c5e0c138387f3bdc6193b81 - Sigstore transparency entry: 2311541261
- Sigstore integration time:
-
Permalink:
gogoingai/wenqu-cli@a6b84380390d1594a9c4f6e6c6745ad78a12dc19 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/gogoingai
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@a6b84380390d1594a9c4f6e6c6745ad78a12dc19 -
Trigger Event:
push
-
Statement type: