Self-host ctxpipe

Run the open-source core of ctxpipe on your own infrastructure. Learn which services and tasks you own.

Self-hosted ctxpipe is the same product as hosted ctxpipe. It runs in infrastructure that you control. The ctxpipe team is not in the data path. Your deployment holds the credentials and the source data. Model requests go from your deployment to the provider that you choose.

Choose a deployment path

PathUse it whenYou operate
Docker ComposeYou evaluate ctxpipe, or run a small internal deployment on one host.One Compose project and its volumes
AWS CDKYou run ctxpipe in your own AWS account.The CtxPipe construct, a domain, and model access
TerraformYou want a starting point for Railway and Neon. It is the layout of hosted ctxpipe, so you must fork it.Railway, Neon, Vercel Sandbox, and your CI

Each path provides the same services in a different way:

Docker ComposeAWS CDKTerraform
Postgrespgvector/pgvector:pg17 containerAurora PostgreSQL 16Neon PostgreSQL 17
Graph databaseFalkorDB containerAmazon NeptuneFalkorDB on Railway
SandboxesDocker-in-Docker (dind)A Graviton EC2 Docker hostVercel Sandbox
Public originYour TLS proxy in front of the backendRoute 53 and a load balancerRailway domains

Start with the quickstart. It covers each path.

What you run

  • Backend: auth, the REST API, the MCP endpoint, webhooks, and the public origin. It also serves the UI.
  • UI: the web app, behind the backend.
  • Worker: the background jobs for ingestion, connectors, and Workspace writes.
  • Codesearch: repository clones and code search indexes, on persistent storage.
  • PostgreSQL with pgvector: the application data and the job state.
  • A graph database: FalkorDB by default.
  • A sandbox host: runs Workspace chat and ingestion in isolated containers. Without one, chat answers 503. For another platform, see Chat sandboxes.

OpenTelemetry export is off by default. See Observability.

What you own

  • One stable public HTTPS origin, AUTH_BASE_URL, for the browser, the API, auth, MCP, and the provider callbacks.
  • Durable storage, backups, and recovery for Postgres, the graph database, and codesearch. See Graph databases.
  • The secrets for auth and encryption, and the model provider credentials for chat, ingestion, and embeddings. See Models.
  • A provider app for each connector that you turn on: a GitHub App for repositories, and OAuth apps for Atlassian, Slack, Linear, Notion, and PagerDuty. See the source connector pages in this section.
  • Monitoring, migrations, upgrades, and rollback.

After the deployment is healthy, people use it like hosted ctxpipe. Send them to Connections and Connect your agent.