Search and read code across every repository your Corfedo workspace indexes, and ask Corfedo AI, from your terminal and scripts.
Corfedo is a self-hosted code search and AI service. It indexes the repositories you choose
across your code hosts and answers searches and questions across them, for people and coding agents.
corfedo brings it to your terminal, your scripts and CI, and the coding agents you run locally.
On macOS (Apple silicon) or Linux (x64, with glibc at least as new as Ubuntu 24.04):
curl -fsSL https://raw.githubusercontent.com/corfedo/corfedo-cli/main/install.sh | shcorfedo update keeps a copy installed this way up to date.
Sign in to your workspace once, then search, read and ask:
corfedo auth login --api https://corfedo.example.com/
corfedo search --query 'where are retries configured for HttpClient'
corfedo search --query '"SearchCode" OR /Parse\w+Query/ lang:csharp'
corfedo read github.com/acme/payments src/Payments/Program.cs --lines 1:40
corfedo symbols SearchAsync --match contains --kind method --repo 'github.com/acme/*'
corfedo ask "How does shard selection work?"Bare words find the most relevant files, text in double quotes matches exactly, /…/ is a regular expression, and
filters such as repo:, file: and lang: narrow the search.
Scripts and CI sign in with an API key file and read JSON:
corfedo auth configure-api-key --key-file /run/secrets/corfedo.key.json --profile ci
corfedo search --profile ci --query 'sym:Search' --format jsoncorfedo --help and corfedo COMMAND --help list every option.
- Install the CLI
- Sign in and profiles
- Search and read, ask Corfedo AI and conversations
- Scripting: JSON output, request files, paging limits and exit codes
- CLI commands and the search syntax
- corfedo-dotnet-sdk: .NET client with Microsoft.Extensions.AI, Semantic Kernel and Agent Framework integrations
- corfedo-python-sdk: Python client with LangChain and Pydantic AI integrations
- corfedo-typescript-sdk: TypeScript client with Vercel AI SDK and LangChain.js integrations
- corfedo-install: installer for self-hosted Corfedo on Docker or Kubernetes
Build and test instructions are in CONTRIBUTING.md.
Apache-2.0, see LICENSE and NOTICE. Corfedo names, logos and brand assets are reserved and not covered by this license.