Session Capture: uploads Claude Code sessions to your team's seshi server as they happen, with a /session-capture skill, and in the desktop app a Session Capture chip and /session-capture, to turn capture off or on for a session. /seshi:setup sets seshi up with you, for one laptop or a team.
Seshi is an open-source toolkit for capturing, redacting, storing, and analyzing coding agent sessions. It works across agents and environments within your infrastructure.
Who is Seshi for?
Teams that want to get the most out of coding agents. Agent sessions are incredibly rich with information. In many ways they are the new PR. They tell you how work was done, what decisions were made, what went wrong, etc.
Seshi is the easiest way for teams to create a secure shared session store for building downstream applications like
Token usage and spend insights
Shared memory layer
Team decision log
Measuring agent friction
and much much more.
Why Seshi?
One format for every coding agent. Capture sessions from Claude Code, Codex, Cursor,
OpenCode, pi, Gemini CLI, and Datadog Trajectory (supported agents). Normalize everything into a common format and
export as OpenTelemetry spans or ATIF. Extend support with
your own integrations.
Local and cloud agents. Collect sessions from developer machines, cloud sandboxes, and eval
harnesses through native integrations, OpenTelemetry, Datadog LLM Observability, or S3.
Your data, your storage. Store sessions in AWS S3, Cloudflare R2, any compatible object
store with conditional writes, or a local folder. Your storage is the source of truth, with an
open, documented layout that any tool can read.
Redaction by default. Remove secrets before they're stored. Customize redaction rules and
LLM-based redaction to fit your needs.
Privacy and control. Keep sessions private or share them with your organization. Disable
capture for individual sessions, folders, or repositories, with automatic retraction of
disabled sessions.
Your identity provider. Authenticate with Okta, Microsoft Entra, any OIDC provider, or a
shared organization key. Tokens are scoped, hashed, and revocable.
Search across sessions. Find exactly what agents said and did, including prompts,
responses, tool calls, file paths, and commands.
How is this different from agent observability tools?
LLM observability tools trace the agents you build. Seshi keeps the sessions of the agents you
build with.
A different audience. Observability is for teams shipping LLM products and debugging them
in production. Seshi is for teams using coding agents to get work done.
Built for coding agents. Hooks in the agents on each laptop and syncs from cloud agents with skills to allow developers to toggle capture on/off whenever they want.
You own the data. Sessions live in your bucket, in an open layout that can be read without
Seshi.
Kept as long as you want. Observability tools keep traces for a retention window, often a
few weeks. Seshi keeps sessions until you delete them.
Works alongside them. Seshi reads OpenTelemetry and syncs Datadog LLM Observability, and
writes sessions back out as OpenTelemetry spans.
Getting started
curl -fsSL https://github.com/dosu-ai/seshi/releases/latest/download/install.sh | sh # macOS, Linux
npm i -g @dosu/seshi # or with npm
On Windows: irm https://github.com/dosu-ai/seshi/releases/latest/download/install.ps1 | iex.
docs/install.md has the platforms, options and checksums. Rolling it out to a
whole team's machines with an MDM (Jamf, Kandji, Intune, Workspace ONE)? See
docs/fleet.md.
Let your coding agent set it up
Ask your agent to do it. It asks a few questions (just you or a team, server or serverless, where
sessions are stored, how people sign in), runs the commands, and keeps you in the loop for
sign-in and for every change to your agents' settings, without secrets passing through it.
Claude Code: /plugin install seshi --marketplace dosu-ai/seshi, then /seshi:setup.
Start a private, loopback-only sandbox with a synthetic session that runs through the real
normalization, redaction, local storage, and SQLite search pipeline. Nothing outside
~/.local/share/seshi/local is changed (no agent hooks, no keychain, no ~/.config/seshi edits):
seshi local # source checkout: bun run seshi -- local
seshi local sessions read claude-code/00000000-5e51-4000-8000-000000000001
seshi local search "pool timeout"
seshi local capture # preview real capture before changing anything