Skip to content

About

Search, read and ask about code across all your repositories from your terminal, scripts, CI and coding agents.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Corfedo

Corfedo CLI

CI Latest release macOS arm64 and Linux x64 License: Apache-2.0 Documentation

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.

Install

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 | sh

corfedo update keeps a copy installed this way up to date.

Usage

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 json

corfedo --help and corfedo COMMAND --help list every option.

Documentation

Related repositories

Development

Build and test instructions are in CONTRIBUTING.md.

License

Apache-2.0, see LICENSE and NOTICE. Corfedo names, logos and brand assets are reserved and not covered by this license.

About

Search, read and ask about code across all your repositories from your terminal, scripts, CI and coding agents.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages