> ## Documentation Index
> Fetch the complete documentation index at: https://docs.wandb.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# How can I disable code capture?

To disable code capture, use one of the following methods:

* During W\&B Weave client initialization, set `capture_code` to `False`: `weave.init("entity/project", settings={"capture_code": False})`.
* Set the [environment variable](/weave/guides/core-types/env-vars) `WEAVE_CAPTURE_CODE=false`.

***

<Badge stroke shape="pill" color="orange" size="md">[Code Capture](/support/weave/tags/code-capture)</Badge>
