Skip to main content

auto-claude: A CLI tool that injects an auto-approve feature into the Claude Desktop App.

Project description

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=9222 flag.
  • 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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

auto_claude-0.1.3.tar.gz (9.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

auto_claude-0.1.3-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file auto_claude-0.1.3.tar.gz.

File metadata

  • Download URL: auto_claude-0.1.3.tar.gz
  • Upload date:
  • Size: 9.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.10

File hashes

Hashes for auto_claude-0.1.3.tar.gz
Algorithm Hash digest
SHA256 be4e04765d6c31b096244e0da90d8cda736db148073b7366b34051522bfdc451
MD5 8ccdbac6c4a20f196f9975c8df432c1b
BLAKE2b-256 07cb3831cb8d5790c0540d9d660fa4d8b38f0d93ff6d8966dc19b8a609e9bfc3

See more details on using hashes here.

File details

Details for the file auto_claude-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for auto_claude-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ecebf7a6b0d09d09ecd4b0f88b76e87fd6858b182d00cc7ffb67a9c8e79ee6d1
MD5 07599d9e388a846d1e3b7ddc97b4a72a
BLAKE2b-256 05a5e71a8dd80f5b920aee0af0b46a6d26c06ff8796b187b19b3c9c0e46a154e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page