Initial commit: Anthropic integration with custom base_url support

This commit is contained in:
Robot committed 2026-02-26 20:00:05 +03:00
commit 187fcb895f
12 files changed
+2537

No files matched your search

+28
View File
@@ -0,0 +1,28 @@
# ha-anthropic-custom
A custom Home Assistant integration forked from the official [Anthropic integration](https://github.com/home-assistant/core/tree/dev/homeassistant/components/anthropic), with added support for a **custom `base_url`** parameter.
## Features
All features from the official integration, plus:
- **Custom Base URL**: Configure a custom API endpoint (e.g., a proxy, a compatible LLM API, or a self-hosted endpoint) via the `base_url` field in the config flow.
## Installation
1. Copy the `custom_components/anthropic_custom` folder to your Home Assistant `custom_components` directory.
2. Restart Home Assistant.
3. Go to **Settings → Integrations → Add Integration** and search for **Anthropic (Custom Base URL)**.
4. Enter your API key and optionally a custom `base_url`.
## Configuration
| Field | Required | Description |
|-------|----------|-------------|
| `api_key` | Yes | Your Anthropic API key |
| `base_url` | No | Custom base URL for the Anthropic API (e.g. `https://my-proxy.example.com`) |
## Notes
- If `base_url` is left empty, the default Anthropic API URL is used.
- This integration uses domain `anthropic_custom` and will not conflict with the official `anthropic` integration.