Skip to main content

DBay CLI — manage memory, knowledge base, and databases from the terminal

Project description

dbay-cli

Command-line tool for DBay — manage memory bases, knowledge bases, databases, and more from the terminal.

Install

pip install dbay-cli

Getting Started

# Login (creates ~/.dbay/config.json)
dbay login

# Create a memory base and set it as default
dbay mem create my-mem
dbay mem use my-mem

# Register MCP server with Claude Code
claude mcp add --scope user dbay -- uvx dbay-mcp

# Done! Claude now remembers across sessions.

Memory Commands

dbay mem list                    # List memory bases (* marks default)
dbay mem use <name|id>           # Switch default memory base
dbay mem create <name>           # Create a memory base
dbay mem create --encrypted <name>  # Create with end-to-end encryption
dbay mem info                    # Show current memory base details
dbay mem stats                   # Show memory statistics

dbay mem list-memories           # List all memories (decrypts if encrypted)
dbay mem recall "query"          # Semantic search (decrypts if encrypted)
dbay mem ingest "content"        # Store a memory (encrypts if encrypted)
dbay mem delete-memory <id>      # Delete a memory

dbay mem change-password         # Change encryption password

All commands use the default memory base from ~/.dbay/config.json. Override with positional argument or --base option.

Knowledge Base Commands

dbay kb list                     # List knowledge bases (* marks default)
dbay kb use <name|id>            # Switch default knowledge base
dbay kb create <name>            # Create a knowledge base
dbay kb info <id>                # Show knowledge base details

dbay kb upload <id> <file>       # Upload document (PDF, DOCX, MD)
dbay kb docs <id>                # List documents
dbay kb search <id> "query"      # Semantic search

End-to-End Encryption

Create an encrypted memory base where content is encrypted locally before upload. The server never sees plaintext.

dbay mem create --encrypted my-private-mem
# 1. Set a password (saved to ~/.dbay/secret)
# 2. Choose embedding provider
# 3. Keys generated automatically

Three-factor security:

  • Password (~/.dbay/secret) - only you know
  • Config file (~/.dbay/encrypted_bases.json) - portable, safe to share (encrypted private key)
  • Server - stores encrypted DEK (useless without private key)

Cross-device: copy ~/.dbay/encrypted_bases.json to the new device, create ~/.dbay/secret with your password, then dbay login.

Configuration

~/.dbay/config.json (auto-created by dbay login):

{
  "endpoint": "https://api.dbay.cloud:8443",
  "api_key": "lk_...",
  "memory_base": "mem_...",
  "knowledge_base": "kb_..."
}

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

dbay_cli-0.2.6.tar.gz (87.4 kB view details)

Uploaded Source

Built Distribution

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

dbay_cli-0.2.6-py3-none-any.whl (25.1 kB view details)

Uploaded Python 3

File details

Details for the file dbay_cli-0.2.6.tar.gz.

File metadata

  • Download URL: dbay_cli-0.2.6.tar.gz
  • Upload date:
  • Size: 87.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for dbay_cli-0.2.6.tar.gz
Algorithm Hash digest
SHA256 83399a8e66b66f80a1dbebe165f808940ddb0d30cca8fc462db9ba584ddf22a4
MD5 8b0b349eeeb7805af1ba6097a3c1f6e6
BLAKE2b-256 b366baffa71b4a68dc3b64aba20168f24c00a36a563f6c0015175395a373de15

See more details on using hashes here.

File details

Details for the file dbay_cli-0.2.6-py3-none-any.whl.

File metadata

  • Download URL: dbay_cli-0.2.6-py3-none-any.whl
  • Upload date:
  • Size: 25.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for dbay_cli-0.2.6-py3-none-any.whl
Algorithm Hash digest
SHA256 36143ea13c7148bf527251c09523c6df825f629b08c2270efb0d86540e3a7f45
MD5 ef70e45873ee51d7dc4a21627d08ee8f
BLAKE2b-256 efd9647175c40ef7f73072d68a22e35f28b38c40e15e6f66944349aa132f5e1f

See more details on using hashes here.

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