There is a builtin sandbox and various third-party options https://code.claude.com/docs/en/sandbox-environments