Overview
Guardrails enable you to control what code Sphinx will generate and execute, giving you fine-grained control over AI-generated code behavior and security.Guardrail modes
Always Allow
Always Allow
Sphinx can always run code with a given artifact without requesting permission. Use this for trusted operations and frequently used libraries.
Ask For Permission
Ask For Permission
Sphinx must get approval from you before running code with a given artifact. Recommended for sensitive operations or unfamiliar tools.
Ask and Avoid
Ask and Avoid
Sphinx will avoid generating code with the artifact when possible and ask for approval if it must use it. Best for restricted or dangerous operations.
Configuring guardrails
Open the dashboard
Navigate to the dashboard and sign in to your account.
Select guardrail mode
Click on the new mode you want to apply for the specific artifact or operation.