Getting Started

Two install paths. Same server. Choose what fits your workflow.

Quick Start

npx @copilotkit/pathfinder init
npx @copilotkit/pathfinder serve

Quickest start. No Docker needed. Add Postgres later for semantic search.

docker pull ghcr.io/copilotkit/pathfinder
docker run -v ./pathfinder.yaml:/app/pathfinder.yaml \
  -v ./docs:/app/docs -p 3001:3001 \
  ghcr.io/copilotkit/pathfinder

Production-ready. Use docker-compose to add Postgres for full semantic search.

Try It — Pathfinder on Its Own Docs

This documentation site is indexed by a live Pathfinder instance. Connect your AI agent to search and explore these docs via MCP:

Claude Code

$ claude mcp add pathfinder-docs \ --transport http \ https://mcp.pathfinder.copilotkit.dev/mcp

Claude Desktop / Cursor / Any MCP Client

{ "mcpServers": { "pathfinder-docs": { "url": "https://mcp.pathfinder.copilotkit.dev/mcp" } } }

Once connected, your agent can search-docs("how to configure sources") or explore-docs("cat /docs/quickstart.mdx") to get answers from these pages.

Auto-Generated Endpoints

Pathfinder automatically generates and serves several discovery endpoints. These are cached and invalidated whenever sources are reindexed.

Analytics API Endpoints

When analytics is enabled, the following API endpoints are available (authenticated via ANALYTICS_TOKEN bearer token):

All HTTP responses include Link headers pointing to /llms.txt and, when available, </faq.txt>; rel="faq", so clients can discover these endpoints automatically.

CLI Commands

$ npx @copilotkit/pathfinder validate # or with a custom config path: $ npx @copilotkit/pathfinder validate -c custom.yaml

Learn More

Configuration Reference

Full annotated pathfinder.yaml — server, sources, tools, embedding, indexing, and webhooks. Includes example configs for bash-only, full-stack, multi-repo, and multi-version setups.

Deployment Guide

Docker, Docker Compose, Railway, and generic VPS deployment. Environment variables, volume mounts, and production setup.

MCP Client Setup

Connect Claude Desktop, Cursor, Codex, VS Code (Continue), or any Streamable HTTP client to your Pathfinder instance.

Search Features

How semantic search works, the qmd command, related files, grep-miss suggestions, and search tool parameters.