auto-claude
A CLI tool to automatically approve Claude Desktop App tool requests
Requirements
- Python 3.11 or newer
- Claude Desktop App (macOS or Windows)
Installation
From PyPI with uv
uv tool install auto-claude
This is the recommended way for most users.
From source (for developers)
uv run src/auto_claude/auto_claude.py
Use this if you want to develop or modify the project locally.
Normal Usage
auto-claude
Or specify a port if you must:
auto-claude [port]
Port is where the Claude Desktop App will be listening for remote debugging connections. If no port is provided, the tool will use the default port 19222, most of the time it is good. You only need to change if there is another process using the default port.
- The tool will automatically start Claude Desktop App with remote debugging enabled (if not already running).
- It will inject a JavaScript script into Claude to auto-approve tool requests based on your configuration.
- Supported platforms: macOS and Windows
How it works
- The script launches Claude Desktop App with the
--remote-debugging-port=9222flag. - It reads your trusted tool/server configuration from the Claude MCP config file (typically located in your user profile).
- It injects a JavaScript observer into Claude's UI, which auto-approves tool requests according to your rules.
- Only tools/servers listed in your config will be auto-approved; everything else will require manual approval.
Configuration
The list of trusted tools and servers is read from your claude_desktop_config.json (the mcpServers section, autoapprove list).
Config file locations:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
You can edit this file directly or via the Claude Desktop App settings.
Example config
{
"mcpServers": {
"fetch": {
"command": "docker",
"args": ["run", "-i", "--rm", "mcp/fetch", "--ignore-robots-txt", "--user-agent=\"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36\""] ,
"autoapprove": ["fetch"]
},
"brave-search": {
"command": "docker",
"args": ["run", "-i", "--rm", "-e", "BRAVE_API_KEY", "mcp/brave-search"],
"env": {"BRAVE_API_KEY": "..."},
"autoapprove": ["brave_local_search", "brave_web_search"]
}
// ... more servers ...
}
}
Features
- Automatically injects JavaScript into Claude Desktop App
- Auto-approves tool requests based on configurable rules
- Works with Claude's remote debugging interface
- Smart logging and cooldown to avoid accidental multiple approvals
License
MIT
Metadata
Release files for auto-claude 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| auto_claude-0.1.4.tar.gz | 9.8 kB | Without provenance | Details for auto_claude-0.1.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| auto_claude-0.1.4-py3-none-any.whl | Python 3 | none | any | Details for auto_claude-0.1.4-py3-none-any.whl |
Total release size: 18.2 kB
Release files / auto_claude-0.1.4.tar.gz
| Download URL | auto_claude-0.1.4.tar.gz |
|---|---|
| Size | 9.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
83ebc0ff80783ea9a462a81de4fcf1ac3576852d3ec5aa03a966ff66a387f2c5
|
|
BLAKE2b-256 checksum How to use checksums |
5279eedcd7896391ca648ade30344a872dae9ccfc1f52cb324e70754322ac36e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.6.10
|
Release files / auto_claude-0.1.4-py3-none-any.whl
| Download URL | auto_claude-0.1.4-py3-none-any.whl |
|---|---|
| Size | 8.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a3687b282c1c960f29c32765a5b154c372d9c805268e386d5d692ac1bddd36b0
|
|
BLAKE2b-256 checksum How to use checksums |
4c853a2ae7c5423144c328e4d031293ab8cf94d0905259134356a9f02039c9f0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.6.10
|
Security for auto-claude 0.1.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.