Skip to content

About

HydraDB CLI — Agent-friendly command line interface for HydraDB memory, recall, and ingestion

Resources

Code of conduct

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

HydraDB CLI

Command-line interface for HydraDB — manage memories, recall knowledge, and run ingestion directly from the terminal.


Table of Contents


Prerequisites

Requirement Details
Python 3.10 or higher
pipx (recommended) Optional. The curl installer uses it when it is on your PATH
HydraDB API Key Obtain from your HydraDB dashboard
Database Required for most API operations
Network access Must be able to reach https://api.hydradb.com (or your custom base URL)

The CLI installs four runtime dependencies automatically: typer, httpx, rich, and hydradb-sdk.


Installation

Using curl

curl -fsSL https://cli.hydradb.com/install | bash

This downloads the wheel for the latest GitHub release and installs it. Runtime dependencies still resolve from PyPI. The installer needs Python 3.10 or higher.

Run the installer as your user. Do not use sudo: the installer stops when it runs as root. To install for root on purpose (for example, in a container or a CI job), set the variable for bash, not for curl:

curl -fsSL https://cli.hydradb.com/install | HYDRADB_CLI_ALLOW_ROOT=1 bash

In a Dockerfile, set the variable with ENV. Also add the bin directory to PATH, because a RUN line does not read ~/.bashrc:

ENV HYDRADB_CLI_ALLOW_ROOT=1
RUN bash -o pipefail -c 'curl -fsSL https://cli.hydradb.com/install | bash'
ENV PATH="/root/.local/bin:$PATH"

The installer uses the first method that works:

  1. pipx, if pipx is on your PATH.
  2. A private virtual environment in ~/.local/share/hydradb-cli/venv ($XDG_DATA_HOME/hydradb-cli/venv if you set XDG_DATA_HOME), with a link to hydradb in ~/.local/bin. Python must have the venv module and either ensurepip or pip 22.3 or higher.
  3. pip install --user, only if your Python allows it. Debian 12, Ubuntu 24.04 and Homebrew mark their Python as "externally managed" (PEP 668), so pip refuses --user there.
  4. If no method works, the installer stops and tells you what to install.

On a stock Ubuntu 24.04 or Debian 12 desktop, Python has no pip and no ensurepip, so the installer stops. Install one of these packages first, then run the installer again:

sudo apt install python3-venv   # the smaller package
# or
sudo apt install pipx

When you run the installer again, it upgrades the existing install with the same method. If ~/.local/bin/hydradb exists and the installer did not make it, the installer does not change it. Remove that file, or set HYDRADB_CLI_FORCE=1 to replace it. If that file is an older hydradb-cli that pip install --user made, the installer shows the command that removes it.

At the end, the installer runs the new hydradb --version. If the version is not the one it installed, it stops with an error.

macOS

The python3 from Apple is Python 3.9, which is too old. Install a newer Python (or pipx) with Homebrew, then run the installer:

brew install [email protected]   # or: brew install pipx
curl -fsSL https://cli.hydradb.com/install | bash

zsh is the default shell on macOS, and ~/.local/bin is not on your PATH. Add it:

echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.zshrc
source ~/.zshrc

Linux PATH

If your shell cannot find hydradb, add ~/.local/bin to your PATH (bash):

echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc

On Debian and Ubuntu, ~/.profile adds ~/.local/bin when it exists, so a new login shell also finds hydradb. If the installer names a different directory (the pipx or pip --user bin directory), use that directory instead.

Install a specific version

Set the variable for bash, not for curl. A leading v is accepted (0.2.0 or v0.2.0):

curl -fsSL https://cli.hydradb.com/install | HYDRADB_CLI_VERSION=0.2.0 bash

Force reinstall:

curl -fsSL https://cli.hydradb.com/install | HYDRADB_CLI_FORCE=1 bash

From a GitHub release

pipx install https://github.com/hydra-db/hydradb-cli/releases/download/v0.2.0/hydradb_cli-0.2.0-py3-none-any.whl

Note: PyPI releases are paused. pip install hydradb-cli still resolves the older 0.1.0, so use the curl installer or the release wheel above to get the current version.

From source

git clone https://github.com/hydra-db/hydradb-cli.git
cd hydradb-cli
pip install .

For development (editable install so local changes take effect immediately):

pip install -e ".[dev]"

Verify the installation

hydradb --version
# /// hydradb-cli 0.2.0

If your shell cannot find hydradb, see Linux PATH or macOS.

