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.7.tar.gz (88.6 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.7-py3-none-any.whl (26.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dbay_cli-0.2.7.tar.gz
  • Upload date:
  • Size: 88.6 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.7.tar.gz
Algorithm Hash digest
SHA256 7bced47c921e30e7e197203ba490ae26f0bd650770aa4dca7a86c3c3e28e5286
MD5 4a302a52a68d52af2504a77cec629659
BLAKE2b-256 f08f6748cfbde9c9e3a6612e79f71988b9a0fa3ecc8cea19eb57b9deca4db6dd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dbay_cli-0.2.7-py3-none-any.whl
  • Upload date:
  • Size: 26.4 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.7-py3-none-any.whl
Algorithm Hash digest
SHA256 9e9dd1decd2476d72da6c65a57361ad51443b7159abb4bd69903fea7c1b18492
MD5 354e569290ddc16bec2be035af2e89bf
BLAKE2b-256 5d37be3fcf5f26f6eebf58520202330921d20a76e389ea1c9d83fbf9aa531a3a

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