For agents
- Port 9001 (MCP)
- Port 8080 (HTTP)
Docs / SDKs and APIs
@tracemem/ts-sdk on npm · Node.js 18 or later
npm install @tracemem/ts-sdkexport TRACEMEM_API_KEY="<the agent's key>"
export TRACEMEM_API_URL="<your TraceMem URL>"Both are on the agent's connection panel in the dashboard.
import { TraceMemClient } from "@tracemem/ts-sdk";
const client = TraceMemClient.fromEnv();
const decision = await client.open("support_reply");
// Read products, process PII and call models through TraceMem here.
await decision.close({ outcome: "commit" });The operations an agent performs at runtime. Configuration is done in the dashboard or through the admin MCP server.
Anything that speaks JSON-RPC or HTTP calls the MCP server or the HTTP API directly. Worked examples are in the full documentation.
Authorization: Agent <key>. The agent sees the published products it has been granted and nothing behind them.| Area | Tools |
|---|---|
| Decisions | decision_create, decision_record, decision_read, decision_write, decision_evaluate, decision_request_approval, decision_add_context, decision_get, decision_close, decision_supersede, decision_search, capabilities_get |
| Evidence | decision_trace, decision_receipt |
| Products | products_list, product_get |
| PII | pii_process, pii_response_process |
| Exceptions | exception_get, exception_list |
| Retrieval | retrieval_evaluate_query, retrieval_evaluate_source, retrieval_filter_results, retrieval_record_injection, retrieval_record_opaque |
/v1/runtime/decisions. The person an agent acts for travels as X-Tracemem-End-User-Token and is verified against your identity provider, not taken on trust.POST /v1/proxy/anthropic/v1/messages
GET /v1/proxy/anthropic/v1/modelsPOST /v1/router/v1/chat/completionsClaude Code and other Anthropic clients set ANTHROPIC_BASE_URL to the proxy. OpenAI SDKs set their base URL to the router. Identity, PII and policy apply to both, and both are written to the trace. The providers behind the gateway are listed in Integrations.
A plugin with commands, agents, hooks and a skill, so the decisions in a coding session are recorded and governed where the work happens.
/plugin marketplace add tracemem/tracemem-claude-code-plugin
/plugin install tracemem@tracemem-pluginsexport TRACEMEM_API_KEY="<the agent's key>"
export TRACEMEM_MCP_URL="<your agent MCP URL>"TraceMem tools for applications built on the AI SDK, ready to hand to any model call.
npm install @tracemem/vercel-ai @tracemem/ts-sdk zodA plugin that brings decision recording and governance into OpenCode sessions.
{
"plugin": ["@tracemem/opencode-plugin"]
}export TRACEMEM_API_KEY="<the agent's key>"
export TRACEMEM_MCP_URL="<your agent MCP URL>"A plugin and a skill that put OpenClaw agents on the governed path.
Setup guide in the customer portal.
OpenAI Codex, and any IDE or agent that speaks MCP, connect through the agent MCP server and the gateway.