> For the complete documentation index, see [llms.txt](https://docs.codna.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.codna.ai/reference/faq.md). Agents can also search and read this documentation through its [MCP server](https://docs.codna.ai/~gitbook/mcp).

# FAQ

Short answers about offline use, where your code goes, cost, languages, pull-request commands, review verdicts, and private repositories.

## Does Codna need Node, Bun, or Docker?

No. `pip install codna` is self-contained. Everything Codna runs ships inside the wheel. See [Installation](https://docs.codna.ai/getting-started/installation.md).

## Can it run offline?

Repository understanding, `codna triage`, `codna impact`, and code memory run fully offline. `codna fix` and `codna review` call your model provider. `codna review` also checks dependency findings against the npm and PyPI registries, unless `privacy.egress: fail-closed` is set.

## Where does my code go?

Codna maps your repository locally, with no model. When the agent plans a fix, only the compact, issue-specific evidence bundle goes to your model provider, not the whole repository. A review sends the pull-request diff and your project guidance. Secrets are redacted first, and that cannot be turned off. See [Privacy and data](https://docs.codna.ai/concepts/privacy.md).

## Managed models or bring-your-own-key?

Both. On your machine, set a provider key with `codna key set <provider>` and bill your own provider account. The [GitHub App](https://docs.codna.ai/guides/github-app.md) is keyless per repository and meters against the Codna account you link, which includes a managed-model allowance; add your own key on the account page for uncapped usage. See [Models & BYOK](https://docs.codna.ai/concepts/models-and-byok.md).

## What does it cost to run?

Understanding a repository costs no model tokens. It is deterministic. Only the agent's fix or review step spends tokens, and it works from a scoped evidence bundle or the diff. Each `codna fix` reports its token use and cost when the provider returns them.

## Which languages are supported?

Repository understanding is language-agnostic: it reads the import, require, include and use references in your files to build the dependency graph. The on-device memory extractor supports Python plus JavaScript, TypeScript, TSX, Go, Rust, Java, C, C++, C#, PHP, and Ruby. See [Language support](https://docs.codna.ai/concepts/languages.md).

## What can I type on a pull request?

Two commands, at the start of a line: `@codna review` runs a review, and `@codna fix`, as a reply to a Codna finding, opens a fix pull request for it. `@codna fix` needs write access and does not work on fork pull requests. See [GitHub App § Comment commands](https://docs.codna.ai/guides/github-app.md#comment-commands).

## What does a review post?

One review per push with inline findings (severity, category, confidence, and a suggestion where possible), and one `codna review` check. A clean diff at medium and high is posted as an Approve; otherwise a comment. A red required check is named next to the verdict. See [codna review](https://docs.codna.ai/guides/review.md).

## Can it work on private repositories?

Yes. Run it locally against a checkout or a git URL with your token. For hosted automation, the [GitHub App](https://docs.codna.ai/guides/github-app.md) uses a short-lived, repository-scoped installation token per job.

## Which scanners does `codna secure` support?

Any scanner that emits SARIF 2.1.0 with a full commit and a driver name and version. CodeQL, Semgrep, Snyk, and Trivy are the tested drivers. See [Security Autofix](https://docs.codna.ai/guides/security-autofix.md).

## App or Action: which should I use?

The [GitHub App](https://docs.codna.ai/guides/github-app.md) is hosted and reviews and fixes pull requests with no CI setup. The [GitHub Action](https://docs.codna.ai/guides/github-action.md) runs on your CI runner so you control gating. They run the same `codna` commands and are complementary.

## How do I check that it's working?

`codna --version` confirms the install; `codna status` shows runtime, memory, and key state; `codna doctor` gives the full diagnostic. See [Local runtime](https://docs.codna.ai/reference/operations.md).

## How do I report a bug?

`codna report "title" --body "..."` files it to [thyn-ai/feedback](https://github.com/thyn-ai/feedback). Security reports go to <security@codna.ai> and are acknowledged within two business days.

## Still stuck?

See [Troubleshooting](https://docs.codna.ai/reference/troubleshooting.md), or ask on [Discord](https://discord.gg/w8NDsph9an).