Uninstall

Use the command for the method that the installer used. The installer prints the method in the line Installed successfully with <method>. These commands remove only what the installer made.

# pipx
pipx uninstall hydradb-cli

# venv: remove the link and the venv only if the installer made them
d="${XDG_DATA_HOME:-$HOME/.local/share}/hydradb-cli"
[ "$(readlink ~/.local/bin/hydradb)" = "$d/venv/bin/hydradb" ] && rm ~/.local/bin/hydradb
[ -f "$d/venv/.installed-by-hydradb-cli-installer" ] && rm -rf -- "$d/venv"
rmdir -- "$d" 2>/dev/null   # only when it is empty

# pip-user: use the same Python as the installer (the "Using Python X.Y.Z" line)
python3 -m pip uninstall hydradb-cli

The venv lines use XDG_DATA_HOME when you set it. They delete the venv only when the installer's marker file is in it, and they keep other files in the hydradb-cli directory. pipx and pip-user do not use that directory. If you set HYDRADB_CLI_BIN_DIR, use that directory in place of ~/.local/bin in the readlink and rm lines. For pip-user, if the installer used Python 3.12 and python3 is another version, run python3.12 -m pip uninstall hydradb-cli.

Optional: pip keeps a download cache in ~/.cache/pip (~/Library/Caches/pip on macOS), and pipx keeps shared files in its shared directory (pipx environment shows it as PIPX_SHARED_LIBS). Other tools use them too, so the uninstall does not remove them.

The CLI keeps its config and API key in ~/.hydradb/. The uninstall does not remove it. Run hydradb logout before you uninstall, or remove ~/.hydradb/ yourself.


Authentication

Before using any data commands you need to provide your API key and database. There are two ways to do this:

Option A — hydradb login (persistent)

Credentials are saved to ~/.hydradb/config.json (file permissions set to 0600).

# Interactive — prompts for the API key
hydradb login --database YOUR_DATABASE

# Non-interactive
hydradb login --api-key YOUR_API_KEY --database YOUR_DATABASE

# Optionally set a collection and a custom API base URL
hydradb login --api-key YOUR_API_KEY --database YOUR_DATABASE \
              --collection YOUR_COLLECTION \
              --base-url https://custom.api.endpoint

Option B — Environment variables (session-only)

export HYDRADB_API_KEY=your_api_key
export HYDRADB_DATABASE=your_database

The CLI's older HYDRA_DB_* names still work as deprecated aliases and print a one-line warning naming the canonical HYDRADB_* replacement.

Environment variables take precedence over the config file when both are set.

Verify your session

hydradb doctor

Displays your resolved API key (masked), database, collection and base URL, whether each value came from the config file or an environment variable, and whether the API is reachable.

Log out

hydradb logout

Deletes ~/.hydradb/config.json.


Configuration

The CLI reads settings from two sources (env vars override the file):

Source Location
Config file ~/.hydradb/config.json
Environment See Environment Variables

You can view or update the config file through the CLI:

# Show current configuration
hydradb config show

# Set a single value
hydradb config set <key> <value>

Valid keys: api_key, database, collection, base_url (the old tenant_id / sub_tenant_id keys still work as deprecated aliases).


Commands

Global Options

--version goes before the subcommand. --output / -o can go before or after it (hydradb -o json list and hydradb list -o json are the same):

Flag Description
--version / -v Print the CLI version and exit
--output / -o Output format: human (default) or json

Every command supports JSON output, which is useful for scripting and piping:

hydradb -o json list --kind memory
hydradb -o json query "pricing" --kind knowledge | jq '.chunks[0].chunk_content'

The --output json shape is a stable, documented contract — the wrapper unwraps the SDK response envelope back to the same plain-dict shape, so jq pipelines keep working across SDK updates.

Errors always go to stderr, in JSON mode too ({"success": false, "error": "..."}), so stdout only carries a result. A failed command exits non-zero.


Scope options

Every command that reads or writes data accepts these. Both fall back to your saved config, so you can omit them once hydradb login has run.

Flag Description
--database / -d Database to operate on
--collection Collection (partition) within the database

query

Retrieve knowledge or memories — the single entry point for search.

