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.1.tar.gz (9.2 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.1-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for auto_claude-0.1.1.tar.gz
Algorithm Hash digest
SHA256 8e2308a4ee9037a09446d4047b52e8446a22adbbd8b90aeace465baa8c44118b
MD5 69c998be1eb004e53d5443af8017bdd0
BLAKE2b-256 ccebafb5b67899ec0117c5ea9b86baec9de41e0aacb96f8d2e9449d2625c0de0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for auto_claude-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0be0a0fd88ba8ae2bd6f562e61c59441ffdde3a4239ff0ca595ca7074c0ed6ae
MD5 aca09d440442573df7af704fbdedf935
BLAKE2b-256 d655c120ff523fa85afbb9275d829a0b90d3f138e3bb42f58fb440764ddd5345

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