Skip to main content

ChaosCypher CLI

Command-line tools for ChaosCypher knowledge graph library.

Installation

From PyPI (recommended)

pipx install chaoscypher-cli

Note: The CLI requires Python 3.14+, so pipx must run on a 3.14 interpreter (pipx install --python python3.14 chaoscypher-cli if 3.14 isn't your default).

pipx installs the CLI in an isolated environment and automatically adds it to your PATH. If you don't have pipx, install it first:

# macOS
brew install pipx

# Linux (Debian/Ubuntu)
sudo apt install pipx

# Windows
scoop install pipx

From source

git clone https://github.com/chaoscypherinc/chaoscypher.git
cd chaoscypher
# Install uv first: https://docs.astral.sh/uv/getting-started/installation/
uv sync --package chaoscypher-cli

Note: On Windows, the chaoscypher command lands in .venv\Scripts\ after uv sync. Run it via uv run chaoscypher from the repo root, or activate the venv (.venv\Scripts\activate) for a bare chaoscypher invocation.

Development install

git clone https://github.com/chaoscypherinc/chaoscypher.git
cd chaoscypher
uv sync --all-packages --extra dev   # full workspace + dev tools

Usage

# Show help
chaoscypher --help

# Create a new database
chaoscypher db create my-graph

# Add source documents
chaoscypher source add documents/

# Add with explicit upload-time options (API parity with POST /sources)
chaoscypher source add paper.pdf \
    --vision \
    --content-filtering \
    --normalize \
    --filtering-mode strict \
    --skip-duplicates

# Export knowledge graph
chaoscypher graph package export --output my-knowledge.ccx

# Import knowledge graph
chaoscypher graph package load my-knowledge.ccx

# Search the graph
chaoscypher source search "artificial intelligence"

Upload-time flags (API parity)

source add exposes the same upload-time choices the API does. Each flag persists on the source row and is preserved across recovery / retry / re-extract.

Flag Default API equivalent
--vision/--no-vision --vision enable_vision
--content-filtering/--no-content-filtering --content-filtering content_filtering
--normalize/--no-normalize (file-type default — on for prose, off for CSV/JSON/XML) enable_normalization
--filtering-mode {maximum,strict,balanced,lenient,minimal,unfiltered} unset (resolves to balanced) filtering_mode
--skip-duplicates off skip_duplicates

Run chaoscypher source add --help for the full flag list.

Features

  • Graph Management: Create, delete, and manage knowledge graphs
  • Data Import: Import documents (PDF, DOCX, TXT, CSV, JSON, audio, archives)
  • Data Export: Export graphs as .ccx packages (CCX — Chaos Cypher eXchange)
  • Search: Full-text and vector search across the knowledge graph
  • Chat: Interactive AI chat with graph-grounded RAG
  • Quality: Run extraction quality scoring and reports
  • Benchmark: Run reproducible extraction benchmarks across models

Development

From the repo root:

# Run tests
uv run pytest packages/cli/tests --import-mode=importlib

# Format code (ruff replaces black; ruff format is the formatter)
uv run ruff format packages/cli
uv run ruff check packages/cli

# Type checking
uv run mypy packages/cli/src

Architecture

The CLI is a thin wrapper around the chaoscypher core library, providing:

  • User-friendly command-line interface using Click
  • Rich terminal output with progress bars and formatting
  • Configuration management via the unified settings.yaml and CHAOSCYPHER_* environment variables (managed with chaoscypher config show/get/set/edit)
  • Batch operations and scripting support

Requirements

  • Python 3.14+
  • chaoscypher-core>=0.1.0

License

AGPL-3.0 License - see LICENSE file for details.

Links

Release files for chaoscypher-cli 0.4.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for chaoscypher-cli 0.4.2
File Size Uploaded
chaoscypher_cli-0.4.2.tar.gz 414.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for chaoscypher-cli 0.4.2
File Interpreter ABI Platform
chaoscypher_cli-0.4.2-py3-none-any.whl Python 3 none any Details

Total release size: 717.5 kB

Release files / chaoscypher_cli-0.4.2.tar.gz

Download URL chaoscypher_cli-0.4.2.tar.gz
Size 414.9 kB
Tags Source
SHA-256 checksum
How to use checksums
1b64f166fbeedc150f4d6c7cc7afb05f48de85933963f01485871bb5a4478e4a
BLAKE2b-256 checksum
How to use checksums
c7dbec1165f7cc10b69b59670b9b67ad7f8ff6fb93d44f7c6d8dcb04cd609708
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.11 {"installer":{"name":"uv","version":"0.12.11","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / chaoscypher_cli-0.4.2-py3-none-any.whl

Download URL chaoscypher_cli-0.4.2-py3-none-any.whl
Size 302.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a813850c264d6b09c04ebab1d5c5c3a4cc987fd0ec24ceb1b5a8553fdf9f2b34
BLAKE2b-256 checksum
How to use checksums
8c76ec1b428a16cacc2d42e7db97ab297a560f8769ee7b660233c26458084d3f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.11 {"installer":{"name":"uv","version":"0.12.11","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release history Release notifications | RSS feed

0.4.3

2 release files

This release

0.4.2 This release

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.1

2 release files

0.1.0

2 release 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