openhorizon-cli
v1.0.42
Published
Official CLI for OpenHorizon — chat with AI models directly from your terminal
Maintainers
Readme
OpenHorizon CLI
Chat with AI models directly from your terminal.
GitHub: SkidGod4444/openhorizon · packages/cli
Installation
macOS / Linux
curl -fsSL https://raw.githubusercontent.com/SkidGod4444/openhorizon/main/packages/cli/install.sh | shWindows (PowerShell)
irm https://raw.githubusercontent.com/SkidGod4444/openhorizon/main/packages/cli/install.ps1 | iexvia npm / bun / pnpm (all platforms)
npm install -g openhorizon-cli
# or
bun install -g openhorizon-cli
# or
pnpm install -g openhorizon-cliQuick Start
# Save your API key
openhorizon login <your-api-key>
# Start chatting
openhorizon chatGet your API key at https://openhorizon.devwtf.in
Commands
| Command | Description |
|---|---|
| openhorizon chat | Start an interactive AI chat session |
| openhorizon login <key> | Save your API key to ~/.openhorizon/config.json |
| openhorizon model [name] | Get or set the default model |
| openhorizon --help | Show help |
In-chat commands
| Command | Description |
|---|---|
| /model | Show active model |
| /clear | Clear conversation history |
| /help | Show available commands |
| exit / q | Quit |
Options
openhorizon chat --model openhorizon/llama3 --base-url https://your-server.com| Flag | Env variable | Default |
|---|---|---|
| --model | OPENHORIZON_MODEL | openhorizon/devstral-small-2:24b |
| --base-url | OPENHORIZON_API_URL | https://api.openhorizon.devwtf.in |
History
Every conversation is automatically logged to ~/.openhorizon/history.jsonl as newline-delimited JSON.
# View today's conversations
grep "$(date +%Y-%m-%d)" ~/.openhorizon/history.jsonl | jq .
# View all assistant responses
jq 'select(.role == "assistant")' ~/.openhorizon/history.jsonlSource
https://github.com/SkidGod4444/openhorizon/tree/main/packages/cli
License
MIT
