# elelem-shell

> One gem that installs elelem with its pure Ruby plugins and providers, and runs `elelem-llama` by default when it is installed.

Maturity: ready. Install: `gem install elelem-shell`. Source: https://github.com/elelem-sh/shell/


`elelem` with [`elelem-tools`](https://elelem.sh/plugins/tools/),
[`elelem-mcp`](https://elelem.sh/plugins/mcp/) and [`elelem-skills`](https://elelem.sh/plugins/skills/)
loaded, and these installed:

- [`elelem-anthropic`](https://elelem.sh/plugins/anthropic/),
  [`elelem-openai`](https://elelem.sh/plugins/openai/), [`elelem-ollama`](https://elelem.sh/plugins/ollama/)
- the [hosted providers](https://elelem.sh/plugins/hosted/)
- [`elelem-server`](https://elelem.sh/plugins/server/)

## Install

```bash
curl -fsSL https://elelem.sh/install | sh
```

The script installs it, with `elelem-llama` and a model.
See [Start](https://elelem.sh/docs/start/#install). Or:

```bash
gem install elelem-shell
```

## Use

```bash
elelem-shell
elelem-shell -p groq --model MODEL
git diff | elelem-shell "write a commit message"
```

It takes the same commands and options as [`elelem`](https://elelem.sh/plugins/elelem/).

## Configure

Without `-p`, it uses `ELELEM_PROVIDER`, then `llama` when `elelem-llama` is
installed. See [Pick a provider](https://elelem.sh/docs/start/#pick-a-provider).

With none of these, it runs `demo` and prints:

```text
elelem: elelem-llama is not available; using the demo provider, which runs each prompt as a command. Run curl -fsSL https://elelem.sh/install | sh, or pick a provider with -p.
```

## Limits

- An API key never picks a provider. Use `-p`.
- `elelem-llama` and `elelem-diffusion` are not included. Install them on
  their own.


## Environment

| Variable | Default | Description |
|---|---|---|
| `ELELEM_PROVIDER` | none | Provider to use when -p is not given. Unset means the default provider. |

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

