Installation
Retinue is the product. @retinue/agentkit is its primary TypeScript SDK and runtime package.
What you need
- Node.js 20+
- A model provider API key (e.g.
ANTHROPIC_API_KEYorOPENAI_API_KEY) - For the server profile only: PostgreSQL/Supabase and Redis (durable runs & jobs)
Install
Retinue ships as nineteen packages: the runtime, a headless React client, and seventeen integration packages you install only if you use them.
# Primary SDK/runtime package. Install one model-provider peer for the embedded quickstart.
npm install @retinue/agentkit @ai-sdk/anthropic
# headless React client (optional, for a UI) — React is a peer dependency
npm install @retinue/react react
@retinue/agentkit bundles everything server-side: the durable runtime, the default AI-SDK engine,
the tool registry, the model registry and the reference in-memory adapters. Swap in the Postgres /
Supabase adapters for production. @retinue/react is transport-agnostic headless state — hooks,
reducers, localization — plus an optional UI component set.
Integration packages
An integration is a sibling package, not a folder inside the runtime. Each brings its own dependencies and ships on its own version, so a vendor changing an API is a patch to one small package rather than a release of the runtime.
Install what you use, and nothing else:
npm install @retinue/tools-github @retinue/tools-slack
Seventeen packages, 161 tools.
| Package | Tools | What it reaches |
|---|---|---|
@retinue/tools-github | 44 | Code, issues, pull requests, reviews, actions, releases |
@retinue/tools-google | 28 | Gmail, Calendar, Drive, Docs, Sheets |
@retinue/tools-meta | 10 | WhatsApp Business and Instagram |
@retinue/tools-azure | 9 | Subscriptions, resources, logs, metrics, activity |
@retinue/tools-jira | 8 | JQL search, read, create, transition |
@retinue/tools-linear | 7 | Search, read, create, update, states |
@retinue/tools-notion | 7 | Search, pages, database queries |
@retinue/tools-discord | 7 | Channels, messages, reactions |
@retinue/tools-browser | 6 | Navigate, read, click, type, screenshot |
@retinue/tools-confluence | 6 | Search, read, create, update with a version check |
@retinue/tools-reddit | 6 | Search, read, comment |
@retinue/tools-telegram | 6 | Updates, messages, media |
@retinue/tools-x | 6 | Search, read, post, delete |
@retinue/tools-slack | 4 | Channels, history, post, thread reply |
@retinue/tools-email | 4 | Send, preview, status, list |
@retinue/tools-scrape | 3 | Page, batch, crawl |
@retinue/tools-search | 0 | Supplies providers for the built-in web_search — Brave, Tavily, Serper, SearXNG |
Every one takes @retinue/agentkit as a peer dependency, so install the runtime first. Two carry a
prerequisite no package can satisfy for you: tools-email needs SPF, DKIM and DMARC on the sending
domain, and tools-browser needs a browser you provide.
See Working with tool packages for the path from install to a first call, and Integrations for each vendor's credentials and scopes.
The whole stack, with Docker
For the server profile, compose.yaml in the repository brings up Postgres (with pgvector), Redis, a migration
step and the API host and worker:
RETINUE_MODEL_API_KEY=sk-… docker compose up
Three things about it are deliberate:
- The ports are not the defaults — 55440, 56380 and 4010. You very likely have Postgres on 5432 and Redis on 6379 already, holding data that matters, and a compose file that binds them looks broken for reasons nobody connects to this.
- Migrations are a service, not a note in the README.
apiandworkerwait for it to complete successfully, so a stack that comes up has a schema. "Remember to migrate" is a step people forget exactly once and then debug for an hour. RETINUE_MODEL_API_KEYhas no default and is not written down. Starting without it fails with a message naming the variable, rather than a stack that starts and dies on the first message.
docker compose down keeps the data; down -v is the deliberate reset.
Two profiles
Retinue runs the same core in two shapes — pick per app:
| Profile | Use for | Adds |
|---|---|---|
| Embedded | scripts, jobs, single-tenant apps, tests | in-process, createAgent().run(), persistent sessions |
| Server ("AgentOS") | multi-tenant products with a live UI | BullMQ + Redis, GraphQL/SSE, realtime, HITL, recovery |
The embedded profile needs no server infrastructure. See Quick Start to run your first agent, then Configuration for the server profile.
Verify
node -e "import('@retinue/agentkit').then(() => console.log('retinue ready'))"