Skip to content
Docs

9 results

CLI and MCP

Use Seren from agents and terminals

Download the unified Seren binary for terminal workflows and local MCP, or connect supported assistants directly to hosted Seren MCP.

Install

Get the unified Seren binary

Release binaries are available for macOS, Linux, and Windows. The same binary provides the CLI and the local MCP server. Cargo users can install directly from the Seren repository.

Install the Seren CLI
cargo install --git https://github.com/serenorg/seren.git --package seren-cli
Download a release

Authenticate

Log in and verify the active profile

Browser login is the recommended interactive path. Automation can supply SEREN_API_KEY and select a profile with --profile or SEREN_PROFILE.

Authenticate and verify the Seren CLI
seren auth login
seren auth status
seren me

First workflows

Inspect before you change anything

These commands show your current employees, skills, databases, and pending approvals before you change anything.

Agents and cloud

Agents and cloud CLI commands
seren agent cloud overview
seren agent cloud approvals list --limit 20
seren agent managed-list

Skills and models

Skills and models CLI commands
seren skills search browser
seren skills installed
seren agent private-models list

Database

Database CLI commands
seren projects list
seren database list
seren branches --project-id <id> list

Passwords

Passwords CLI commands
seren passwords vaults list
seren passwords approvals list
seren passwords audit list

Automation

Request JSON in scripts and CI

The global output flag keeps the same commands useful to humans and automation. Prefer environment credentials in CI rather than passing an API key on the command line.

An API key can use its granted capabilities but cannot create, list, or revoke API keys. Sign in as a user when administering keys, then give automation a scoped key for the publishers or operations it needs.

Use Seren CLI JSON output
export SEREN_API_KEY=your_seren_api_key

seren -o json agent cloud overview
seren -o json projects list

Agent memory

Connect agent sessions to Seren Memory

Install Seren-owned lifecycle hooks for Codex or Claude Code. The CLI preserves unrelated hooks in each agent configuration.

Install and inspect Seren Memory hooks
seren memory agent install --codex
seren memory agent install --claude

seren memory agent status --codex
seren memory agent status --claude

seren memory hook status
seren memory hook flush

The agent status command reports installation state. The hook status command reports content-free delivery health. Codex also requires an explicit trust decision. After installation, open /hooks. Review the Seren commands. Then enable them.

The hooks bring reviewed private memory into new sessions and capture policy-permitted completed turns. Captured facts start unreviewed and remain private to the authenticated user inside the organization.

Explore Seren Memory

claude-mem migration

Build the opt-in migration command

The standard Seren CLI and MCP server do not include SQLite. Build the CLI with the claude-mem feature only when you need the one-time importer. This build includes bundled SQLite for consistent, read-only snapshots of the existing database.

Install the migration-enabled Seren CLI
cargo install --git https://github.com/serenorg/seren.git --package seren-cli --features claude-mem

Inspect the source data first. Then create a plan before any service import. Review the workspace mappings and resolve each undecided entry. Accept the plan before an import. A local rehearsal makes no service calls.

Inspect, rehearse, and plan a claude-mem migration
seren memory migrate claude-mem inspect --database ~/.claude-mem/claude-mem.db
seren memory migrate claude-mem rehearse --database ~/.claude-mem/claude-mem.db --output ./claude-mem-rehearsal
seren memory migrate claude-mem plan --database ~/.claude-mem/claude-mem.db --output ./claude-mem-plan.json
seren memory migrate claude-mem accept --plan ./claude-mem-plan.json

CAUTION: Protect the rehearsal output. Delete it after review. It contains transformed memory content.

Run and verify a planned migration
seren memory migrate claude-mem run --plan ./claude-mem-plan.json
seren memory migrate claude-mem status <migration-id>
seren memory migrate claude-mem resume <migration-id>
seren memory migrate claude-mem verify <migration-id>

If you need a shorter cutover, repeat normal snapshots while claude-mem remains active. Keep Seren hooks disabled during these snapshots. Before the final catch-up, disable the claude-mem hooks. Then stop its worker. Verify the final migration. Then enable Seren hooks.

CAUTION: Use rollback only when you intend to delete imported records. Rollback permanently deletes records selected through migration provenance.

Complete or roll back the cutover
seren memory migrate claude-mem run --plan ./claude-mem-plan.json --final-catch-up --source-stopped
seren memory migrate claude-mem verify <migration-id>
seren memory migrate claude-mem rollback <migration-id> --series --yes

Rollback deletes only records attributed to the selected migration. It does not delete live hook, manual, or MCP memories. Keep the old database and migration report as a read-only archive.

MCP

Choose hosted or local MCP

Hosted MCP is the default: you sign in through the browser and never copy an API key into the assistant. Run the local server instead when you want to authenticate with an API key or keep everything, including credential unlock, on your own machine.

Connect hosted Seren MCP
codex mcp add seren --url https://mcp.serendb.com/mcp
claude mcp add --scope user --transport http seren https://mcp.serendb.com/mcp
Run local Seren MCP
export API_KEY=your_seren_api_key
seren mcp start

# Claude CLI with the local stdio server
claude mcp add --scope user --env API_KEY=your_seren_api_key --transport stdio seren-local -- seren mcp start
Connect more MCP clients

Reference

Complete references

The repository references track every command group, argument, MCP mode, environment variable, and advanced security configuration next to the implementation.