# Retainer documentation

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](/docs/hosted/) — Create a workspace and connect your first agent.


- [Self-host Retainer](/docs/self-hosted/) — Start Retainer and Postgres with Docker Compose.


- [Connect through MCP](/docs/mcp/) — Set up Codex or Claude and verify the connection.


- [Build with the API](/docs/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](/docs/concepts/) for a complete example.
