Before you start
- In the dashboard, open API keys and choose Create key. The key is shown once; it works for 365 days and you can revoke it there.
- Put it in your environment. Every example on this page reads it from
RENOR_API_KEYand sends it asAuthorization: Bearer <key>.
get_context: call it before answering, with the current request.remember: call it when the user asks to keep something.
AI SDK
agent.ts
Mastra
agent.ts
remember is renor_remember.
LangChain and LangGraph
agent.py
create_agent returns a LangGraph graph, so the same tools work in a graph you build yourself.
OpenAI Agents SDK
agent.py
Claude Agent SDK
agent.ts
mcp__<server>__<tool>; allowedTools lets the agent call these two without asking.
Google ADK
[mcp] extra is needed: without it the MCP toolset cannot be imported.
agent.py
Pydantic AI
agent.py
Agno
agent.py
Self-hosted Renor
The same code works against a self-hosted Renor HTTP server: replace the address with the server’s/mcp address and the key with the OAuth access token the server issued to your client (engine self-hosting guide). The command-line server (npx -y renor-engine mcp) runs over stdio and serves different tool names: search, remember_fact and note instead of get_context and remember.
What these examples were checked against
Each example on this page was run as printed, with two changes: the address of a self-hosted Renor HTTP server instead of the hosted one, and a scripted model instead of a real one. In the first conversation the scripted model callsremember; in the second it calls get_context and answers with what that returned. A framework passed only when the server logged both calls, its memory folder held the saved sentence, and that sentence came back through the framework in the second answer. The TypeScript examples also type-check under strict. The same examples were then run with a real open-weight model, to check that a model following the instruction recalls the saved fact in a new conversation.
Versions checked, on 2026-10-21: ai 7.0.148 with @ai-sdk/mcp 2.0.81, @mastra/core 1.79.0 with @mastra/mcp 2.5.0, @anthropic-ai/claude-agent-sdk 0.3.307, langchain 1.4.7 with langchain-mcp-adapters 0.3.2, openai-agents 0.24.0, google-adk 2.12.0, pydantic-ai-slim 2.59.0, agno 3.1.8. A later release of a framework may rename an option; its own MCP documentation is then the reference.