Skip to main content

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

wenqu_cli-0.1.0.tar.gz (29.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wenqu_cli-0.1.0-py3-none-any.whl (26.4 kB view details)

Uploaded Python 3

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

Hashes for wenqu_cli-0.1.0.tar.gz
Algorithm Hash digest
SHA256 0d2fc1309a3a0b2afdd14015347c3f31e5cf67a5c7b6158aa89d7684c40b81d2
MD5 a4cd382d0e44ccb26d6893a78df10991
BLAKE2b-256 24f499f667f5fd14acbf067ae5e8b774cbe209f621d507f2b5f0564a94198b0b

See more details on using hashes here.

Provenance

The following attestation bundles were made for wenqu_cli-0.1.0.tar.gz:

Publisher: release.yml on gogoingai/wenqu-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for wenqu_cli-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8fadc8f75118a9d6a35b788051b9df2fcbf562a06c5e0c138387f3bdc6193b81
MD5 1b94f53d27ee9134e5224c5b462a644d
BLAKE2b-256 2f0e27110cca232f244a024a68e9765f8b4a9d009008bf0337d17b161dcecf6e

See more details on using hashes here.

Provenance

The following attestation bundles were made for wenqu_cli-0.1.0-py3-none-any.whl:

Publisher: release.yml on gogoingai/wenqu-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page