SuperAPI AI Directory

claude-overlay

Claude Overlay is a frameless, always-on-top chat window for Claude Code that floats over everything you do. Summon it w…

Open website

About this tool

claude-overlay is a command-line tool for managing project-level configuration for Claude Code, aimed at scenarios where Claude Code is connected to a custom or third-party model provider. It is not itself a model or a chat interface, but rather performs "surgical" overlay and restoration around Claude Code's project configuration.

[Purpose and Problems Solved] When Claude Code runs through a proxy or third-party endpoint (Databricks, Amazon Bedrock, OpenRouter, LiteLLM, or others), Anthropic's native WebSearch and WebFetch tools may not work because they depend on Anthropic's own infrastructure. claude-overlay creates a project-level configuration overlay for this purpose, achieving: routing Claude Code to a custom endpoint; replacing native web search with MCP-based alternatives (Tavily + DuckDuckGo); preserving all existing project settings and MCP servers; and cleanly switching between a custom provider and native Anthropic mode.

[Installation and Environment Requirements] Can be installed via Homebrew (macOS / Linux). Requirements: bash, python3 >= 3.7, npx (Node.js). The text does not provide the specific installation command text.

[Main Capabilities] Enable/disable toggling: disable precisely removes the key-values managed by claude-overlay, including provider environment variables (ANTHROPIC_MODEL, ANTHROPIC_BASE_URL, ANTHROPIC_AUTH_TOKEN, etc.), MCP web search servers (tavily, duckduckgo), MCP tool permission rules, and native tool deny rules; all other custom permissions, other MCP servers, and other environment variables remain unchanged. After disabling, Claude Code falls back to global settings (~/.claude/settings.json). enable merges the overlay key-values back into the project configuration without creating duplicates. There is also a status viewing command that shows the complete project status.

[Multiple Providers and Team Sharing] configure can be run multiple times to add providers; existing providers are preserved. Configuration can be exported via export (secrets are sanitized into env: references) to share with teammates, with import supported. doctor can be run to validate the complete configuration, including first-run gating checks and local proxy checks.

[Provider Example Key Points] The configuration file is located at ~/.config/claude-overlay/config.json, and secrets use the env: prefix to be read from environment variables at runtime. Databricks: exposes Claude models in the Anthropic Messages API format; WebSearch/WebFetch are unavailable and MCP must be used instead. OpenRouter: only guarantees Claude Code compatibility for Anthropic first-party providers; non-Anthropic models are not guaranteed to work. LiteLLM: can serve as a unified API proxy frontend and can intercept web_search calls for server-side execution; note that PyPI versions 1.82.7 and 1.82.8 were once implanted with credential-stealing malware. Cloudflare AI Gateway: acts as a pass-through proxy, native tools are available, and an MCP search server may not be needed. Bedrock: if an organization routes through a custom gateway, claude-overlay can be used for management; for standard usage, the built-in CLAUDE_CODE_USE_BEDROCK=1 can be used. Custom/Enterprise Proxy: any endpoint that exposes the Anthropic Messages API format (/v1/messages) can be used.

[Technical Mechanism] Uses an overlay approach rather than full replacement: setup saves provider-overlay.json recording the keys it manages, then merges them into .claude/settings.local.json and .mcp.json; disable only removes these keys. Sensitive files are created with chmod 600 and added to .gitignore. Supports a per-provider env block to pass arbitrary environment variables, such as using CLAUDE_CODE_MAX_CONTEXT_TOKENS to set the real context window for local models. The merge order is that the latter overrides the former, and hardcoded fields always take precedence. Security measures include file permissions, atomic writes,env: references, MCP package version pinning, HTTPS restrictions, etc.

[FAQ (Summary)] This tool is not needed when using the Anthropic API directly; Bedrock / Vertex AI have native integrations, so use it only when layering a gateway or when an MCP search alternative is needed; supports multiple providers and team project use.

[Limitations] Specific installation commands, and descriptions such as the "floating chat window / always-on-top" in interface screenshots, are not fully covered in the official text and are not provided for now.