Skip to main content

MemoryBot CLI — your personal knowledge graph from the command line

Project description

MemoryBot CLI

Your personal knowledge graph from the command line.

Install

pipx install memorybot

(or pip install memorybot inside a venv).

Quick start

mb login              # opens browser, OAuth flow
mb memo search "..."  # full-text + semantic search
mb memo get <SID>     # fetch a memo by sid
mb run <SID>          # execute a Python script memo

--json on the read commands emits machine-readable output for piping into jq.

Running script memos

mb run <sid> fetches the memo, extracts the first ```python fenced block, mints a fresh short-TTL session token (read-only by default), and runs the code via uv run --python $(which python3) <tmpfile> with MEMORYBOT_TOKEN and MEMORYBOT_URL set in the env. Stdout and stderr stream live; the script's exit code propagates.

mb run eaQ5a4Hgxl              # default: read-only token, 5min TTL
mb run eaQ5a4Hgxl --write      # mint a write-capable token
mb run eaQ5a4Hgxl --ttl 600    # 10-minute TTL

Inside the script, from memorybot.client import Client picks up the env vars set by the runner. Requires uv on PATH.

Configuration

  • MEMORYBOT_URL — server URL (default https://www.memorybot.com).
  • --base-url — per-command override.

Credentials are stored at ~/.config/memorybot/config.json (mode 0600).

Auth

mb login runs the OAuth 2.0 authorization-code flow with PKCE: it registers a client via Dynamic Client Registration (RFC 7591), opens your browser to the authorize endpoint, and captures the callback on a one-shot loopback server. Tokens auto-refresh on 401.

mb logout clears stored credentials.

License

MIT

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

memorybot-0.4.0.tar.gz (10.4 kB view details)

Uploaded Source

Built Distribution

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

memorybot-0.4.0-py3-none-any.whl (12.5 kB view details)

Uploaded Python 3

File details

Details for the file memorybot-0.4.0.tar.gz.

File metadata

  • Download URL: memorybot-0.4.0.tar.gz
  • Upload date:
  • Size: 10.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for memorybot-0.4.0.tar.gz
Algorithm Hash digest
SHA256 95980fbc5437c9ff36ce1ccb959a22a0311702065171a29d8ecac777270a16f1
MD5 50649aa886fad742f27c1b4d5f2634f8
BLAKE2b-256 aef2cddde64232ce1809baffd6cefbab7dd742491deb0e858f7ae88e5b639445

See more details on using hashes here.

Provenance

The following attestation bundles were made for memorybot-0.4.0.tar.gz:

Publisher: publish.yml on nolanlove/memorybot-cli

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

File details

Details for the file memorybot-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: memorybot-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 12.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for memorybot-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0cbe2a75ff857eae6e25057fe3ae634d41ab6f3cfc4db187677d45421b9e53b6
MD5 36f67609c2bef6993110ed4347488031
BLAKE2b-256 5f5295df32a6bbe8862e6683462d82cbb578133ef30cb6a6e9dc9476394b5708

See more details on using hashes here.

Provenance

The following attestation bundles were made for memorybot-0.4.0-py3-none-any.whl:

Publisher: publish.yml on nolanlove/memorybot-cli

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

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page