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
| Path | Use it when | You operate |
|---|---|---|
| Docker Compose | You evaluate ctxpipe, or run a small internal deployment on one host. | One Compose project and its volumes |
| AWS CDK | You run ctxpipe in your own AWS account. | The CtxPipe construct, a domain, and model access |
| Terraform | You 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 Compose | AWS CDK | Terraform | |
|---|---|---|---|
| Postgres | pgvector/pgvector:pg17 container | Aurora PostgreSQL 16 | Neon PostgreSQL 17 |
| Graph database | FalkorDB container | Amazon Neptune | FalkorDB on Railway |
| Sandboxes | Docker-in-Docker (dind) | A Graviton EC2 Docker host | Vercel Sandbox |
| Public origin | Your TLS proxy in front of the backend | Route 53 and a load balancer | Railway 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.