Option Description
--kind Corpus to search: memory or knowledge. Omit to search both
--operator Keyword operator: or, and, phrase
--max-results / -n Maximum results, 1–50 (default 10)
--mode / -m Retrieval mode: fast or thinking
--alpha Hybrid search weight (0.0 keyword → 1.0 semantic)
--recency-bias Preference for newer content (0.0–1.0)
--graph-context / --no-graph-context Include knowledge graph relations
--context Additional context to guide retrieval
--title Exact document title to search inside; repeat the flag for multiple titles
hydradb query "What did the team say about pricing?"
hydradb query "contract terms" --kind knowledge --mode thinking --max-results 20
hydradb query "What does the user prefer?" --kind memory
hydradb query "pricing AND enterprise" --operator and
hydradb query "Who owns the rollout?" --title "Q3 Roadmap.md" --title "Smith, John"

Every query prints a request_id. That is the only key feedback correlates on, so keep it if you intend to rate the answer:

hydradb --output json query "contract terms" | jq -r .request_id

feedback

Report whether a query's results were actually useful. It correlates on the request_id that query printed — nothing else about the original query is re-sent.

Flag Meaning
--feedback / -f What was right or wrong about the results
--rating Overall verdict: positive, negative, neutral
--ground-truth-answer The answer the query should have produced
--ground-truth-source-id A source id that should have been retrieved (repeatable)
--source Who is reporting: user (default), or agent for scripted runs

Ground truth is worth far more than prose: it is machine-checkable, so it can be scored automatically rather than read by a person.

hydradb feedback 8f1c0e8a-... --rating positive
hydradb feedback 8f1c0e8a-... -f "returned the 2023 policy, not the current one" --rating negative
hydradb feedback 8f1c0e8a-... \
  --ground-truth-answer "Net 30, per the 2026 MSA" \
  --ground-truth-source-id src_abc --ground-truth-source-id src_def

A submission needs at least one of --feedback, --ground-truth-answer or --ground-truth-source-id; an empty one is refused locally rather than after a round trip.


ingest

Store a memory, knowledge text, or knowledge file(s). Defaults to --kind memory; file arguments are always knowledge sources.

Option Description
--kind memory (default) or knowledge
--text / -t Text to ingest. Use - to read from stdin
--title Optional title
--source-id Client-assigned source identifier
--user-name User name (memory only)
--infer / --no-infer Extract insights and build the knowledge graph (default on)
--markdown Treat text as markdown (memory only)
--upsert / --no-upsert Update existing items with the same source_id (default on)
--root Files only. Directory that file paths are taken relative to (default: the current directory)
--acl Principal allowed to see the item, repeatable. Knowledge text only. Omit to leave the item unrestricted
hydradb ingest --text "User prefers dark mode and weekly email summaries"
hydradb ingest --text "Raw meeting notes..." --no-infer --title "Meeting Notes"
hydradb ingest --kind knowledge --text "Q4 pricing: Starter $29, Pro $79" --title "Pricing"
hydradb ingest --kind knowledge --text "Board notes" --acl [email protected] --acl 'group:google:[email protected]'
hydradb ingest ./contract.pdf ./notes.docx
echo "piped note" | hydradb ingest

--text, --title, --source-id, --user-name, --markdown and --no-infer do not apply to file ingest and are rejected rather than silently ignored.

A file's id comes from its path relative to --root, not from its content. Ingest an edited docs/notes.md again and it replaces the earlier version (with --no-upsert the API refuses it). The relative path is stored as the item's additional_metadata.path. The id does not include the root, so the same checkout gets the same ids on a laptop and in CI. Two projects that share a collection should use different collections (or one --root above both), or a README.md from one replaces the other's. The output has one row per file: its path, its id, and whether it is new or updated. A file that cannot be read is skipped with a reason, and the other files are still uploaded. The command exits 1 when any file was skipped or failed.

The content type is guessed from the extension. A file with no known extension (Dockerfile, LICENSE) is sent as text/plain when it is UTF-8 text.

The API takes an access list at ingest only for knowledge text. --acl with a memory or a file is rejected: ingest it, then set its access list with hydradb update <id> --acl ....


update

Changes who can see an item, or merges into its additional metadata. The change is sent once.

Option Description
--acl Principal allowed to see the item, repeatable. Replaces the whole access list
--private Makes the item visible to no principal
--public Makes the item visible to every caller
--additional-metadata JSON object merged into the item's additional metadata
--collection Collection that holds the item. Found for you when it is the default collection
hydradb update source_abc123 --acl [email protected] --acl 'group:google:[email protected]'
hydradb update source_abc123 --private
hydradb update source_abc123 --public
hydradb update source_abc123 --additional-metadata '{"team": "atlas"}'
hydradb update mem_abc123 --acl [email protected] --collection support

