feat(policy): restrict available models to sonnet, opus, haiku

Add /etc/claude-code/managed-settings.json with availableModels set to
the three Anthropic model families. The file is root-owned inside the
container so the node user cannot modify it. Managed settings cannot be
bypassed via --model flag, /model command, or ANTHROPIC_MODEL env var.
This commit is contained in:
docker-claude 2026-04-14 22:55:02 +02:00
parent 1c489f8636
commit 3adc97d901
2 changed files with 7 additions and 0 deletions

View file

@ -0,0 +1,3 @@
{
"availableModels": ["sonnet", "opus", "haiku"]
}