Skip to main content

Persistent memory for AI agents -- search, store, and recall across sessions.

Project description

GoldHold Python SDK

Your AI agent forgets everything when the session ends. GoldHold fixes that.

Persistent memory that survives session boundaries, compaction, and crashes. 14 memory types, 4 storage classes, semantic search, cross-agent messaging -- all through a simple Python client.

pip install goldhold

Why GoldHold?

  • Survives death -- agent context is preserved across sessions, restarts, and compaction events
  • Semantic search -- find relevant memories by meaning, not keywords
  • Cross-agent messaging -- agents on the same account can communicate via GUMP protocol
  • Zero LLM overhead -- retrieval uses 9-factor scoring (temporal decay, evidence, associations), no extra model calls
  • Compound operations -- search + store + send in a single API call (saves tokens and latency)
  • Works with any framework -- OpenClaw, LangChain, CrewAI, AutoGen, raw Python scripts

Quickstart

from goldhold import GoldHold

gh = GoldHold(api_key="your-key")

# Store a memory
gh.store("User prefers dark mode", "Stated explicitly on March 9", type="FACT")

# Search memories
results = gh.search("user preferences")

# Compound turn -- search + store in one call
resp = gh.turn(
    search={"query": "project status"},
    store={"subject": "Deploy complete", "body": "v2 shipped", "type": "DECISION"},
)

# Session resume
auto = gh.auto(context_budget=2000)

# Check status
status = gh.status()
print(f"{status.namespace}: {status.total_vectors} vectors")

Setup

GoldHold.setup()  # interactive -- prints signup URL, saves key to ~/.goldhold/config.json

Or set GOLDHOLD_API_KEY in your environment.

API

Method What it does
store(subject, body, type, confidence) Store a memory packet
search(query, limit, filters) Semantic search
turn(search, store, send, compact) Compound: search + store + send in one call
auto(context_budget) Session resume with capability card
batch(operations) Multiple operations in one request
close(session_summary) Graceful session close
status() Namespace info, vector count, agent trust
setup() Interactive CLI setup

Tiers

Lite (free) Vault Pro ($9/mo)
Vectors 1,000 Unlimited
Agents 1 Unlimited
Namespaces 1 Unlimited
Tasks 10 Unlimited
Messages 50/month Unlimited

Sign up at goldhold.ai/account.

Error Handling

from goldhold.exceptions import AuthError, RateLimitError, VectorLimitError

try:
    gh.store("test", "test")
except VectorLimitError:
    print("Upgrade to Vault Pro for unlimited vectors")
except AuthError:
    print("Bad API key")
except RateLimitError:
    print("Slow down")

Patent Pending. All Auto Tunes LLC. U.S. Patent Application #63/988,484.

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

goldhold-0.1.1.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

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

goldhold-0.1.1-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file goldhold-0.1.1.tar.gz.

File metadata

  • Download URL: goldhold-0.1.1.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for goldhold-0.1.1.tar.gz
Algorithm Hash digest
SHA256 8c2fd72648c96ce75ef2a8fa85538d3f8e11ed7988a7b11caa40438672a35d22
MD5 6498dffe7b780234b55def2a02306958
BLAKE2b-256 003dd16498aef6ac7f5595bd79d608b835220f6e1699876d2fb4f30d0ea53c84

See more details on using hashes here.

File details

Details for the file goldhold-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: goldhold-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 7.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for goldhold-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2ed3044b47e276531118625c5e5ce843399240175807ed6863e0921e410cdcd1
MD5 87c3c21336afbcf6ac1d20ef71e84c68
BLAKE2b-256 4d9cf3b9772c2d8f56463c4881bab141e0d80318422f955c0346d7e514f8096f

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