--acl sends the complete list, so to add a third principal you pass all three. Pass only one of --acl, --private and --public. An item outside the default collection needs --collection. query, list, inspect, relations and subgraph take the same --acl to answer as those principals.


list / inspect / relations / subgraph / verify

Browse and read back what you have stored.

Command What it does Key options
list Lists ingested sources and memories --kind, --page, --page-size
inspect <id> Fetches a source's content or a presigned download URL --mode (content, url, both)
relations <id> Knowledge graph triplets linked to a source --kind, --limit
subgraph <id> Everything connected to one item — its thread, replies, parents, children, links — traversed breadth-first --kind, --depth, --max-sources
verify <ids...> Checks indexing progress of uploaded sources —
hydradb list
hydradb list --kind knowledge --page-size 10
hydradb inspect source_abc123
hydradb inspect source_abc123 --mode url
hydradb relations source_abc123
hydradb subgraph source_abc123
hydradb subgraph source_abc123 --depth 2 --max-sources 50
hydradb --output json subgraph source_abc123 | jq '.sources[].source_id'
hydradb verify source_abc123

delete

Removes memories or knowledge sources by ID. Defaults to --kind knowledge, and prompts for confirmation unless --yes is passed.

hydradb delete source_abc123 --yes
hydradb delete mem_abc123 --kind memory --yes
hydradb delete source_abc123 source_def456 --yes

Deleting an ID that does not exist exits non-zero rather than reporting success.


database

Create and manage databases.

Command What it does Key options
database create <database> Provisions a new database —
database list Lists all databases for the authenticated user —
database collections [database] Lists collections within a database —
database stats [database] Row-count statistics —
database readiness [database] Whether the database is ready for ingestion. Exits 0 when ready, 3 when not --wait, --timeout (seconds, default 300)
database monitor [database] Merged stats + readiness —
database delete <database> Permanently deletes a database. Asks for confirmation --yes / -y
hydradb database create my-new-database
hydradb database readiness my-new-database --wait --timeout 120 && hydradb ingest ./notes.md --database my-new-database
hydradb database collections
hydradb database delete old-database --yes

graph (Cypher / BYOG)

Cypher over graph collections you own end to end — HydraDB's graph database offering (docs).

This is a separate store from memories and knowledge, and nothing crosses between them: hydradb query cannot see graph data, and hydradb graph query cannot see memories. Each collection is an independent graph; a query sees exactly one and never another's data.

Command What it does Key options
graph query <cypher> Runs Cypher against one collection --param k=v, --params-json, --database, --collection
graph collections Lists the graphs in a graph database --database
graph load <file.json> Chunked, re-runnable bulk import of nodes --label, --key, --chunk
graph database create <name> Creates a graph database (ready immediately) —
graph database delete <name> Drops a database and every collection in it --yes / -y
graph collection delete <name> Drops one collection and its data --database, --yes / -y
# Write: an edge between two nodes with integer ids
hydradb graph query "MERGE (a:Person {id: 1})-[:KNOWS]->(b:Person {id: 2})"

# Read
hydradb graph query "MATCH (p:Person) RETURN p.name AS name ORDER BY name"

# Parameters — always prefer these over string-building
hydradb graph query "MATCH (p:Person {name: \$n})-[:KNOWS*1..3]->(f:Person) RETURN DISTINCT f.name AS name" \
  --param n=Alice

# Bulk import: the --key value becomes the node id. Use whole numbers.
hydradb graph load people.json --label Person --key ext_id

# JSON out — the rows verbatim, so jq works directly
hydradb graph query "MATCH (p:Person) RETURN p.name AS name" --output json | jq '.[].name'

A collection is created by its first write, so there is no create-collection command.

Supported Cypher. HydraDB is moving graph collections to an engine that supports the subset of openCypher below. The server refuses other queries with a 400 error before it changes anything. A deployment that has not moved yet runs the previous engine. It accepts more Cypher and string ids, and refuses EXISTS { ... }, and the ends of a CREATE or MERGE edge pattern become new nodes there rather than matching existing ids. graph load works on both.

