Your AI agents don’t sleep. Now neither does their memory.

Step away from your desk and productivity drops to zero. AgentiBridge makes your Claude Code sessions persistent, searchable, and remotely controllable — from any MCP client.

AgentiBridge - Persistent session controller for your AI Agents

PyPI License: MIT Tests Docker Python 3.12+


The Problem

Your Claude Code sessions disappear when the terminal closes. Your IDE history is locked to one machine. When you leave your desk, your agent productivity drops to zero.

AgentiBridge fixes this.

It indexes every Claude Code transcript automatically, makes them searchable with AI-powered semantic search, and lets you dispatch and monitor tasks from any device — your phone, another laptop, or claude.ai.


Features

Semantic Search

Semantic Search

Ask natural language questions across all your past sessions. Powered by pgvector embeddings — no keyword matching needed.

Background Dispatch

Background Dispatch

Fire-and-forget task dispatch with session restore. Resume work where you left off, from any device.

Security First

Security First

OAuth 2.1 with PKCE, API key auth, Cloudflare Tunnel. Fully self-hosted — your data never leaves your infrastructure.

Multi-Client Fleet

Multi-Client Fleet

Works with Claude Code CLI, claude.ai, ChatGPT, Grok, and any MCP-compatible client. One server, all your clients.


Quick Start

pip install agentibridge
agentibridge run
curl http://localhost:8100/health

Add to your MCP config (~/.mcp.json):

{
  "mcpServers": {
    "agentibridge": {
      "url": "http://localhost:8100/mcp"
    }
  }
}

That’s it. Your Claude Code sessions are now searchable from any MCP-compatible client.

Zero dependencies to start — filesystem-only storage out of the box. Add Redis for caching and Postgres for semantic search when you need them.


16 MCP Tools

Foundation

Tool What it does
list_sessions List sessions across all projects
get_session Full session metadata + transcript
get_session_segment Paginated/time-range transcript retrieval
get_session_actions Extract tool calls with counts
search_sessions Keyword search across transcripts
collect_now Trigger immediate collection

AI-Powered

Tool What it does
search_semantic Semantic search using embeddings
generate_summary Auto-generate session summary via LLM

Dispatch

Tool What it does
restore_session Load session context for continuation
dispatch_task Fire-and-forget background job dispatch
get_dispatch_job Poll a background job for status and output

Knowledge Catalog

Tool What it does
list_memory_files List memory files across projects
get_memory_file Read a specific memory file
list_plans List plans sorted by recency
get_plan Read a plan by codename
search_history Search the global prompt history

Architecture

flowchart LR
    E([Any AI Client]) -->|query| D
    D -->|read| C[(SessionStore)]
    C -->|indexed by| B[Collector]
    B -->|watches| A([Claude Code sessions])

    classDef sessions fill:#6366f1,stroke:#4338ca,color:#fff
    classDef collector fill:#f59e0b,stroke:#d97706,color:#fff
    classDef store fill:#10b981,stroke:#059669,color:#fff
    classDef tools fill:#8b5cf6,stroke:#7c3aed,color:#fff
    classDef client fill:#06b6d4,stroke:#0284c7,color:#fff

    class A sessions
    class B collector
    class C store
    class D tools
    class E client

Deployment Options

  Minimal Standard Production
Install pip install agentibridge docker compose up -d Docker + Cloudflare Tunnel
Storage Filesystem only Redis + filesystem Redis + Postgres (pgvector)
Search Keyword only Keyword only Keyword + semantic
Access Local only Local network Internet (HTTPS)
Auth None API key OAuth 2.1 + API key
Dispatch N/A Local bridge Remote bridge

FAQ

Isn't this just session history?

History is the data layer. The product is remote fleet control — dispatch tasks from your phone, search sessions from any MCP client, monitor jobs from claude.ai. You go from 0% productivity away from your desk to controlling your agents from anywhere.

VS Code / Cursor already has conversation history.

IDE conversation history is excellent for local replay within that IDE. AgentiBridge serves CLI-first developers and adds capabilities no IDE provides: remote multi-client access, background dispatch from any device, and semantic search across your full session history.

Won't Anthropic build this natively?

AgentiBridge is self-hosted, vendor-neutral infrastructure. Native features optimize for one vendor’s client. AgentiBridge works with Claude Code, claude.ai, ChatGPT, Grok, and any MCP client. Your data stays on your machine. MIT licensed — no lock-in.

Do I need Redis and Postgres?

No. pip install agentibridge && agentibridge run works with zero dependencies — filesystem-only storage out of the box. Add Redis for caching and Postgres for semantic search when you need them.

Is my data sent anywhere?

No. No telemetry, no SaaS dependencies. Cloudflare Tunnel is opt-in, and even then only MCP tool responses traverse the tunnel — your transcripts stay local.

Which clients are supported?

Claude Code CLI, claude.ai, ChatGPT, Grok, and any MCP-compatible client. Run agentibridge connect for ready-to-paste configs.


Ready to make your AI agents persistent?

pip install agentibridge

Get Started Documentation View on GitHub