CloudClient wraps the hosted API.
import os
from bilinc import CloudClient
client = CloudClient(api_key=os.environ["BILINC_API_KEY"])
client.commit("user.preference", {"theme": "dark"})
results = client.recall("user preference", limit=5)
status = client.status()Expected output: a successful commit response, recall results, and a Cloud status object.
Write one durable memory.
curl https://bilinc.space/api/cloud/memory/commit \
-H "Authorization: Bearer $BILINC_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"key": "agent.memory.bootstrap",
"value": {
"goal": "keep durable state between runs",
"owner": "agent-runtime"
},
"memoryType": "semantic",
"importance": 0.8,
"metadata": { "source": "cloud-quickstart" }
}'Read prior state with a recall profile.
curl https://bilinc.space/api/cloud/memory/recall \
-H "Authorization: Bearer $BILINC_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"query": "durable state between runs",
"profile": "balanced",
"limit": 5
}'401
Invalid or missing API key. Recreate or rotate the key from the dashboard.
402/403
No active hosted entitlement for this operation. Open billing or support.
429
Rate limited. Reduce burst traffic or ask for Scale review.
5xx
Cloud runtime unavailable. Check status before retrying.
