# Getting Started with Alvaine 2.5.0

Alvaine runs natively on Apple Silicon Macs (M1 or newer). Conversations and files stay on your Mac. To answer requests, the assistant sends your prompt and only the relevant excerpts to remote models via OpenRouter. Alvaine explicitly instructs OpenRouter to use only providers that do not train on or retain your requests (`data_collection=deny`) and excludes China-hosted providers (based on OpenRouter's published provider metadata). Web search, email, and external integrations use their respective services under your explicit control.

## Installation & First Mission

1. Unzip the downloaded archive, open the `.dmg`, and drag **Alvaine** into **Applications**.
2. Launch the app. During the private pilot beta (prior to official Apple notarization), macOS may display a standard developer warning on first launch: open **System Settings → Privacy & Security**, scroll to the bottom, click **Open Anyway**, and confirm once (or **Right-click → Open** on `Alvaine.app` in Applications).
3. On the Home screen, click **Try with 3 sample quotes** to explore sources, verification, and drafts completely offline without an API key.
4. *(Standard build only — skipped on Pilot builds with included trial credits)* Click **Connect my AI account** in **Settings › AI Account**, paste your OpenRouter API key, and save (allow macOS Keychain access if prompted). Never paste API keys into chat messages.
5. Select a dedicated workspace folder for your mission. Start in **Read** mode to analyze safely, switch to **Edit** mode to create/update/organize files (with full Undo & Trash history), or use **Auto** mode when shell/tool execution is required.
6. Click **Compare my own quotes…** to select real PDF/Excel/Word files, review your prompt, and click **Send**.
7. Review the deliverable and open it directly from the verified deliverable card. Every edit and file organization step can be rolled back in one click via **Restore before** in the History tab (including trashed files).

To prevent runaway loops, the agent automatically stops after 6 consecutive tool errors and enforces a per-mission budget checkpoint ($2 default) plus a daily UTC cap ($15/day default, configurable via `ATELIER_DAILY_BUDGET_USD`, or `0` to disable).

## Smart Mission Router, Programmatic Tool Calling & Cost Tracking

By default, Alvaine runs **Auto · Balanced** (adaptive 12-axis classification, DAG Planner, and automatic skill/model selection). You can switch to **Auto · Fast**, **Auto · Expert**, or pin any specific model, and customize assistant instructions in **Settings › Appearance › Personality (Soul)**. The optional **Mission Behind-the-Scenes** panel (on Mac and Mobile) exposes the exact models used, steps, active skills, latency, token cost, and verification status.

Press **`⌘K`** and search **Capabilities** to view all installed tools and skills, or open **Model Map** (`data/models_registry.json`) to inspect verified model observations and adaptive `/100` scores.

For CLI benchmarking and catalog sync: `--router-bench-dry` (0-token offline audit), `--router-bench --models m1,m2` (isolated live replay), and `--sync-models` (refresh OpenRouter registry). On large multi-file dossiers, Alvaine can execute **Programmatic Tool Calling (PTC)** inside a networkless confined Python sandbox (`atelier.call` / `atelier.mcp`), batching up to 30 native or MCP tool calls in a single turn (−50% to −80% token consumption) while enforcing every Rust guardrail — identically on macOS and on the 24/7 Linux Relay.

## Mobile Companion V2 (iPhone / Android)

Open **Integrations › Mobile Companion**, scan the QR code, and add the PWA to your Home Screen (switch **FR / EN** anytime):

- **Home**: one-tap quick actions (upload a file, organize a folder, urgent emails, duplicates), active missions, and recent files.
- **Files**: browse and search every subfolder of your workspace; tap any file to open, share, or assign to an agent. Files uploaded from mobile (up to 20 MB) are saved safely in `Reçus du téléphone` without ever overwriting existing files.
- **Organize folder**: Alvaine proposes a plan first; tap **Yes, go ahead** to execute atomically and verify every move (reversible in one click from Mac History).
- **24/7 Cloud Relay**: connect a dedicated European Railway container or your own VPS so scheduled agents, mobile chat, and deliverables stay online even when your Mac is closed.

## Optional Integrations

- **Native Office Suite (Word, Excel, PowerPoint, PDF)**: in **Integrations › Skills & MCP**, install the open-source Rust engines (`wordcraft-cli`, `gridcraft-cli`, `deckcraft-cli`, `pdfcraft-cli` — MIT / Apache-2.0, SHA-256 verified before extraction; pre-installed on the 24/7 Relay). Every output can be checked via `verify_office_deliverable` (Excel formula recalculation in `Decimal`, `#REF!`/`#DIV/0!` detection, exact cent totals, citations, and SHA-256 HTML proof card).
- **Controlled Mail**: connect IMAP/SMTP or Outlook / Microsoft 365 (OAuth). Drafts support up to 5 verified workspace attachments (20 MB total; 3 MB on Microsoft Graph) and **never send autonomously** — human approval is always required on Mac or Mobile, and `mail_draft` rejects any attachment modified after its SHA-256 check.
- **Verified Missions (Verified Engine 2.0) & AutoSkills**: drop up to 24 real files (**multi-page PDFs with Apple Vision OCR, `.xlsx`, `.docx`, `.pptx`, CSV, JSON** up to 20 MB). Alvaine hashes every input with SHA-256, checks deterministic cent-exact rules (`Formula`, `SumDecimal`, `GroupSum`, `CrossDocEquals`, `SourceCitation`, `AllowedValues`), runs an independent semantic audit, generates a self-contained **HTML Proof Dossier** (`dossier-de-preuves.html`), and supports durable checkpoint resume.
- **GitHub (Client Repos & 1-Click Pull Requests)**: in **Integrations › GitHub** (`⌘K` → GitHub), connect a GitHub token (stored only in the local `0600` vault, never in `.git/config`) or import `gh CLI`, clone client repos, review exact diffs with an automatic anti-secret firewall, and open dedicated Pull Requests in one click.
- **MCP Servers (Expert Mode)**: externally discovered MCP servers stay disabled until explicitly approved in **Integrations › Skills & MCP**. Write/action MCP tools outside Auto mode require explicit user opt-in.

## Backup, Updates & Support

- **Local Data Folder**: in Finder, choose **Go › Go to Folder…** and enter `~/Library/Application Support/Atelier OS` *(preserved across the brand transition to Alvaine so existing history, agents, and settings remain intact)*. Quit Alvaine before backing up. Keychain secrets are managed separately by macOS.
- **Updates**: quit Alvaine, replace `Alvaine.app` in **Applications** with the new version from the DMG, and reopen. Your data and settings remain untouched.
- **Pilot Support**: contact **Grégory Baranes** at `gregory@alvaine.com` (+33 6 17 18 29 79) · https://alvaine.com/en/
