Skip to main content

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_KEY or OPENAI_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.

PackageToolsWhat it reaches
@retinue/tools-github44Code, issues, pull requests, reviews, actions, releases
@retinue/tools-google28Gmail, Calendar, Drive, Docs, Sheets
@retinue/tools-meta10WhatsApp Business and Instagram
@retinue/tools-azure9Subscriptions, resources, logs, metrics, activity
@retinue/tools-jira8JQL search, read, create, transition
@retinue/tools-linear7Search, read, create, update, states
@retinue/tools-notion7Search, pages, database queries
@retinue/tools-discord7Channels, messages, reactions
@retinue/tools-browser6Navigate, read, click, type, screenshot
@retinue/tools-confluence6Search, read, create, update with a version check
@retinue/tools-reddit6Search, read, comment
@retinue/tools-telegram6Updates, messages, media
@retinue/tools-x6Search, read, post, delete
@retinue/tools-slack4Channels, history, post, thread reply
@retinue/tools-email4Send, preview, status, list
@retinue/tools-scrape3Page, batch, crawl
@retinue/tools-search0Supplies 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. api and worker wait 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_KEY has 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:

ProfileUse forAdds
Embeddedscripts, jobs, single-tenant apps, testsin-process, createAgent().run(), persistent sessions
Server ("AgentOS")multi-tenant products with a live UIBullMQ + 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'))"