Integration guide · Checked 25 November 2026

LibreChat with Plugsky: custom endpoint setup

LibreChat is an open-source ChatGPT-style workspace. This guide adds Plugsky as a custom OpenAI-compatible endpoint, keeps the key server-side, and lists the limits to size before a team rollout.

Short answer. Add a custom endpoint to librechat.yaml with baseURL: https://api.plugsky.com/v1, apiKey: ${PLUGSKY_API_KEY} and a default model list. Restart LibreChat, pick Plugsky in the model selector, and send a test message. The base URL includes /v1; do not append /chat/completions.

Why use a custom endpoint instead of an override

LibreChat ships with OpenAI, Anthropic, Google and other built-in endpoints. The custom endpoint block is the supported way to add a provider that speaks the OpenAI protocol but is not one of those vendors. It keeps the Plugsky key on the server, shows the provider as a first-class option in the model picker, and lets LibreChat fetch the live model list from GET /v1/models.

A per-user “custom API key” override works for a single tester, but it is the wrong shape for a team. The endpoint block is reviewable, versioned and shared by every user in the workspace.

Add the Plugsky endpoint

Merge this block into the librechat.yaml at the root of your LibreChat deployment. The version below matches the current LibreChat configuration schema.

version: 1.3.19
cache: true
endpoints:
  custom:
    - name: "Plugsky"
      apiKey: "${PLUGSKY_API_KEY}"
      baseURL: "https://api.plugsky.com/v1"
      models:
        default:
          - "plugsky-pro"
          - "plugsky-max"
          - "plugsky-lite"
        fetch: true
      titleConvo: true
      titleModel: "plugsky-lite"
      modelDisplayLabel: "Plugsky"

fetch: true asks Plugsky for the current model list. If your network blocks that call, the three default IDs still work. titleModel: plugsky-lite keeps automatic conversation titles on the cheapest text model instead of spending a frontier request on a title.

Set the key and restart

Put the key in the LibreChat environment, not in the YAML file:

PLUGSKY_API_KEY=sk-live-...

If you run LibreChat with Docker Compose, add the variable to the api service environment and restart the stack. A restart is required because LibreChat reads librechat.yaml and the environment at boot.

Verify the connection

  1. Open the model selector. Plugsky should appear as a provider.
  2. Send a one-line prompt to plugsky-lite. It is the free text model and the fastest way to prove auth.
  3. Switch to plugsky-pro and send a longer prompt. Confirm that streaming tokens arrive incrementally, not in one block.
  4. Open a new conversation and confirm the title is generated without a visible delay.

Model choices

Suggested Plugsky models for LibreChat
ModelUse it forFree plan?
plugsky-liteFast chat, titles, simple extractionYes
plugsky-proGeneral workhorse, coding and analysisNo
plugsky-maxHarder reasoning and longer contextNo

Limits to size before rollout

The free plan is an evaluation tier: 100 requests and 50K tokens per day, one concurrent request, 32K input and 2K output, two free model IDs. Hobby at $8/month raises this to 1,000 requests and 2M tokens per day, four concurrent requests and 64K input / 8K output. Builder and Scale remove the monthly token cap, subject to fair-use concurrency and RPM limits.

If a LibreChat workspace has more than a handful of active users, start at Starter or Builder. A shared chat UI multiplies requests quickly because every title, retry and regeneration is a separate call.

Troubleshooting

  • 401 or “invalid API key”: the environment variable is not visible to the LibreChat API container. Check the service environment and restart.
  • Empty model list: set fetch: false and keep the three default IDs, or allow outbound access to api.plugsky.com.
  • 404: the base URL is wrong. It must end in /v1 and must not include /chat/completions.
  • 429: you hit the plan’s RPM or concurrency limit. Reduce parallel users or move to a higher plan.
  • Streaming arrives in one block: a reverse proxy is buffering the response. Disable buffering for the LibreChat route.

Security notes

Keep PLUGSKY_API_KEY server-side. Do not expose it through a NEXT_PUBLIC_ variable or a browser bundle. LibreChat proxies model calls through its API service, so the key should never reach the client. Document the data flow: prompts and generations leave your network for the Plugsky region your account uses, while LibreChat’s database and uploaded files stay in your deployment.

Put LibreChat in front of one flat-rate API

Start with the free key, then move to Hobby or Builder when the workspace has real users.

Start Free → Why flat-rate

Related pages

Sources

Official pages used for this integration guide
ProjectPage checkedChecked
LibreChatCustom endpoint configuration25 Nov 2026
LibreChatlibrechat.yaml reference25 Nov 2026
PlugskyPricing and plan limits25 Nov 2026
PlugskyModel catalogue25 Nov 2026

Last checked 25 November 2026. Plugsky limits are canonical at /pricing; the model list is at /models.