Writes:

  • Every node has an integer id property. String ids are refused.
  • Create one node with CREATE (:Person {id: 5, name: 'Ada'}). A MERGE of one node is refused: upsert nodes with the batch shape below.
  • Create or merge edges as one-hop patterns: CREATE (:Person {id: 1})-[:KNOWS]->(:Person {id: 2}) or MERGE (a:Person {id: 1})-[:KNOWS]->(b:Person {id: 2}).
  • Upsert nodes in a batch. Use exactly one label, and set it with SET: UNWIND $rows AS row MERGE (n {id: row.id}) SET n:Person, n.name = row.name.
  • Create edges in a batch, with no labels or properties in the pattern: UNWIND $edges AS e CREATE (a {id: e.src})-[:KNOWS]->(b {id: e.dst}). A re-run of the same batch does not add edges. A single CREATE of an edge adds a new edge each time it runs.
  • Update by id: MATCH (n:Person {id: 1}) SET n.age = 31.
  • Delete: MATCH (n:Person) DETACH DELETE n, DELETE r on a typed relationship, or many nodes with UNWIND $rows AS row MATCH (n {id: row.id}) DETACH DELETE n and {"rows": [{"id": 4}]}.
  • An edge to an id that does not exist creates a node with that id and no label. Load nodes before their edges.
  • If you write an existing id with a second label, the node gets both labels.
  • Refused: a node without an integer id (CREATE (:Person {name: 'a'})), CREATE ... RETURN ..., MATCH (a), (b) CREATE (a)-[:R]->(b), SET n = $map, SET n += row.props, two labels in one upsert (SET n:A:B), FOREACH, writes inside CALL { ... }, and UNWIND $ids AS id MATCH (n {id: id}) ... (send row maps instead).

Reads:

  • Supported: MATCH with labels and properties, typed traversal (also bounded variable-length, -[:KNOWS*1..3]->), WHERE (also IN), OPTIONAL MATCH, WITH, ORDER BY / SKIP / LIMIT, count / sum / avg / collect / min / max, CASE, EXISTS { ... }, string functions, type(), id(), labels(), keys(), properties(), parameters, map and list literals, and read-only CALL { ... } subqueries.
  • Refused: nodes(), relationships(), startNode(), endNode(), shortestPath, and untyped relationship patterns such as (a)--(b) or ()-[r]->().
  • A read that starts with UNWIND unwinds a list of plain values, not maps, such as UNWIND $ids AS i MATCH (p:Person {id: i}) RETURN p.name AS name.

There is no schema command. Ask the graph what it holds: MATCH (n) UNWIND labels(n) AS l RETURN l, count(*) AS c ORDER BY l.

Deletes. A collection leaves the list when its delete succeeds. A very large collection can need a retry: the command fails, and the next run continues where it stopped. The storage is retained. Do not write to a collection while you delete it: a write at the same time can survive the delete.

The CLI does not inspect your Cypher. There is no --read-only flag and no local pre-rejection of unsupported constructs. Your query is sent verbatim and the server rules on it.

The request cap and the graph load rules are checked locally: the label, the key and every property name must be identifiers, every row must have a --key value that is not null, and no value may be an object, a NaN or infinity, or an integer outside the 64-bit range. A row whose id field differs from --key gets a warning: the node id is the --key value. A --key value that is not a non-negative integer is sent: the previous engine stores it, and the newer engine refuses the load with a hint that it needs whole-number ids.

Requests are capped at 256 KiB (enforced locally, before upload) and large result sets are truncated server-side — paginate with ORDER BY ... SKIP $offset LIMIT $limit.

connectors

Managed integrations that sync external sources — Slack, GitHub, Notion, Jira, Google Drive, Gmail, HubSpot and many more — into a HydraDB database. Once synced, the data is reachable through the ordinary hydradb query.

The lifecycle is create → discover → configure → sync.

Command What it does Key options
connectors providers [provider] Lists the provider catalogue, or one provider's credential schema and filterable fields --category, --supported/--all
connectors list Lists connectors with their sync state --provider
connectors get <id> Shows one connector —
connectors status <id> Sync health: last run, cycles, documents dispatched —
connectors create Creates a connector --provider, --name, --scope, --credentials-stdin, --sync-interval
connectors discover <id> Lists resources the provider offers --limit, --cursor
connectors configure <id> Activates resources and sets sync options --resource / -r, --resources-json, --lookback-days
connectors resources <id> Lists configured resources and their fetch health —
connectors resource add/remove Manages one resource row --type, --collection, --yes
connectors sync <id> Triggers an on-demand sync —
connectors rotate-credentials <id> Replaces stored credentials --credentials-stdin
connectors delete <id> Deletes a connector --yes / -y
# What can I connect, and what does it need?
hydradb connectors providers --category messaging
hydradb connectors providers slack

