Metadata-Version: 2.5
Name: orriven
Version: 0.1.0
Summary: Self-evolving multi-agent orchestration workbench
Project-URL: Homepage, https://github.com/HiItsRage/orriven
Project-URL: Repository, https://github.com/HiItsRage/orriven
Project-URL: Issues, https://github.com/HiItsRage/orriven/issues
Project-URL: Changelog, https://github.com/HiItsRage/orriven/releases
License: MIT
License-File: LICENSE
Keywords: ai-agents,llm,multi-agent,orchestration,workbench
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Framework :: FastAPI
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: MacOS
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Requires-Python: >=3.12
Requires-Dist: aiosqlite>=0.20.0
Requires-Dist: anyio>=4.8.0
Requires-Dist: fastapi>=0.115.0
Requires-Dist: httpx>=0.28.0
Requires-Dist: litellm>=1.60.0
Requires-Dist: networkx>=3.7
Requires-Dist: numpy>=2.5.5
Requires-Dist: pydantic-settings>=2.7.0
Requires-Dist: pydantic>=2.10.0
Requires-Dist: python-dotenv>=1.0.0
Requires-Dist: rich>=13.9.0
Requires-Dist: simpy>=4.1.2
Requires-Dist: textual>=8.2.8
Requires-Dist: typer>=0.15.0
Requires-Dist: uvicorn[standard]>=0.34.0
Provides-Extra: all
Requires-Dist: docker>=7.1.0; extra == 'all'
Requires-Dist: mcp>=1.2.0; extra == 'all'
Requires-Dist: sqlite-vec>=0.1.6; extra == 'all'
Provides-Extra: docker
Requires-Dist: docker>=7.1.0; extra == 'docker'
Provides-Extra: mcp
Requires-Dist: mcp>=1.2.0; extra == 'mcp'
Provides-Extra: vectors
Requires-Dist: sqlite-vec>=0.1.6; extra == 'vectors'
Description-Content-Type: text/markdown

<p align="center">
  <img src="https://raw.githubusercontent.com/HiItsRage/orriven/main/assets/orriven-logo.png" alt="Orriven" width="80" />
</p>

# Orriven

**Orriven** is an open-source multi-agent AI workbench and interactive simulation studio—run from your terminal (`orriven`) or a local browser workbench (`orriven ui`).

Use it to plan and execute software projects with a team of specialist AI agents, research with attached documents and browser/desktop tools, or build live 3D & 2D simulations from plain English.

---

## What You Can Use Orriven For

- **Software, Websites & Codebases:** Link a local folder, single file, or GitHub repository. Orriven splits work across specialist agents inside isolated workspaces, lets them run shell/PowerShell commands, shows line diffs, and tracks Git branches cleanly.
- **Interactive 2D & 3D Simulations (`Simulation Lab` in Web Workbench):** Describe any world—physics, chemistry, ecosystems, cellular models, historical realms, logistics, or custom tabletop/sci-fi scenarios—and watch it unfold in 3D, 2D, or hybrid split view via `orriven ui --open` *(simulations run in the Web Workbench rather than the CLI)*.
  - Define your own rules, entity traits, terrain heightfields, region colors, and spatial scales through chat (no fixed presets needed).
  - Upload your own `.glb`, `.gltf`, `.obj`, `.png`, or `.svg` assets—or let Orriven craft procedural 3D/2D models, evolve appearances over time, shift territory borders, and generate custom HUD sliders/buttons tailored to your simulation.
  - Scrub through past ticks, branch timelines at any point, and export/import portable `.orrsim.zip` or `.orrsim.json` bundles.
- **Research, Docs & Automation:** Drag-and-drop screenshots, images, or PDFs/documents (or reference files with `@path`), search the web, connect external MCP tools (`.mcp.json`), and collaborate with your browser tabs or desktop when enabled.
- **Cost, Usage & Model Benchmarking:** Track live token spend, speed, and latency across providers (`/usage`), compact long histories (`/compact`), and compare models side-by-side on real prompts (`/benchmark`).

---

## Requirements

- **Windows 10/11**, **Linux**, or **macOS** *(for one-line installs, no Python setup required)*
- **Git** (for repo sessions, branches, and diff views)
- **Optional:**
  - **Python 3.12 or 3.13** if installing directly with `pip` / `pipx`
  - An AI API key (Gemini, OpenAI, Anthropic, NVIDIA NIM, Groq, DeepSeek, OpenRouter, etc.) **or** a local **Ollama**, **LM Studio**, or **vLLM** server
  - **Docker** (only needed for `--sandbox docker`)

