Metadata-Version: 2.5
Name: orchestrator-runner
Version: 0.1.1
Summary: Local runner for the SDD Orchestrator — run your own LLM subscription (Claude/Codex/Gemini) from your machine.
Project-URL: Homepage, https://github.com/Aitrich-AI-Dev-Platform/sdd-orchestrator
Project-URL: Repository, https://github.com/Aitrich-AI-Dev-Platform/sdd-orchestrator
Project-URL: Issues, https://github.com/Aitrich-AI-Dev-Platform/sdd-orchestrator/issues
Author: BizEnrich
License-Expression: MIT
License-File: LICENSE
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Software Development :: Libraries
Requires-Python: >=3.11
Description-Content-Type: text/markdown

# orchestrator-runner

The **local runner** for the SDD Orchestrator. It lets you run your **own LLM subscription**
(Claude / Codex / Gemini) from **your own machine** — your subscription login and your code never leave your
computer. The orchestrator server only ever receives the generated text, or (for builds) a patch it
independently verifies.

It's a standalone client: pure Python stdlib, **no dependency on the orchestrator server**.

## Install

```bash
pipx install orchestrator-runner
```

You also need, on this machine:

- The provider's own CLI, installed **and logged in** — `claude` (Pro/Max), `codex` (Sign-in-with-ChatGPT),
  or `gemini` (Google). The runner only serves providers whose CLI is present.
- `git`, if you want this runner to also **build** (`--allow-build`).

## Use

1. In the orchestrator web app: **Integrations → Local runners → Pair a new runner** (gives a one-time code,
   valid ~10 minutes).
2. On this machine, in a terminal:

   ```bash
   orchestrator-runner pair --url https://<your-orchestrator-site> --code <code>   # one-time
   # add --allow-build to also run builds here (runs agent-written code + tests on this machine)
   orchestrator-runner run
   ```

   Keep `run` going while your projects work. Closing it takes your runner offline; subscription-backed
   stages then pause until you start it again.

3. `orchestrator-runner whoami` verifies the stored credential.

The credential is saved to `~/.orchestrator-runner/config.json` (mode 0600). Revoke a runner any time from
the web app.

## Security

- Your provider **seat login** stays in your provider CLI on this machine — the server stores only a
  revocable runner credential (its hash).
- For builds, the runner clones **read-only** with your own git and returns a **patch**; it never pushes.
  The server applies the patch and runs the authoritative verification + review + delivery.
