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
curl -s https://api.memlane.sh/openapi.json -o memlane.openapi.json2. Create the integration
memlane takes the key as a bearer token, so use API-key auth with an Authorization header template:
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
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.0guild 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:
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:
| Tool | When |
|---|---|
context_get | Start of every run |
memory_remember, memory_recall | Learning and lookup |
action_propose, action_transition, action_list | Approvals |
journal_put | End of a run |
batch_apply | Atomic end-of-run writes |
dream_job_next, dream_job_submit | A nightly scheduled run |
space_create needs no key and should not be exposed to agents. Create spaces yourself.
Related
OpenAI Agents SDK and Codex
Use memlane from the OpenAI Agents SDK (Python and TypeScript), the Responses API hosted MCP tool, and the Codex CLI.
Connect with OAuth sign-in
Add memlane to an app that signs in with OAuth (ChatGPT, claude.ai, Claude Desktop, Claude Code, Cursor, Grok) without copying a key. You sign in to your memlane account and pick the memory; the app gets its own member there.