Skip to main content

CLI

Owns the first engram command-line client for connecting a developer machine to an already-running Engram server.

Current command surface:

python -m engram_cli connect --server URL --api-key KEY --project PROJECT
python -m engram_cli doctor
python -m engram_cli hook post-tool-use < hook.json
python -m engram_cli hook session-start < context.json
python -m engram_cli hook error < hook.json
python -m engram_cli hook decision < hook.json
python -m engram_cli hook session-start --response-format codex < hook.json
python -m engram_cli disconnect

The package declares two console scripts in pyproject.toml that share the same entrypoint: engram (short, for typed commands) and engram-connect (matches the distribution name, so uvx engram-connect ... works without --from).

Plug-and-play install (engram install)

engram install is the one-command onboarding path for Claude Code, Codex, or both. It validates the server, API key, and project scope (same dry-run as connect), writes local credentials under ~/.engram, installs the selected native plugin marketplace package, and finishes with a doctor health check.

Run it without cloning the repo via uvx:

uvx engram-connect install --agent both \
  --server <URL> --api-key <KEY>

Before the package is published to PyPI, install straight from git or pipx:

uvx --from "git+https://github.com/Barsoomx/engram.git#subdirectory=packages/cli" \
  engram install --agent codex --server <URL> --api-key <KEY>

# or:
pipx install engram-connect
engram install --agent codex --server <URL> --api-key <KEY>

--agent accepts claude-code, codex, or both. Claude Code uses claude plugin marketplace add plus claude plugin install; Codex uses codex plugin marketplace add --json plus codex plugin add --json. Override the binaries with --claude-bin and --codex-bin. Pass --skip-plugin-install to write credentials and run doctor without touching either harness. The bundled plugin hooks require python3 >= 3.12 on PATH.

Codex users must review the Engram commands in /hooks and start a new thread. The installer does not bypass native hook trust.

Local state defaults to $ENGRAM_HOME when set, otherwise ~/.engram. connect writes only Engram-owned config, credential, and hook-manifest files. doctor is read-only. disconnect removes only Engram-owned files. Hook commands read one JSON object from stdin, merge the connected project, team, runtime, and credential metadata, and call the Engram server. By default they print the server JSON response. Codex response mode prints the Codex hook response instead.

The CLI must not introduce a persistent local memory service, local database, provider secrets, embeddings, cached memory bundles, durable event queue, or background summarization behavior.

Run tests from the repository root inside the backend container:

docker compose -f deploy/compose/docker-compose.yml run --rm --no-deps \
  -v "$PWD:/workspace" -w /workspace \
  -v /usr/bin/git:/usr/bin/git:ro \
  -v /usr/lib/git-core:/usr/lib/git-core:ro \
  -e PYTHONPATH=/workspace/packages/cli --entrypoint python3 api \
  -m unittest discover -s packages/cli -p '*_tests.py' -v

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

engram_connect-0.6.0.tar.gz (80.1 kB view details)

Uploaded Source

Built Distribution

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

engram_connect-0.6.0-py3-none-any.whl (88.1 kB view details)

Uploaded Python 3

File details

Details for the file engram_connect-0.6.0.tar.gz.

File metadata

  • Download URL: engram_connect-0.6.0.tar.gz
  • Upload date:
  • Size: 80.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for engram_connect-0.6.0.tar.gz
Algorithm Hash digest
SHA256 ff0cb1bb8d28e2370603f9d804f64a491c112e5a7bb95da4ab3fd151811263fe
MD5 b74f140d706ff053144057a1ecc60380
BLAKE2b-256 312193d64c7bb8b387478045ef7aa552f35e6c8ba3118f0d9a63059d64aa2b99

See more details on using hashes here.

Provenance

The following attestation bundles were made for engram_connect-0.6.0.tar.gz:

Publisher: publish-pypi.yml on Barsoomx/engram

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

File details

Details for the file engram_connect-0.6.0-py3-none-any.whl.

File metadata

  • Download URL: engram_connect-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 88.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for engram_connect-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9add54fa9cd9d53802ca1c4f87f189e454d81ae39060ad4255645f719b0e2df8
MD5 e73c026f2604ad2696c74f121b0e2d4b
BLAKE2b-256 dd63993aad0234cb070917575170792d65ea19834d0d68cc133bbe01d879949e

See more details on using hashes here.

Provenance

The following attestation bundles were made for engram_connect-0.6.0-py3-none-any.whl:

Publisher: publish-pypi.yml on Barsoomx/engram

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

Release history Release notifications | RSS feed

0.6.1

2 files

This release

0.6.0 This release

2 files

0.5.0

2 files

0.4.4

2 files

0.4.3

2 files

0.4.2

2 files

0.4.0

2 files

0.3.3

2 files

0.3.2

2 files

0.3.0

2 files

0.2.0

2 files

0.1.4

2 files

0.1.3

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

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