# NexusCLI

**TRI CLI v0.4.0** - Termux Mobile First AI Control Plane

Web UI for Claude Code, Codex CLI, and Gemini CLI.

## Supported Engines

| Engine | Models | Provider |
|--------|--------|----------|
| **Claude** | Opus 4.5, Sonnet 4.5, Haiku 4.5 | Anthropic |
| **Codex** | GPT-5.1, GPT-5.1 Codex (Mini/Max) | OpenAI |
| **Gemini** | Gemini 3 Pro Preview | Google |

## Install

**Private package** - Install via git:

```bash
# From VPS (recommended)
npm install -g git+ssh://dag@cloud.alpacalibre.com/home/dag/git_repos/NexusCLI.git

# From VPSHome backup
npm install -g git+ssh://calner@192.168.10.10/home/calner/git_repos/NexusCLI.git

# Local clone install
cd ~/Dev/NexusCLI && npm install -g .

# Termux manual install
cd ~/Dev/NexusCLI
./scripts/install-termux.sh
```

## Setup

```bash
nexuscli init
```

## Start

```bash
nexuscli start
```

Open browser: `http://localhost:41800`

## Commands

| Command | Description |
|---------|-------------|
| `nexuscli init` | Setup wizard |
| `nexuscli start` | Start server |
| `nexuscli stop` | Stop server |
| `nexuscli status` | Show status |
| `nexuscli engines` | Manage AI engines |
| `nexuscli workspaces` | Manage workspaces |
| `nexuscli config` | Configuration |

## Requirements

- Node.js 18+
- At least one CLI installed:
  - Claude Code CLI (`claude`)
  - Codex CLI (`codex`)
  - Gemini CLI (`gemini`)
- SSH access to git repos (for installation)

## API Endpoints

| Endpoint | Engine | Description |
|----------|--------|-------------|
| `POST /api/v1/chat` | Claude | SSE streaming chat |
| `POST /api/v1/codex` | Codex | SSE streaming chat |
| `POST /api/v1/gemini` | Gemini | SSE streaming chat |
| `GET /api/v1/models` | All | List available models |
| `GET /health` | - | Health check |

## Development

```bash
# Clone
git clone dag@cloud.alpacalibre.com:git_repos/NexusCLI.git
cd NexusCLI

# Install deps
npm install
cd frontend && npm install && npm run build && cd ..

# Run dev
npm run dev
```

## License

MIT
