{% extends "base.html" %} {% block title %}API keys{% endblock %} {% block content %}
Local Ambassador

API keys for OpenAI-compatible clients

Paste this Bearer token into LibreChat, Cherry Studio, AnythingLLM, OpenWebUI, or any other client that speaks the OpenAI API. The Connector's Ambassador (running on this machine) accepts it only from 127.0.0.1 loopback, so a leak off-host is harmless until an attacker also has access to this machine.

Endpoint {{ ambassador_url }}/v1
Bearer token {{ token_masked }}
File on disk {{ token_path }} (0600)
Step-by-step

How to use it

Generic pattern across every OpenAI-compatible client. Concrete screenshots for LibreChat / Cherry Studio / AnythingLLM / OpenWebUI live at the docs link below.

  1. Open your client's Custom OpenAI Provider settings (label varies: "OpenAI-compatible API", "Custom endpoint", "Base URL").
  2. Base URL: paste {{ ambassador_url }}/v1 (or {{ ambassador_url }} if the client appends /v1 automatically).
  3. API key: click Copy token above, paste into the API key field. The client sends it as Authorization: Bearer <token>.
  4. Model: leave on default or pick from your Mastio's configured providers. The Connector forwards to the Mastio you enrolled at, so the model catalog mirrors what your org allows.
Per-client setup docs → ← Back to overview
{% endblock %} {% block after_body %} {% endblock %}