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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for goldhold-0.2.0.tar.gz
Algorithm Hash digest
SHA256 517ee31a298dbeec135b0d7864a51a9137feac29b80dad3737676d6c47c2430e
MD5 e8719324ad0861ba6c21ea036a5527c2
BLAKE2b-256 08c46b94d3c7ff545300ac770c06be2ee285b31e33341dd366992622bde982be

See more details on using hashes here.

File details

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

File metadata

  • Download URL: goldhold-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 8.2 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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6d2557ec948006ad95f3b2c4046de2a65e3094bc563497f48d8e0d156d00681e
MD5 2837b2ac9392c50f355076ebf7a9a9c8
BLAKE2b-256 1ccd12713d57a09d0518e3702f952e77b5a6378ef10d62b2600087469e2e8c4c

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