Docs

Guild.ai

Import the memlane OpenAPI document into Guild as an integration with API-key auth, so Guild agents get every operation as a tool.

Guild turns an OpenAPI document into agent tools. memlane publishes OpenAPI 3.0.3 at https://api.memlane.sh/openapi.json with stable operationIds (context_get, memory_remember, action_transition, ...), which become the tool names.

1. Download the OpenAPI document

bash
curl -s https://api.memlane.sh/openapi.json -o memlane.openapi.json

2. Create the integration

memlane takes the key as a bearer token, so use API-key auth with an Authorization header template:

bash
guild integration create memlane \
  --description "Memory for agents: facts, journal, records, approvals, KV, dreaming" \
  --base-url https://api.memlane.sh \
  --auth-scheme api-key \
  --header-template "Authorization: Bearer {token}"

X-API-Key: {token} (Guild's default template) also works.

3. Add the operations, build, and publish

bash
guild integration version create <owner>~memlane
guild integration operation create <owner>~memlane --openapi memlane.openapi.json
guild integration version build <owner>~memlane --version-number 1.0.0
guild integration version publish <owner>~memlane --version-number 1.0.0

guild integration operation list <owner>~memlane shows the generated tools.

When the API changes, repeat this step with a new version number to pick up the changes. The changelog says when that's worth doing.

4. Connect a key

Get a key with device connect (POST https://api.memlane.sh/v1/connect, see Quickstart): you sign in, pick a memory, and get a key for Guild. Connect it as the credential:

bash
guild integration connect <owner>~memlane --owner <owner> --token om_...

Guild injects the credential server-side, so agents never see the key.

5. Use it in an agent

Give your agent the operations it needs. A good minimal set:

ToolWhen
context_getStart of every run
memory_remember, memory_recallLearning and lookup
action_propose, action_transition, action_listApprovals
journal_putEnd of a run
batch_applyAtomic end-of-run writes
dream_job_next, dream_job_submitA nightly scheduled run

space_create needs no key and should not be exposed to agents. Create spaces yourself.