Retainer documentation
A shared memory for AI agents working with customer relationships.
Retainer gives agents and people a shared workspace for records, facts, and events. Start with a hosted workspace or run Retainer on your own infrastructure.
Start with hosted Retainer
Create a workspace and connect your first agent.
Self-host Retainer
Start Retainer and Postgres with Docker Compose.
Connect through MCP
Set up Codex or Claude and verify the connection.
Build with the API
Authenticate, query records, and read the endpoint reference.
How the workspace works
A record describes a person, company, deal, or another object in your workspace. An event captures something that happened, like a meeting. A fact describes what an agent learned about a record and cites its evidence. See records and provenance for a complete example.