Skip to main content

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.

Metadata

Release files for goldhold 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for goldhold 0.3.0
File Size Uploaded Provenance Actions
goldhold-0.3.0.tar.gz 10.6 kB Without provenance Details for goldhold-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for goldhold 0.3.0
File Interpreter ABI Platform Actions
goldhold-0.3.0-py3-none-any.whl Python 3 none any Details for goldhold-0.3.0-py3-none-any.whl

Total release size: 20.4 kB

Release files / goldhold-0.3.0.tar.gz

Download URL goldhold-0.3.0.tar.gz
Size 10.6 kB
Tags Source
SHA-256 checksum
How to use checksums
1a9acf414d98ce33da9ae9de3dc34419ea7c9bb43d99baddfabebcb586dcfb5c
BLAKE2b-256 checksum
How to use checksums
f1e7a22aca443e3c64c7d3893083472da23178069b5e4d31905357dd8457090b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.7

Release files / goldhold-0.3.0-py3-none-any.whl

Download URL goldhold-0.3.0-py3-none-any.whl
Size 9.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e16dec616a5352bb8781374d0166532b30f7e90f85459187b1065b3ecb9f8d03
BLAKE2b-256 checksum
How to use checksums
42aa3595da138a8db701cd7e6559f41e732ac43eb8616cc7124c0181a45f1333
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.7

Security for goldhold 0.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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