---

## Installation

### One-Command Install (No Prerequisites Required)

**Windows (PowerShell):**

```powershell
powershell -c "irm https://raw.githubusercontent.com/HiItsRage/orriven/main/install.ps1 | iex"
```

**Linux / macOS:**

```bash
curl -fsSL https://raw.githubusercontent.com/HiItsRage/orriven/main/install.sh | bash
```

### Install via Python (`pip` / `pipx` / `uv`)

```bash
# Recommended isolated CLI install (includes vectors, MCP & Docker support):
uv tool install --python 3.13 "orriven[all]"

# Or with pipx / pip (Python 3.12+):
pipx install "orriven[all]"
pip install "orriven[all]"
```

<details>
<summary>Optional extras, Debian package &amp; installing from source</summary>

- `vectors` — local vector recall (`sqlite-vec`)
- `mcp` — Model Context Protocol (MCP) tool server support
- `docker` — Docker container sandbox support
- `all` — includes `vectors`, `mcp`, and `docker`

Install the core package without optional extras:

```bash
pip install orriven
```

Debian / Ubuntu standalone releases attach `.deb` packages on [GitHub Releases](https://github.com/HiItsRage/orriven/releases):

```bash
sudo apt install ./orriven_*_amd64.deb
```

To build and install from a local source checkout (requires Node.js 22+ for the Web Workbench UI):

```bash
git clone https://github.com/HiItsRage/orriven.git
cd orriven
uv sync --all-extras
npm --prefix web ci
uv run python scripts/sync_static_ui.py
uv tool install --editable ".[all]"
```

For development setup and running tests, see [CONTRIBUTING.md](https://github.com/HiItsRage/orriven/blob/main/CONTRIBUTING.md).

</details>

---

## Quickstart

1. **Start the Terminal Workbench:**

   ```bash
   orriven
   ```

   On first launch, guided setup walks you through permissions, your AI provider/models, and optional MCP servers.

2. **Or configure non-interactively:**

   ```bash
   orriven setup --profile full --provider gemini --api-key "$GEMINI_API_KEY"
   # NVIDIA NIM:
   orriven setup --provider nvidia_nim --api-key "$NVIDIA_NIM_API_KEY"
   # Local Ollama / LM Studio / custom OpenAI-compatible server:
   orriven setup --provider ollama
   orriven setup --provider openai_compatible --api-base http://127.0.0.1:8000/v1
   ```

3. **Open the Browser Workbench (`Simulation Lab` + Web Studio):**

   ```bash
   orriven ui --open
   ```

   Opens locally at `http://127.0.0.1:7420`.

4. **Run a goal headlessly from the CLI:**

   ```bash
   orriven run "Build a Python CLI todo app with tests" -p ./my-project
   ```

---

## Useful Interactive Commands & Shortcuts

Inside `orriven` (Terminal Workbench):

| Command / Key | What It Does |
| :--- | :--- |
| `!command` | Run a shell or PowerShell command right in chat (e.g., `!pytest`, `!git status`) |
| `@path/to/file` | Attach a file or image inline in your message |
| `/attach <path>` | Stage an image or document for your next message |
| `/ui` | Launch and open the Web Workbench (`3D/2D` view + Simulation Lab) |
| `/models` *(or `Ctrl+M`)* | Switch active provider or architect/specialist/fast models |
| `/setup` *(or `F2`)* | Open guided setup (permissions profile, provider keys, MCP presets) |
| `/new` *(or `Ctrl+N`)* / `/folder` | Start a new session or point the session at a different folder |
| `/usage` | Show tokens, context memory usage, and cost breakdown |
| `/compact` | Compress older chat history to free context window space |
| `/benchmark [-m m1,m2] <prompt>` | Compare latency, cost, and outputs across multiple models |
| `/autonomy` / `/profile` | Switch autonomy (`auto` \| `guarded` \| `copilot`) or security (`full` \| `coding` \| `strict`) |
| `/status` / `/details` / `/theme` | Check diagnostics, toggle trace output, or switch Dark/Light theme (`Ctrl+T`) |
| `Ctrl+1/2/3`, `Ctrl+B` | Switch panes (`Workspace` / `Controls` / `Inspect`) or toggle the session sidebar |

*(In the Web Workbench, type `!command` in chat for inline command cards, drag-and-drop/paste images and files, click file citations to view source lines, switch tabs cleanly to **Simulation Lab**, **Metrics**, or **Skills**.)*

---

## CLI Commands

### Everyday Commands

| Command | Purpose | Key Flags |
| :--- | :--- | :--- |
| `orriven` | Launch interactive Terminal Workbench *(aliases: `tui`, `chat`)* | `-p/--project`, `-s/--session`, `--setup` |
| `orriven ui` | Start the local Web Workbench *(alias: `dashboard`)* | `--host`, `--port` (`7420`), `-p/--project`, `--open/--no-open` |
| `orriven sim` | Simulations are disabled in CLI; shows the Web Workbench link | `--open` |
| `orriven setup` | Configure provider keys, sandbox & autonomy *(alias: `onboard`)* | `--profile`, `-p/--provider`, `-k/--api-key`, `--api-base`, `-s/--sandbox`, `-a/--autonomy`, `--mcp`, `--reset` |
| `orriven run "<goal>"` | Run a multi-agent task from the terminal | `-p/--project`, `-d/--domain`, `-a/--autonomy`, `-s/--sandbox`, `-b/--budget`, `--ui` |
| `orriven providers` | List all 26 supported AI providers and key readiness | — |
| `orriven status` | Check configured providers, Git, Docker & DB *(alias: `doctor`)* | — |
| `orriven init [path]` | Create project-local `.orriven/` settings | `-d/--domain`, `-m/--mode` (`auto` \| `git` \| `snapshot`) |
| `orriven help [command]` | Show help for Orriven or any subcommand | e.g. `orriven help agents pin` |

### Managing Runs, Agents, Changes, Memory & MCP

| Command | Purpose |
| :--- | :--- |
| `orriven runs list` | List recent task runs (`--limit`) |
| `orriven agents list \| inspect \| pin \| purge \| export \| import` | Inspect, pin, clean up, or export/import learned agents |
| `orriven changes list \| diff \| approve \| reject` | Review, diff, or apply agent workspace changes *(alias: `proposals`)* |
| `orriven memory list \| issues \| prune` | Browse saved workflows and past failure lessons *(alias: `antipatterns`)* |
| `orriven mcp presets \| add \| list \| remove \| test` | Configure MCP servers (`godot`, `blender`, `postgres`, `.mcp.json`, HTTP/stdio) |

---

## Supported Providers & Environments

- **OS:** Windows 10/11, macOS, Linux
- **Cloud & Hosted AI (26 built-in providers):** Google Gemini, OpenAI, Anthropic, NVIDIA NIM, Groq, DeepSeek, Mistral, xAI Grok, OpenRouter, Cerebras, SambaNova, Together AI, Fireworks AI, DeepInfra, Nebius, Cohere, Perplexity, Hugging Face, GitHub Models, Azure OpenAI, AWS Bedrock, Google Vertex AI
- **Local & Custom AI:** Ollama, LM Studio, vLLM, and any `openai_compatible` HTTP server
- **Optional Image Generation for Simulation Sprites:** Set `ORRIVEN_IMAGE_MODEL` in `~/.orriven/.env` (or configure `OPENAI_API_KEY` / `GEMINI_API_KEY`) to enable external sprite generation alongside procedural local SVG/glTF authoring.

---

## Where Your Data Lives

By default, Orriven stores state in `~/.orriven/` (override with `ORRIVEN_HOME`):

- `~/.orriven/.env` — API keys and optional tokens
- `~/.orriven/config.toml` — Selected provider, model tiers, retry/resilience settings, sandbox & MCP config
- `~/.orriven/orriven.db` — Saved sessions, messages, standalone simulations, usage metrics, agents & memory
- `~/.orriven/simulations/` — Per-simulation `sim_model.py` scripts, procedural/uploaded assets, and snapshots
- `~/.orriven/repos/` — Local clones of GitHub-linked sessions
- `<project>/.orriven/` — Per-project settings, staging folders/worktrees, and scratch workspaces

---

## Contributing & License

Want to contribute, explore how Orriven is structured, or run the test suite? See [CONTRIBUTING.md](./CONTRIBUTING.md).

Licensed under the [MIT License](./LICENSE).
