Skip to main content
Every agent framework below is already an MCP client, so your own agent reaches Renor the way Claude Code or Codex does: one MCP address and one key. What your coding agent saved, your own agent can recall, and the other way round.

Before you start

  1. 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.
  2. Put it in your environment. Every example on this page reads it from RENOR_API_KEY and sends it as Authorization: Bearer <key>.
The key belongs to your workspace: an agent using it reads and writes the same memory as every other agent you have connected (see Several agents, one memory). Keep it on the server side of your app, never in a browser. Renor serves 24 tools (Tools). Two do most of the work, and the examples tell the model to use them:
  • get_context: call it before answering, with the current request.
  • remember: call it when the user asks to keep something.
A framework sends the model every tool it is given, and the 24 tool descriptions come to about 10,000 tokens on each request. Where a framework can keep only some tools (the Google ADK and Agno examples do), keeping these two cuts that cost. Each example runs the agent twice, as two separate conversations. The first tells it how you deploy (with Kamal, to a server named orca-7); the second starts with no history, asks how you deploy, and can only answer from Renor. Swap the model for any model your framework supports.

AI SDK

agent.ts

Mastra

agent.ts
Mastra prefixes each tool with the server’s name, so 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
The SDK names MCP tools mcp__<server>__<tool>; allowedTools lets the agent call these two without asking.

Google ADK

The [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 calls remember; 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.