# Add a provider

How to bring a new AI tool into QuotaDesk: what it takes, the steps, and what shows up while it has no custom art yet.

## Not a developer?

Open a [GitHub issue](https://github.com/srbunnie/QuotaDesk/issues) with the tool's name and a link showing where it exposes usage or limits (account page, CLI command or official API). That's enough for maintainers to evaluate.

## Step by step

The full guide, repository rules and desktop architecture (`apps/desktop` in Tauri 2 + Rust) live in **[AGENTS.md](https://github.com/srbunnie/QuotaDesk/blob/main/AGENTS.md#tutorial-adicionar-uma-ferramenta)** (in Portuguese) and [Develop](develop.md). Codex, Cursor and other coding agents read `AGENTS.md` automatically; Claude Code gets it through `CLAUDE.md`.

Each tool is a **provider** with three pieces: a read-only Rust reader (`apps/desktop/src-tauri/src/`), UI/catalog registration (`apps/desktop/ui/loft.js`), and optional office art (room + character poses). The stages:

1. Identify where the quota or local/official usage source lives.
2. Write the read-only Rust reader following our strict privacy rules ([Privacy and security](privacy.md)).
3. Register the provider in the UI and connection catalog.
4. Create the office room.
5. Create the character spritesheet.
6. Validate with `test-windows.ps1`, `npm run test:ui`, `scripts/scan-leaks.ps1 -All` and add `connect-<id>.md` in both languages.

Without an image generator, complete steps 1, 2, 3 and 6 (**reader-only** mode). The card, tray icon, edge bar and mini monitor work normally, and the office assigns a **temporary room** with borrowed art. Custom room/character art can follow in another PR.

The [`skills/add-provider`](https://github.com/srbunnie/QuotaDesk/blob/main/skills/add-provider/SKILL.md) skill includes art prompts, chroma-key rules and scripts that slice, align and validate sprites:

```bash
python skills/add-provider/scripts/add_room.py --id cursor --room cursor-room.png --seat 182
python skills/add-provider/scripts/cut_poses.py --id cursor --sheet cursor-sheet.png --sheet2 cursor-sheet2.png
python skills/add-provider/scripts/validate_assets.py
```

To use it in Claude Code, copy the folder into `.claude/skills/` (or `~/.claude/skills/`) and ask "add Cursor to QuotaDesk".

When adding a tool, also create its `connect-<id>` page in both languages: the card menu opens `docs/connect-<id>.html` when no reading exists yet.

## Temporary room

A tool without dedicated room and character art is never left out of the office: it gets its own room slot with fallback art while cards, edge bar and alerts work identically. Once custom art is ready, add it and run `npm run prepare-assets`.
