# Hosted providers

> Seven gems that connect elelem to hosted Chat Completions APIs: Cerebras, Cloudflare Workers AI, Gemini, GitHub Models, Groq, Mistral and OpenRouter.

Maturity: alpha. Install: `gem install elelem-shell`.


[`elelem-shell`](https://elelem.sh/plugins/shell/) installs all seven.

## Install

```bash
gem install elelem-groq
```

Or any of the gems below.

## Use

```bash
export GROQ_API_KEY=...
elelem -p groq --model MODEL
```

Each gem's command, such as `elelem-groq`, is `elelem` with that provider
as the default.

## Configure

| Gem | `-p` | Key | Model | Base URL |
|---|---|---|---|---|
| [`elelem-cerebras`](https://github.com/elelem-sh/cerebras) | `cerebras` | `CEREBRAS_API_KEY` | `CEREBRAS_MODEL` | `CEREBRAS_BASE_URL` |
| [`elelem-cloudflare`](https://github.com/elelem-sh/cloudflare) | `cloudflare` | `CLOUDFLARE_API_TOKEN`, `CLOUDFLARE_ACCOUNT_ID` | `CLOUDFLARE_MODEL` | `CLOUDFLARE_BASE_URL` |
| [`elelem-gemini`](https://github.com/elelem-sh/gemini) | `gemini` | `GEMINI_API_KEY` | `GEMINI_MODEL` | `GEMINI_BASE_URL` |
| [`elelem-github`](https://github.com/elelem-sh/github) | `github` | `GH_TOKEN`, else `GITHUB_TOKEN` | `GITHUB_MODEL` | `GITHUB_BASE_URL` |
| [`elelem-groq`](https://github.com/elelem-sh/groq) | `groq` | `GROQ_API_KEY` | `GROQ_MODEL` | `GROQ_BASE_URL` |
| [`elelem-mistral`](https://github.com/elelem-sh/mistral) | `mistral` | `MISTRAL_API_KEY` | `MISTRAL_MODEL` | `MISTRAL_BASE_URL` |
| [`elelem-openrouter`](https://github.com/elelem-sh/openrouter) | `openrouter` | `OPENROUTER_API_KEY` | `OPENROUTER_MODEL` | `OPENROUTER_BASE_URL` |

None has a default model. Pass `--model NAME` or set the model variable;
without either, elelem stops and names the variable.

`CLOUDFLARE_ACCOUNT_ID` is not needed when `CLOUDFLARE_BASE_URL` is set.
A `GITHUB_TOKEN` needs the `models:read` permission.

A variable set to an empty value counts as unset.

## Limits

- The limits of [`elelem-openai`](https://elelem.sh/plugins/openai/#limits) apply.
- [`elelem-shell`](https://elelem.sh/plugins/shell/) never picks one of these. Use `-p`.


Canonical: https://elelem.sh/plugins/hosted/

