File size: 634 Bytes
6ce529b
 
 
 
 
 
 
 
 
182a5f2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
---
license: mit
tags:
  - openclaw
  - sidecar
  - librechat
  - express
---

# OpenClaw LibreChat Bridge

Small Express bridge that exposes OpenAI-compatible chat completion endpoints for LibreChat while forwarding requests to an OpenClaw gateway.

## Endpoints

- `GET /health`
- `GET /v1/models`
- `POST /v1/chat/completions`

## Configuration

Copy `.env.example` to `.env` for local runs. `OPENCLAW_BEARER_TOKEN` is optional and must never be committed.

## Local Development

```bash
npm install
npm test
npm start
```

The bridge maps models like `openclaw-main`, `openclaw:main`, or `agent:main` to OpenClaw agent model IDs.