# eclipse-cli
The `eclipse` binary: an interactive REPL, a full-screen terminal interface, and the slash commands
that the terminal and the web dashboard share.
It is a thin front end — one `Agent` from `eclipse-core` per process, one session per conversation,
and no behaviour of its own that the library could hold instead.
## Install
```sh
cargo install eclipse-cli
```
That puts `eclipse` on your path. To run it from a checkout instead:
```sh
cargo build --release -p eclipse-cli
./target/release/eclipse
```
## Use
```sh
eclipse config init # write ~/.eclipse/config.toml
$EDITOR ~/.eclipse/config.toml # base_url, model, and anything else you want
eclipse # the full-screen interface
eclipse --plain # the line-based REPL instead
eclipse run "hello" # one turn, print the reply, exit ("-" reads stdin)
eclipse -c # pick up the most recently used session
eclipse --session <id> # a specific one
eclipse web # set the dashboard's sign-in (a username and a password)
```
Inside the interface, `/help` lists the commands: `/model`, `/reasoning`, `/compress`,
`/sessions`, `/status`, `/yolo` and the rest, and `!<command>` runs a shell line without asking the
model. `eclipse doctor` reaches for each thing that can be wrong and says what to do about it;
`eclipse config keys` prints every key this build reads, with the value it resolved.
Configuration is `config.toml` plus `.env` in `~/.eclipse/`, and `eclipse upgrade` updates an
install without touching either.
## Licence
Apache-2.0. The full text is in `LICENSE` in this package.