← Back to Plugins
Tools

Unigateway Provider

unigateway-ai By unigateway-ai 👁 114 views ▲ 0 votes

Unigateway plugins on openclaw providers

GitHub

Install

npm install
npm

README

# @unigateway/openclaw-unigateway-provider

[OpenClaw](https://docs.openclaw.ai) plugin that integrates [UniGateway](https://unigateway.ai), a multi-provider LLM aggregator. Use any model from Claude, GPT, Gemini, and others through a single unified OpenAI-compatible API.

## Quick Start

### Install

**From ClawHub (recommended):**
```bash
openclaw plugins install clawhub:@unigateway/openclaw-unigateway-provider
openclaw gateway restart
```

**Local development:**
```bash
openclaw plugins install -l /path/to/openclaw-unigateway
```

### Configure

1. Get your API key from [UniGateway Dashboard](https://unigateway.ai/dashboard/api-keys)
2. Set up the plugin:
```bash
openclaw onboard --unigateway-api-key "$UNIGATEWAY_API_KEY" --auth-choice unigateway-api-key --flow manual --accept-risk --non-interactive
```

Or set the environment variable:
```bash
export UNIGATEWAY_API_KEY=sk-...
```

### Use

```bash
openclaw chat -m unigateway/gpt-5.5 "hello"
openclaw chat -m unigateway/claude-sonnet-4.6 "hello"
openclaw chat -m unigateway/gemini-3.1-pro-preview "hello"
```

Available models are discovered dynamically; if the API is unreachable, a static fallback catalog is used.

## How It Works

| Component | Details |
|-----------|---------|
| **Transport** | OpenAI-compatible API at `https://unigateway.ai/v1` |
| **Model Routing** | `unigateway/<model-id>` prefix routes through plugin, suffix forwarded to UniGateway |
| **Authentication** | Single `UNIGATEWAY_API_KEY` environment variable |
| **Model Discovery** | Dynamic catalog from `https://unigateway.ai/models` with in-memory cache |

## Requirements

- OpenClaw `>= 2026.4.14`

## Development

```bash
npm install
npm run typecheck      # TypeScript validation
npm test               # Unit tests
UNIGATEWAY_API_KEY=sk-... npm run test:live
```

## License

MIT — see [LICENSE](./LICENSE)
tools

Comments

Sign in to leave a comment

Loading comments...