# Create — credentials are piped, never passed as an argument
echo '{"access_token":"xoxb-..."}' | \
  hydradb connectors create --provider slack --scope T01234ABC --credentials-stdin

# See what is available, then activate a subset
hydradb connectors discover <id>
hydradb connectors configure <id> -r C123:channel -r C456:channel --lookback-days 60

# Run a cycle now, then watch it
hydradb connectors sync <id>
hydradb connectors status <id>

Credentials are never accepted as a command-line argument. There is deliberately no --credentials flag: a secret in argv lands in shell history and is visible to any user on the machine via ps, and neither can be undone afterwards. Supply them by piping a JSON object with --credentials-stdin, by setting HYDRADB_CONNECTOR_CREDENTIALS, or interactively when prompted (input is hidden, and the prompt asks for exactly the fields that provider declares).

Credential values are never echoed back either, in any output mode including --output json. The credential schema — which fields a provider needs — is public metadata and is shown in full.

--scope is a stable external account identifier (a Slack workspace id, a GitHub org). Set it when you run more than one connector for the same provider, so documents from different accounts cannot collide.

Syncing is asynchronous: connectors sync queues a cycle and returns. A query issued straight afterwards can legitimately return nothing — poll connectors status instead.

The provider catalogue is served by the API and is never hardcoded in the CLI, so newly supported providers appear without upgrading.


doctor

Reports your resolved configuration and whether the API is reachable.

hydradb doctor
hydradb -o json doctor

Deprecated aliases

Each of these still works and prints a one-line stderr warning naming its replacement. They will be removed in a future major version.

Deprecated Use instead
memories add, knowledge upload, knowledge upload-text ingest
memories list, fetch sources list
memories delete, knowledge delete delete
knowledge verify verify
recall full, recall preferences, recall keyword query
fetch content inspect
fetch relations relations
tenant … database …
whoami doctor
--tenant-id, --sub-tenant-id --database, --collection

login / logout

Manage your CLI session credentials.

Command What it does
hydradb login Saves your API key and default scope to ~/.hydradb/config.json. Prompts for the key interactively if --api-key is omitted in a TTY session. Validates the key against the API when a database is provided.
hydradb logout Removes the stored config file.

See doctor to inspect the resolved session.


config

View and update CLI configuration values without editing the config file manually.

Command What it does
config show Displays all current settings (API key is masked).
config set <key> <value> Sets a single configuration value. Valid keys: api_key, database, collection, base_url (the old tenant_id / sub_tenant_id keys still work as deprecated aliases).
hydradb config show
hydradb config set database my-database
hydradb config set base_url https://api.hydradb.com

Environment Variables

Variable Purpose Deprecated alias (still read, warns once)
HYDRADB_API_KEY API key (overrides config file) HYDRA_DB_API_KEY
HYDRADB_DATABASE Default database (overrides config file) HYDRA_DB_TENANT_ID
HYDRADB_COLLECTION Default collection (overrides config file) HYDRA_DB_SUB_TENANT_ID
HYDRADB_BASE_URL API base URL (default https://api.hydradb.com) HYDRA_DB_BASE_URL, HYDRADB_API_URL
HYDRADB_OUTPUT Default output format — human or json —
HYDRADB_GRAPH_COLLECTION Default graph collection for hydradb graph (default default) —
HYDRADB_TIMEOUT_SECONDS How long one request waits for the API before the command fails (default 60) none
HYDRADB_CONNECTOR_CREDENTIALS Connector credentials as a JSON object, for non-interactive connectors create —

HYDRADB_GRAPH_COLLECTION deliberately does not fall back to HYDRADB_COLLECTION: a context collection names a memory/knowledge partition and means nothing to a graph, so inheriting it would silently point Cypher at a collection you never chose — which reads an empty graph rather than failing.

The canonical HYDRADB_* name wins when both it and its deprecated alias are set. The CLI aliases only its own historical HYDRA_DB_* prefix — it does not read other clients' env prefixes.


Running Tests

Tests use pytest and live in the tests/ directory.

pip install -e .          # editable install so tests can import the package
pytest                    # runs all tests

Documentation

Full documentation is available at docs.hydradb.com/plugins/cli.


License

Apache 2.0 — see LICENSE for details.

About

HydraDB CLI — Agent-friendly command line interface for HydraDB memory, recall, and ingestion

Resources

Code of conduct

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages