feat(claude): default allowed tools (#29)

This commit is contained in:
banteg
2026-01-03 01:03:48 +04:00
committed by GitHub
parent 7199437d3a
commit b913c86170
4 changed files with 11 additions and 4 deletions
+2 -1
View File
@@ -221,10 +221,11 @@ A minimal TOML config for Claude:
# model: opus | sonnet | haiku
model = "sonnet"
allowed_tools = ["Bash", "Read", "Write", "WebSearch"]
allowed_tools = ["Bash", "Read", "Edit", "Write", "WebSearch"]
dangerously_skip_permissions = false
use_api_billing = false
```
Takopi only maps these keys to Claude CLI flags; other options should be configured in Claude Code settings.
If `allowed_tools` is omitted, Takopi defaults to `["Bash", "Read", "Edit", "Write"]`.
When `use_api_billing` is false (default), Takopi strips `ANTHROPIC_API_KEY` from the Claude subprocess environment to prefer subscription billing.