@openpalm/channel-chat
v0.9.0
Published
OpenAI/Anthropic-compatible chat API channel for OpenPalm. Accepts standard LLM API requests and forwards them as signed channel messages to the guardian.
Readme
@openpalm/channel-chat
OpenAI/Anthropic-compatible chat API channel for OpenPalm. Accepts standard LLM API requests and forwards them as signed channel messages to the guardian.
Endpoints
| Method | Path | Description |
|---|---|---|
| POST | /v1/chat/completions | OpenAI chat completions |
| POST | /v1/completions | OpenAI legacy completions |
| POST | /v1/messages | Anthropic messages |
| GET | /health | Health check |
Usage
Point any OpenAI- or Anthropic-compatible client (e.g. Open WebUI, Cursor, Continue) at http://localhost:8181 or the Caddy route.
Environment variables
| Variable | Purpose |
|---|---|
| PORT | HTTP listen port (default: 8181 in registry overlay) |
| GUARDIAN_URL | Guardian forwarding target |
| CHANNEL_CHAT_SECRET | HMAC secret (auto-generated by admin) |
| OPENAI_COMPAT_API_KEY | Optional Bearer auth for incoming requests |
Registry overlay
registry/channels/chat.yml — installed by default during setup. Reinstall via admin API:
curl -X POST http://localhost:8100/admin/channels/install \
-H "x-admin-token: $ADMIN_TOKEN" \
-H "Content-Type: application/json" \
-d '{"channel": "chat"}'Streaming is not supported (returns 400).
