Skip to main content Switch to mobile version worai 6.20.13 AI-powered CLI for WordLift knowledge graph and SEO workflows.
pip install worai==6.20.13 Copy PIP instructions
Command-line toolkit for WordLift operations and SEO checks. Pronunciation: "waw-RYE"
Docs: https://docs.wordlift.io/worai/
One-line installer (macOS/Linux): curl -fsSL https://raw.githubusercontent.com/wordlift/worai-install/main/install-worai.sh | bash
One-line installer (Windows PowerShell): irm https://raw.githubusercontent.com/wordlift/worai-install/main/install-worai.ps1 | iex
The script automatically persists pipx/worai PATH entries in your shell profile when needed.
For immediate use in the current shell: zsh: source ~/.zshrc
Verify script before running (recommended in stricter environments):
macOS/Linux: curl -fsSL -o /tmp/install-worai.sh https://raw.githubusercontent.com/wordlift/worai-install/main/install-worai.sh && less /tmp/install-worai.sh && bash /tmp/install-worai.sh
Windows PowerShell: irm https://raw.githubusercontent.com/wordlift/worai-install/main/install-worai.ps1 -OutFile $env:TEMP\install-worai.ps1; notepad $env:TEMP\install-worai.ps1; & $env:TEMP\install-worai.ps1
Full docs: https://docs.wordlift.io/worai/
wordlift-sdk>=8.6.0,<9.0.0 (installed automatically by pip)
copier (required by worai graph sync create, installed automatically by pip)
If you plan to run seocheck, install Playwright browsers:
playwright install chromium
Optional output format extras:
pip install 'worai[parquet]' — enables --format parquet (Apache Parquet via pyarrow)
pip install 'worai[gsheets]' — enables --format gsheets (write to Google Sheets via gspread)
worai seocheck https://example.com/sitemap.xml
worai google-search-console --site sc-domain:example.com --client-secrets ./client_secrets.json
worai canonicals dedupe --input pages_with_titles.csv --site sc-domain:example.com --service-account ./service-account.json
Config file (TOML) discovery order:
nearest worai.toml from current directory upward (for example ./worai.toml, ../worai.toml, ../../worai.toml)
~/.config/worai/config.toml
[profiles. ] with --profile or WORAI_PROFILE
log_level (global default logging level: debug|info|warning|error)
profiles. .log_level (profile-specific override for root logging level)
profiles._base.log_level (shared profile fallback when selected profile has no log_level)
profiles. .mapping (SDK profile contract)
profiles. .gsc_site_id (GSC property for commands that query Search Console)
profiles. .oauth.client_secrets (OAuth Desktop app client file)
profiles. .oauth.token (shared OAuth token file path)
profiles. .oauth.service_account (service account credential as file path or inline JSON)
profiles. .ga_property_id (preferred GA4 property key for analytics; ga.id remains supported)
profiles. .canonicals.output (supports {profile}, {date}, {seq} interpolation)
profiles. .canonicals.interval
profiles. .canonicals.concurrency
profiles. .canonicals.request_timeout_sec
one source per profile (urls, sitemap_url, or sheets_url + sheets_name + sheets_service_account) for SDK profile validity
postprocessor_runtime (graph sync runtime: oneshot or persistent; profile override supported)
graph_write_strategy (graph sync write mode: patch or put; defaults to patch; profile override supported)
agent.codex_model (Codex WordLift provider model; defaults to gpt-5-5-graph-sync; profile override supported)
ingest.source (auto|urls|sitemap|sheets|local)
ingest.loader (auto|simple|proxy|playwright|premium_scraper|web_scrape_api|passthrough)
ingest.passthrough_when_html (default: true)
ingest.timeout_ms (optional override; SDK default: 30000)
ingest.playwright_wait_until (optional override; SDK default: domcontentloaded)
command-specific OAuth/GSC/GA options should be passed via CLI flags or environment variables.
Supported environment variables:
WORAI_CONFIG — path to a config TOML file (overrides discovery order).
WORAI_PROFILE — profile name under [profiles. ].
WORAI_LOG_LEVEL — default log level (debug|info|warning|error).
WORAI_LOG_FORMAT — default log format (text|json).
WORDLIFT_API_KEY — WordLift API key for entity operations.
GSC_CLIENT_SECRETS — path to OAuth client secrets JSON for GSC.
GSC_ID — GSC property URL.
OAUTH_TOKEN — path to store the shared OAuth token (GSC + GA).
GSC_OUTPUT — default output CSV path for GSC export.
GA_ID — GA4 property ID for Analytics sections.
GSC_TOKEN / GA_TOKEN — legacy aliases for OAUTH_TOKEN (must point to the same file if used).
WORAI_DISABLE_UPDATE_CHECK — set to 1|true|yes|on to disable startup update checks.
worai loads .env from the current working directory (and parent lookup) at startup.
values from .env are treated as environment variables.
existing environment variables take precedence over .env values.
profiles. .log_level in worai.toml (when a profile is selected)
profiles._base.log_level in worai.toml (when a profile is selected and no profile-specific value is set)
global log_level in worai.toml
Selected level configures root logging; dependencies may still emit their own INFO logs when they set explicit logger levels.
For graph sync run, the effective level is forwarded to morph-kgc as logging_level (DEBUG|INFO|WARNING|ERROR|CRITICAL).
Example environment setup:
export WORDLIFT_API_KEY="wl_..." export WORAI_CONFIG="~/worai.toml" export WORAI_PROFILE="dev" export GSC_CLIENT_SECRETS="~/client_secrets.json" export OAUTH_TOKEN="~/oauth_token.json" Example worai.toml:
[profiles.default] api_key = "${WORDLIFT_API_KEY}" mapping = "default.yarrrml" sitemap_url = "https://example.com/sitemap.xml" ingest_loader = "web_scrape_api" Ingestion profile examples:
[profiles.inventory_local] api_key = "${WORDLIFT_API_KEY}" mapping = "default.yarrrml" urls = ["https://example.com/page"] ingest_source = "local" ingest_loader = "passthrough" [profiles.inventory_remote] api_key = "${WORDLIFT_API_KEY}" mapping = "default.yarrrml" sitemap_url = "https://example.com/sitemap.xml" ingest_source = "sitemap" ingest_loader = "web_scrape_api" [profiles.graph_sync_proxy] api_key = "${WORDLIFT_API_KEY}" mapping = "default.yarrrml" urls = ["https://example.com/a", "https://example.com/b"] ingest_source = "urls" ingest_loader = "proxy" ingest_timeout_ms = 30000 playwright_wait_until = "domcontentloaded" Commands
seocheck — run SEO checks for sitemap URLs and URL lists.
google-search-console — export GSC page metrics (7d/28d/3m) in table, JSON, CSV, TSV, Parquet, or Google Sheets format.
canonicals dedupe — dedupe canonical URLs by title using GSC impressions.
dedupe — deduplicate WordLift entities by schema:url.
entity-matrix — build a URL × entity-type pivot table from a graph file.
canonicalize-duplicate-pages — select canonical URLs using GSC KPIs.
delete-entities-from-csv — delete entities listed in a CSV.
find-faq-page-wrong-type — find and patch FAQPage typing issues.
find-missing-names — find entities missing schema:name/headline.
find-url-by-type — list schema:url values by type from RDF.
graph — run graph-specific workflows (sync, create, export, validate, property delete, audit, KPI snapshots, reset).
list-entities-outside-dataset — list entity IRIs that fall outside the account dataset.
link-groups — build or apply LinkGroup data from CSV.
patch — patch entities from RDF.
structured-data — generate JSON-LD/YARRRML mappings or materialize RDF from YARRRML.
agent — launch codex/claude/gemini with worai MCP + skill guidance.
web-pages — run ingestion-backed web page workflows.
validate — deprecated JSON-LD validator command (use graph validate for RDF files/URLs; use structured-data validate page for webpage URLs).
self update — check for new worai versions and optionally run the upgrade command.
upload-entities-from-turtle — upload .ttl files with resume.
dil-import - upload DILs from a CSV file.
worai --install-completion
worai checks for new versions periodically and prints a non-blocking notice when an update is available.
run worai self update to check manually and see/apply the suggested upgrade command.
seoreport (with Analytics)
worai seoreport --site sc-domain:example.com --ga-id 123456789 --format html
canonicalize-duplicate-pages
worai canonicalize-duplicate-pages --input gsc_pages.csv --output canonical_targets.csv --kpi-window 28d --kpi-metric clicks
worai entity-matrix graph.ttl
worai entity-matrix graph.ttl --exclude-type WebPage --exclude-type BreadcrumbList --format csv --output matrix.csv
worai entity-matrix graph.ttl --cluster --format tsv
worai find-faq-page-wrong-type ./data.ttl --dry-run --replace-type
worai find-missing-names ./data.ttl
worai find-url-by-type ./data.ttl schema:Service schema:Product
worai link-groups ./links.csv --format turtle
worai link-groups ./links.csv --apply --dry-run --concurrency 4
worai --config ./worai.toml --profile acme graph sync run
worai --profile acme graph sync run --debug
worai graph sync create ./acme-graph
worai graph sync create ./acme-graph --template ./graph-sync-template --defaults
worai graph sync create ./acme-graph --data-file ./answers.yml --non-interactive
worai graph sync create ./acme-graph --vcs-ref v1.2.3
worai --profile acme graph export
worai --profile acme graph export ./acme-export.jsonld
worai graph export ./acme-export.ttl --validate
worai graph validate ./graph.ttl ./graph.jsonld --builtin-shape google-required --level warning --format text
worai graph property delete seovoc:html --dry-run
worai graph property delete https://w3id.org/seovoc/html --yes --workers 4
worai graph audit ./acme-export.ttl
worai graph audit ./acme-export.ttl --format json --show-url-violations
worai graph audit ./acme-export.ttl --rich-snippets-granularity entities --issue-level error
worai --profile acme graph kpis calculate ./acme-export.ttl --website-host www.example.com --output graph-kpis.json
worai --profile acme graph kpis push ./acme-export.ttl --snapshot-date 2026-06-29 --memory-mode auto --rdf-error-policy repair-iris --output graph-kpi-payload.json --details-output graph-kpis.json
worai --profile acme graph reset --yes
worai --profile acme graph reset --keep-country --keep-language graph export reads API key from worai.toml profile (root --profile, then WORAI_PROFILE, then default) and calls /dataset/export.
graph export output format is inferred from extension: .ttl, .nt, .nq, .rdf/.xml, .jsonld/.json.
graph export default filename: export_ _ _ .ttl (sequence starts at 1).
graph export --validate runs SHACL validation on the exported file and fails on SHACL errors/warnings.
graph validate accepts one or more local files or URLs and supports shape composition with: --builtin-shape
graph validate --level warning|error controls failure threshold; --format text|json controls output.
graph property delete sends X-include-Private: true by default for both GraphQL match discovery and entity PATCH requests.
graph kpis calculate computes graph health metrics and URL-rooted SHACL compliance from a local RDF export.
graph kpis push uploads an idempotent dated KPI snapshot to the WordLift API using the selected profile API key and derives website URL scope from the account URL.
graph kpis --memory-mode auto uses full calculation for smaller files and streaming partial KPIs for large N-Triples, Turtle, and RDF/XML exports.
graph kpis --rdf-error-policy repair-iris repairs invalid percent escapes inside Turtle IRI tokens before temporary N-Triples conversion; the default fail keeps strict parsing.
graph sync create runs Copier in trusted mode by default so template _tasks execute.
graph sync run profile resolution is: root --profile, then WORAI_PROFILE, then default.
Mapping docs (for [profiles. ]): docs/graph-sync-mappings-reference.md, docs/graph-sync-mappings-guide.md, docs/graph-sync-mappings-examples.md
Internal template-agent workflow docs: specs/graph-sync/AGENTS.md, specs/graph-sync/INDEX.md, specs/graph-sync/developer-agent-workflow.md
Profile loading standard for non-sync commands: specs/profile-loading-standard.md
Configure exactly one source mode per run: urls, sitemap_url (+ optional pattern), or sheets_url + sheets_name.
With wordlift-sdk>=6.10.0, Playwright-backed ingestion defaults are owned by the SDK: INGEST_TIMEOUT_MS=30000 and PLAYWRIGHT_WAIT_UNTIL="domcontentloaded".
web_page_import_timeout remains supported for graph sync as a legacy seconds-based alias.
SDK 6 defaults to persistent postprocessor runtime.
set postprocessor_runtime = "oneshot" in worai.toml to keep old one-process-per-callback behavior.
SDK wordlift-sdk 5.1.1+ postprocessor context migration: context.settings -> context.profile (for example context.profile["settings"]["api_url"])
context.account.key -> context.account_key
context.account remains the clean /me account object
SDK 6 ingestion uses explicit keys: INGEST_SOURCE (urls|sitemap|sheets|local|auto)
INGEST_LOADER (web_scrape_api|proxy|premium_scraper|playwright|simple|passthrough|auto)
INGEST_TIMEOUT_MS (milliseconds)
PLAYWRIGHT_WAIT_UNTIL (domcontentloaded|load|networkidle) when explicitly configured
SDK 6 migration deprecates integration use of WEB_PAGE_IMPORT_MODE and WEB_PAGE_IMPORT_TIMEOUT.
graph sync run uses run_cloud_workflow and emits per-graph progress and final KPI summaries through CLI logs (on_info, on_progress, on_kpi).
graph sync run --debug writes SDK callback artifacts under output/debug_cloud/ / from the current working directory: static_templates.ttl
cloud_ .ttl for each callback URL.
SHACL validation settings mapping for SDK 6.2+: use shacl_validate_mode = "warn"|"fail"|"off"
use shacl_builtin_shapes, shacl_exclude_builtin_shapes, shacl_extra_shapes
shacl_validate_sync and shacl_shape_specs are no longer supported
worai patch ./data.ttl --dry-run --add-types
worai structured-data create https://example.com/article Review --output-dir ./structured-data
worai structured-data generate https://example.com/sitemap.xml --yarrrml ./mapping.yarrrml --output-dir ./out
worai structured-data inventory https://example.com/sitemap.xml --output ./structured-data-inventory.csv
worai structured-data inventory ./urls.txt --output ./structured-data-inventory.csv
worai structured-data inventory /path/to/debug_cloud/us --source-type debug-cloud --output ./structured-data-inventory.csv
worai agent --agent-cli codex
worai agent --agent-cli codex --codex-use-user-config
worai agent --agent-cli codex -- --yolo --search
worai agent --agent-cli claude --profile acme
worai agent --agent-cli gemini --config ./worai.toml --profile acme
worai agent mcp serve --profile acme profile resolution for worai agent: --profile, then root --profile, then WORAI_PROFILE, then default.
default worai agent --agent-cli codex injects runtime model/provider config for WordLift (agent.codex_model, default gpt-5-5-graph-sync) and uses the selected profile api_key as X-API-Key.
in default codex mode, default fallback emits a warning and errors if profiles.default is missing in the resolved config.
--codex-use-user-config keeps MCP wiring but skips forced WordLift provider/model injection and uses existing user Codex auth/config.
when codex executable is unavailable during MCP server discovery, launcher falls back safely without crashing.
--dry-run redacts injected X-API-Key in printed launch command output.
worai web-pages classify-types https://example.com/sitemap.xml --ingest-source sitemap --ingest-loader playwright --url-regex "/blog/" --output ./types.csv
worai web-pages classify-types ./urls.txt --ingest-source urls --output ./types.csv
worai graph validate ./data.jsonld --builtin-shape review-snippet --shape ./custom.ttl --level warning --format json
worai validate jsonld --shape review-snippet --shape schema-review ./data.jsonld
worai validate jsonld --format raw https://api.wordlift.io/data/example.jsonld
worai structured-data validate page https://example.com/article --shape review-snippet
worai self update --check-only
upload-entities-from-turtle
worai upload-entities-from-turtle ./entities --recursive --limit 50
list-entities-outside-dataset
worai list-entities-outside-dataset
worai --profile acme list-entities-outside-dataset
Playwright missing browsers: playwright install chromium
YARRRML conversion: npm install -g @rmlio/yarrrml-parser
RML execution: morph-kgc is included in project dependencies
Dependency notes: Common runtime libs (e.g., requests, rdflib, tqdm, advertools, Google auth helpers) are provided transitively by wordlift-sdk.
--format parquet requires pip install 'worai[parquet]' (pyarrow>=14).
--format gsheets requires pip install 'worai[gsheets]' (gspread>=6).
OAuth token issues: Remove the token file and re-run worai google-search-console or worai canonicals dedupe.
If you are prompted to re-auth every run, delete the token file to force a new consent flow that includes a refresh token.
Both files in this release have provenance metadata.
Release files for worai 6.20.13
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
Built distribution (wheel)
Total release size: 408.3 kB
Release files / worai-6.20.13.tar.gz
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.
Release files / worai-6.20.13-py3-none-any.whl
Security for worai 6.20.13
Both files in this release have been uploaded with provenance metadata.
With provenance worai-6.20.13.tar.gz Oct 27, 2026
With provenance worai-6.20.13-py3-none-any.whl Oct 27, 2026
Attestation for worai-6.20.13.tar.gz
Attestation for worai-6.20.13-py3-none-any.whl
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.
Release history Release notifications | RSS feed
Nov 4, 2026 2 release files Full provenance
Oct 29, 2026 2 release files Full provenance
Oct 28, 2026 2 release files Full provenance
Oct 27, 2026 2 release files Full provenance
Aug 19, 2026 2 release files Full provenance
Aug 6, 2026 2 release files Full provenance
Jul 13, 2026 2 release files Full provenance
Jul 6, 2026 2 release files Full provenance
Jul 3, 2026 2 release files Full provenance
Jun 29, 2026 2 release files Full provenance
Jun 26, 2026 2 release files Full provenance
Jun 3, 2026 2 release files Full provenance
May 29, 2026 2 release files Full provenance
May 28, 2026 2 release files Full provenance
May 27, 2026 2 release files Full provenance
May 19, 2026 2 release files Full provenance
May 7, 2026 2 release files Full provenance
Apr 17, 2026 2 release files Full provenance
Apr 13, 2026 2 release files Full provenance
Apr 11, 2026 2 release files Full provenance
Apr 10, 2026 2 release files Full provenance
Apr 8, 2026 2 release files Full provenance
Mar 26, 2026 2 release files Full provenance
Mar 25, 2026 2 release files Full provenance
Mar 23, 2026 2 release files Full provenance
Mar 13, 2026 2 release files Full provenance
Mar 12, 2026 2 release files Full provenance
Mar 11, 2026 2 release files Full provenance
Mar 10, 2026 2 release files Full provenance
Mar 9, 2026 2 release files Full provenance
Mar 6, 2026 2 release files Full provenance
Mar 5, 2026 2 release files Full provenance
Mar 4, 2026 2 release files Full provenance
Mar 1, 2026 2 release files Full provenance
Feb 27, 2026 2 release files Full provenance
Feb 26, 2026 2 release files Full provenance
Feb 26, 2026 1 release file Full provenance
Feb 25, 2026 2 release files Full provenance
Feb 24, 2026 2 release files Full provenance
Feb 23, 2026 2 release files Full provenance
Feb 22, 2026 2 release files Full provenance
Feb 20, 2026 2 release files Full provenance
Feb 19, 2026 2 release files Full provenance
Feb 18, 2026 2 release files Full provenance
Feb 17, 2026 2 release files Full provenance
Feb 16, 2026 2 release files Full provenance
Feb 14, 2026 2 release files Full provenance
Feb 13, 2026 2 release files Full provenance
Feb 5, 2026 2 release files Full provenance
Feb 4, 2026 2 release files Full provenance
Feb 3, 2026 2 release files Full provenance
Feb 2, 2026 2 release files Full provenance
Feb 1, 2026 2 release files Full provenance
Jan 30, 2026 2 release files Full provenance
Jan 15, 2026 2 release files Full provenance
Jan 14, 2026 2 release files Full provenance
Jan 13, 2026 2 release files Full provenance
Jan 12, 2026 2 release files Full provenance
"PyPI", "Python Package Index", and the blocks logos are registered trademarks of the Python Software Foundation.
© 2026 Python Software Foundation




