> For the complete documentation index, see [llms.txt](https://docs.dropzone.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.dropzone.ai/edge/readme/ai-provider-management.md). Agents can also search and read this documentation through its [MCP server](https://docs.dropzone.ai/~gitbook/mcp).

# Managing AI Providers

{% hint style="warning" %}
GitBook, our documentation hosting solution, is currently experiencing an outage. We are tracking this via <https://status.gitbook.com> and with our support reps.

Until it is resolved this documentation may be out of date.
{% endhint %}

Once Dropzone is running, you can add or update AI providers and models at any time. This page covers the recommended workflow for making changes, what `validate-config` checks, and how to recover if `ai-core` fails to start after a configuration change.

## Adding or Updating Models

1. Generate a ready-to-paste YAML snippet for your provider, showing all valid model names and `deployment_name` fields:

   ```bash
   /opt/dropzone/bin/ai-model-tool generate-config --provider openai
   ```
2. Paste the snippet into `/opt/dropzone/deploy/ai_provider_config.yaml` and fill in your deployment names
3. Validate that all model names are correct:

   ```bash
   /opt/dropzone/bin/ai-model-tool validate-config
   ```

   To also verify live connectivity (auth and deployments), add `--check-connectivity`:

   ```bash
   /opt/dropzone/bin/ai-model-tool validate-config --check-connectivity
   ```
4. Fix any errors reported and repeat step 3 until you see:

   ```
   OK: config is valid.
   ```
5. Apply the changes:

   ```bash
   /opt/dropzone/bin/deploy-dropzone up
   ```

No additional downtime is expected from this operation as long as validation passes before you restart.

{% hint style="info" %}
By default, `validate-config` checks model name spelling only. Add `--check-connectivity` to also probe each enabled model with a live API call, verifying auth and deployment reachability. This catches 401/403 (bad API key) and 404 (wrong deployment name or endpoint) errors before you restart.
{% endhint %}

## What validate-config Checks

`validate-config` runs in two phases:

* **Model key names** — checks every model name under `models:` against the built-in catalog. A misspelled name silently breaks the override for that model: a wrong `deployment_name`, per-model API key, or endpoint setting will never apply if the key does not match the catalog
* **Connectivity** — makes a test call to each enabled model using your configured credentials. Reports authentication failures (401/403) and model-or-deployment-not-found errors (404) per model

`validate-config` is your pre-flight check. `ai-core` also validates connectivity at startup, but catching failures before a restart avoids a restart cycle.

## What Happens When ai-core Starts

`ai-core` runs both model name validation and connectivity probes on every startup — no flag is needed. It will intentionally exit if:

* Any model name in the config does not match the built-in catalog
* Any enabled model returns an authentication error (401/403) at startup
* Any enabled model or deployment name is not found (404) at startup

All errors are collected and reported at once before the container exits. This is by design — a misconfigured provider that silently fails investigations is harder to diagnose than a container that exits with a clear error message. Check `ai-core` logs for the specific model and error:

```bash
docker compose -p dz logs ai-core
```

Common log patterns to look for:

* **Invalid model key** — a model name does not match the built-in catalog. Run `ai-model-tool validate-config` to identify and fix the offending names before restarting
* **Authentication failure (401/403)** — credentials are missing, incorrect, or do not have permission to access the model. Verify the API key in `config.yml` and your provider account permissions
* **Model or deployment not found (404)** — a `deployment_name` in your config does not match any deployed model in your provider account. Check your provider console (e.g. Azure OpenAI Studio) to verify your deployment names and compare them against the `deployment_name` values in `ai_provider_config.yaml`. Check `ai-core` logs to see which deployment(s) failed

{% hint style="info" %}
In air-gapped or restricted-network environments where models are expected to be unreachable at startup, the server-level flag `--skip-model-validation` disables both name and connectivity checks. Contact our Customer Success team before using this flag.
{% endhint %}

## Recovery: If ai-core Won't Start

If `ai-core` is failing to start and you need to get the stack running again quickly while you debug, revert to the minimal valid config:

1. Replace `/opt/dropzone/deploy/ai_provider_config.yaml` with a minimal working config:

   ```yaml
   providers:
     openai:
       enabled: true
   ```
2. Run `deploy-dropzone up` — `ai-core` will start with this simple config
3. Use `ai-model-tool generate-config` and `validate-config` to iteratively build your correct config while core is running
4. Once `validate-config` passes cleanly, run `deploy-dropzone up` again to apply

{% hint style="warning" %}
The minimal config above requires `openai-api-key` to be set in `config.yml`. If you do not have an OpenAI key configured, substitute another provider you have a key for and set `enabled: true` for that provider instead.
{% endhint %}
