Stop AI agents changing their own settings

An agent that can edit its own settings can approve itself, add an MCP server or point itself at another model endpoint. With the settings lock on, it can't. You still can, outside the AI.

What's locked

Claude Code settings~/.claude/settings.json, settings.local.json, ~/.claude.json, .mcp.json
Block
Codex and Cursor settings~/.codex/config.toml, ~/.codex/hooks.json, .cursor/mcp.json
Block
Adding MCP servers from the agentclaude mcp add, codex mcp add, claude config set
Block
Another model endpointANTHROPIC_BASE_URL or OPENAI_BASE_URL pointed away from Anthropic or OpenAI, for an agent
Block
Approvals off--dangerously-skip-permissions, --yolo, bypassPermissions
Block

Undo changes made outside the agent

With Pro, a new MCP server, a changed base URL, removed Muzzle hooks or bypassed approvals show up in Activity, with Undo to put the previous version back.

Questions

Can I still change my settings?

Yes. The lock applies to the AI's tool calls. Edit the file yourself, or run the command in your own terminal.

Does pointing my own app at a gateway count?

No. A base URL change is blocked only when it reaches Claude Code or Codex, such as in a shell profile or a command that starts the agent.

Is it on by default?

Yes, on Free and Pro. You can switch it off in Settings.

Put Muzzle between your agents and the internet

Download for Mac

Free · Apple Silicon · macOS 12 or later