Cookbook
How to share memory across opencode, dashboard, and scripts
One workspace, every surface, zero sync code. A fact stored in opencode appears in the dashboard and your embedded SaaS — immediately.
1
Memory is centralized, access is distributed
Memory is stored once per workspace. Every surface that uses the same API key shares the same memory pool. No syncing, no replication.
Every surface, one memory pool, zero sync code
2
A day in the life
> Our refund policy is 30 days, not 60. Update the docs.
Got it. I'll remember that our refund policy is 30 days.
[Memory: stored as knowledge item]Visit /dashboard/memory
Search: "refund policy"
Result: "Refund policy is 30 days" — stored this morning via opencode$ cadreen memory list --limit 5
Recent memories:
Refund policy is 30 days
Source: opencode
Stored: 2026-06-21 09:15 UTC
Type: knowledge_itemMemory is per-workspace, not per-surface. Source tags ("opencode", "sdk", "cli") let you filter by origin, but knowledge flows freely.
3
Write memory from any surface
Both of these write to the same memory pool. The fact is immediately available on all surfaces.
Next: How to enable GDPR, HIPAA, and PCI-DSS compliance in one call — pre-built rule templates.