How it works
When reviewing a pull request or responding in chat, CodeRabbit may perform web queries to include publicly available information — such as current documentation — that may not have been included in the underlying AI model’s training data. You can see when web search was used by checking the Review details section in the walkthrough summary comment (requiresreview_details: true in your
configuration).
Configuration
Control web search with theknowledge_base.web_search setting in your
.coderabbit.yaml file.
| Field | Type | Default | Description |
|---|---|---|---|
knowledge_base.web_search.enabled | boolean | true | Use web search to gather additional context. |
Disabling web search
You may want to disable web search in situations such as:- Air-gapped or restricted environments — where outbound network access from the review process is not permitted.
- Policy requirements — where your organization restricts use of external data sources during code review.
enabled to false:
If you want CodeRabbit to have access to the latest documentation or other up-to-date information, but don’t want to grant full web search access, consider connecting MCP Servers instead.