CLI client for MemoryHub — centralized, governed memory for AI agents
Project description
memoryhub-cli
Command-line client for MemoryHub — centralized, governed memory for AI agents.
Install
pip install memoryhub-cli
Usage
# Authenticate to a MemoryHub instance
memoryhub login
# Search for memories
memoryhub search "deployment patterns"
# Read a specific memory
memoryhub read <memory-id>
# Write a new memory
memoryhub write "Use Podman, not Docker" --scope user --weight 0.9
# Campaign-scoped operations (requires project enrollment)
memoryhub search "shared patterns" --project-id my-project --domain React
memoryhub write "Use vLLM for embeddings" --project-id my-project --domain ML
# Set up project-level memory loading
memoryhub config init
memoryhub config regenerate
# Admin: provision and manage agents
memoryhub admin create-agent my-agent --scopes user,project
memoryhub admin list-agents
memoryhub admin rotate-secret my-agent
memoryhub admin disable-agent my-agent
The --project-id flag enables campaign-scoped memory access. When your project is enrolled in campaigns via .memoryhub.yaml, the CLI auto-loads the project identifier from config, so you can omit the flag in most cases. Use --domain to tag writes or boost domain-matching results in search.
Project configuration
memoryhub config generates a project-local .memoryhub.yaml and a companion .claude/rules/memoryhub-loading.md rule file. Both files are meant to be committed so every contributor's agent inherits the same loading policy.
memoryhub config init is an interactive wizard that asks about session shape, loading pattern, focus source, and retrieval defaults, then writes both files at the project root. If a legacy .claude/rules/memoryhub-integration.md already exists, it is backed up to .bak before the new rule file is written.
memoryhub config regenerate re-renders the rule file from .memoryhub.yaml after you hand-edit the YAML. It reads the YAML and rewrites the Markdown rule file only; it does not modify .memoryhub.yaml.
Per-developer connection params (url, auth_url, client_id, client_secret) live separately at ~/.config/memoryhub/config.json and are managed by memoryhub login. They are not stored in .memoryhub.yaml and are not committed.
Further documentation
The CLI is one surface of the memory-hub monorepo. For deeper context:
- Architecture overview — System design, deployment topology
- MCP server tool reference — The 15 tools the CLI wraps
- Agent memory ergonomics design — Full
.memoryhub.yamlschema, rule file templates, and session-loading patterns - Python SDK — if you'd rather call the tools from Python
Links
Project details
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 memoryhub_cli-0.4.0.tar.gz.
File metadata
- Download URL: memoryhub_cli-0.4.0.tar.gz
- Upload date:
- Size: 20.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6a5c5d99ee63f510131ff713cf53482b16e1b38636f02975fd178911b6dc687f
|
|
| MD5 |
1ddde605c4cb8a1da1762340fbadf19a
|
|
| BLAKE2b-256 |
275ee5c923dfeae476b3c00dd7d1b7863a7d2551250afdd32e4a1acd7032f2f7
|
Provenance
The following attestation bundles were made for memoryhub_cli-0.4.0.tar.gz:
Publisher:
release.yml on redhat-ai-americas/memory-hub
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
memoryhub_cli-0.4.0.tar.gz -
Subject digest:
6a5c5d99ee63f510131ff713cf53482b16e1b38636f02975fd178911b6dc687f - Sigstore transparency entry: 1297035501
- Sigstore integration time:
-
Permalink:
redhat-ai-americas/memory-hub@b111e5a517db6286a7e76032de811389f3f4d613 -
Branch / Tag:
refs/tags/memoryhub-cli/v0.4.0 - Owner: https://github.com/redhat-ai-americas
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@b111e5a517db6286a7e76032de811389f3f4d613 -
Trigger Event:
push
-
Statement type:
File details
Details for the file memoryhub_cli-0.4.0-py3-none-any.whl.
File metadata
- Download URL: memoryhub_cli-0.4.0-py3-none-any.whl
- Upload date:
- Size: 17.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
45df57e5d341baee0b6df6d71e7a7e3f586ab622dbf2887d05d348209f32105f
|
|
| MD5 |
2b253fe5ee62ddd9baabdb88b108525f
|
|
| BLAKE2b-256 |
cee767262be988bb600921fc9b3439b8d02cd6c661a509c0b039f353b3a3a394
|
Provenance
The following attestation bundles were made for memoryhub_cli-0.4.0-py3-none-any.whl:
Publisher:
release.yml on redhat-ai-americas/memory-hub
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
memoryhub_cli-0.4.0-py3-none-any.whl -
Subject digest:
45df57e5d341baee0b6df6d71e7a7e3f586ab622dbf2887d05d348209f32105f - Sigstore transparency entry: 1297035569
- Sigstore integration time:
-
Permalink:
redhat-ai-americas/memory-hub@b111e5a517db6286a7e76032de811389f3f4d613 -
Branch / Tag:
refs/tags/memoryhub-cli/v0.4.0 - Owner: https://github.com/redhat-ai-americas
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@b111e5a517db6286a7e76032de811389f3f4d613 -
Trigger Event:
push
-
Statement type: