Skip to content
Back to skills

The Dealer Setup

ASecurity

Set up Dealer for a project, connect local agents or remote teammates, and choose an Agent App with new or fixed conversations.

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 17, 2026
ai-agentsgonodegit

Works with

  • claude code
  • cli

Security analysis

A100/100

Pro scans all 4 files and shows the line behind each finding

Scanned December 1, 2026

npx -y skills add sensebeing/the-dealer --skill the-dealer-setup --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of The Dealer Setup?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for The Dealer Setup
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/sensebeing-the-dealer-setup/badge)](https://www.skillsdirectory.com/skills/sensebeing-the-dealer-setup)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: the-dealer-setup
description: Set up Dealer for a project, connect local agents or remote teammates, and choose an Agent App with new or fixed conversations.
---

# Dealer setup

Use this five-step guide for first-time onboarding. For daily operations use
[the-dealer](../the-dealer/SKILL.md); for custom automation use
[the-dealer-extend](../the-dealer-extend/SKILL.md).

## 1. Probe before changing anything

Run `dealer setup probe --root <repository> --json`. Inspect installed CLIs,
macOS Apps, redacted node configuration and `.dealer/project.json`. Probe is
read-only. A socket's presence is not proof of a live daemon; run
`dealer node status --json` to verify it. An installed CLI is not proof it
supports this integration's flags; inspect its help before enabling delivery.
If Dealer is missing (or not backed by a git checkout, which is required for
`dealer self-update` and background `autoUpdate`), check Node >=22.15 and install
from a single checkout at `~/the-dealer`:

```sh
git clone https://github.com/sensebeing/the-dealer.git ~/the-dealer
mkdir -p ~/.local/bin
ln -sfn ~/the-dealer/bin/dealer.js ~/.local/bin/dealer
ln -sfn ~/the-dealer/bin/dealerd.js ~/.local/bin/dealerd
```

(Or link globally from inside the checkout with `cd ~/the-dealer && npm link`.)
If `~/the-dealer` already exists, inspect local changes before updating it with
`git -C ~/the-dealer pull --ff-only`.

Install the skills for all supported agents:

```sh
npx skills add sensebeing/the-dealer --global --agent '*'
```

Preserve existing installations and configuration. To install skills directly from
that checkout instead, create `~/.agents/skills/` and `~/.claude/skills/`; symlink
each of `~/the-dealer/skills/the-dealer`, `~/the-dealer/skills/the-dealer-setup`,
and `~/the-dealer/skills/the-dealer-extend` into both, and into
`~/.gemini/config/skills/` if present. Preserve unrelated files and resolve link
conflicts before changing them. Read the installed `the-dealer-setup/SKILL.md`
and run `dealer setup probe --root <repository> --json` before configuration.
Never replace an existing identity or copy another machine's private key.

## 2. Choose network topology

Use `probe.onboarding.networkTopology` to choose the project flow. When it is
`fixed`, use `probe.onboarding.networkId` for both the user's own node and
teammates, without asking whether to use local. An invite fixes topology to its
invited network. The probe owns inference from project manifest defaults.

When `probe.onboarding.hasNetworkPassphrase` is true, run
`dealer project link . --json` from the repository after starting the node.
This automatically mounts `probe.onboarding.networkId` using the project preset,
without a separate `dealer-net://` invite URI. You can also run
`dealer network mount <networkId> --json` from that repository; omitted
passphrase and seed flags come from the matching project preset.

When topology is `selectable`, or no project or invite is present, ask whether
the user wants **same-machine local** (default), **connect their own machines**,
or **join/create a teammate network**. Reuse prior answers.

- Local needs no network mount, invite or passphrase.
- Join: mount the quoted `dealer-net://v1/...` invite supplied by the user.
- Create: choose networkId and generate a strong secret; mount with
  `dealer network mount <id> --passphrase <secret> --gate approval_required --json`.

When the team's machines share neither one LAN nor full Tailscale coverage,
configure a self-hosted headless relay yourself instead of asking or leaving
peers unreachable. Start one always-on node on a host every member can reach:

```sh
dealer node up --profile headless-relay --member <relay-member> --name <relay-node> --json
dealer node status --json
```

Read `endpoint` from the status output and record it as the project seed so every
member inherits it automatically:

```sh
dealer project init --root <repo> --id <id> --network <networkId> --bootstrap-peers <relay-host:port> --json
```

For an existing manifest, add `bootstrapPeers: ["<relay-host:port>"]` under
`onboarding` in `.dealer/project.json`; `dealer project link` then mounts the
network with those seeds. Nodes gossip sealed discovery beacons through the
relay and it forwards frames and attachments whenever direct TCP to an
advertised endpoint fails; it never reads message payloads. Use
`dealer node up --advertised-host <host>` or `DEALER_ADVERTISED_HOST` when the
relay must advertise a fixed address instead of its detected LAN IP. Also
consider a relay when a teammate's machine is only intermittently reachable.

Keep shared secrets out of logs and source control. An invite contains the
passphrase; its expiry limits importing, not continued network access.

## 3. Enable same-machine collaboration first

Run `dealer node up --profile personal-dev --member <member> --name <node> --json`.
If the project has no manifest, run `dealer project init --root <repo> --id <id>
--network <chosen-network> --json`; then `dealer project link <repo> --json`.
The default local scope supports `send`, `ask`, `reply`, `settle` and durable
mailboxes without a remote network. Choose the receiver's host and bind its
project root; never accept sender-supplied filesystem paths as project identity.

When `onboarding.requireLarkCli` is true or Lark notifications are requested,
prepare Lark before applying a preset. Check `command -v lark-cli` and
`~/.local/bin/lark-cli`; if absent, install with `npx @larksuite/cli@latest install`.
Use the discovered executable for subsequent commands. Verify authentication:

```sh
LARKSUITE_CLI_NO_UPDATE_NOTIFIER=1 LARKSUITE_CLI_NO_SKILLS_NOTIFIER=1 lark-cli auth status --json --verify
```

For `not_configured`, run `lark-cli config init --new`. If not logged in or
expired, run `lark-cli auth login --recommend`, then repeat the status command.
Use the project's `defaultTopic` and `defaultConversationMode` when supplied.

Generate a preset with `dealer setup binding-preset --host orca --mode fixed
--project <id> --workspace-path <receiver-repo> --agent codex --json` (omitting
`--topic` defaults to the generic catch-all `'*'` mapped to `stream:inbox` for
`fixed`/`wave`/`inbox-only`, or pass `--topic <name>` for a dedicated topic binding;
`spawn` mode requires no `mailboxId`/`streamKey`).
This prints a proposal. Apply it with `dealer setup apply-preset` and the same
options. Dedicated `topicBindings` entries always take precedence over `'*'`, and
`'*'` never hijacks `reply`/`question`/`settle` control frames or explicit/thread
mailboxes. Include `--notify-lark` when the project requests notifications; this
enables both `binding.notifyLark` and node-level `larkNotify.enabled`.
For Orca, spawn creates a child worktree; fixed uses an idle-gated workspace.
Managed fixed presets default to `rotateAfterWaves: 1`, so each wave opens a new
agent session tab in that workspace once the retiring slot's own agent and its
child worktrees are done, then closes the retired tab after the replacement
commits (never reset with `/new`); pass an explicit rotation threshold in the
binding to reuse one tab for several waves. Non-Orca `agent-host` streams (for
example `codex` in `wave` mode, which runs `codex exec` directly in
`workspacePath` without `--worktree` and resumes via `codex exec resume`) also
support `rotateAfterWaves` and `rotateAfterMs` on topic bindings for automatic
session rotation between acknowledged waves.

## 4. Connect another machine

After mounting the network on this machine, run:

```sh
dealer setup invite-prompt --network <id> --member <self> --name <other-node> --ttl 1h --json
```

With no explicit or configured seeds, invite generation uses the running daemon's
advertised TCP endpoint, or the primary LAN IPv4 plus a configured offline port.
Loopback endpoints are not auto-shared. Use `--seed <reachable-host:port>` when a
VPN/routed address or a headless-relay seed is needed; a linked project's
`onboarding.bootstrapPeers` are reused automatically. TCP seeds require
reachability and do not bypass NAT or firewalls, but a seed also relays frames
and attachments when the machines cannot reach each other directly, so one
relay endpoint is enough for machines on unrelated networks. UDP multicast is
not required between seed-connected peers.

Give `crossMachinePrompt` to the other machine's Agent. See
[onboarding-prompts](references/onboarding-prompts.md). Verify peer discovery
and a reply in both directions. A `dispatched` receipt proves executor handoff,
not task completion. Offline generation can create an invite for an unmounted
network; mount that same invite locally before expecting connectivity.

## 5. Connect a teammate and choose the conversation

Keep incoming work in the durable inbox. Ask for the teammate’s member handle;
replace the generated `teammate` placeholder before starting a new node. Ask for
the Agent App (`orca`, `antigravity`, `antigravity-cli`, `antigravity-app`,
`claude-code`, `claude-app`, `codex`, `codex-cli`, `chatgpt-app`, `chatgpt-dot`,
`grok-bot`) and one mode:
**fixed** (recommended for ongoing collaboration), **wave** (per-wave session tab in a shared stream), **spawn** (independent tasks),
or **inbox-only** (manual processing). Ask only for the selected host's required
selectors: Orca inner agent/workspace; Codex profile/thread; Claude role/session;
Dot agent; Grok targetBot. See [agent-app-matrix](references/agent-app-matrix.md).

For teammates with Lark notifications, follow Step 3's installation,
configuration and login checks by default before applying the preset. Pass
`--notify-lark` to both preset commands and `--project <id>` for a linked project.

Generate `binding-preset`, show its topic, executor and receiver workspace, then
apply with `dealer setup apply-preset --host <host> --mode <mode>` and the same
selectors. Add `--set-default` only when the user wants the node default changed. Grok execution
requires a nonempty targetBot. `--notify-lark` enables both mailbox eligibility
and node notifications immediately. Configure credentials/target separately,
never infer them.
Generate `invite-prompt --peer-member <colleague>` and share `teammatePrompt`.
Built-in profiles default to the open gate; pass `--gate approval_required` to dealer node up / dealer network mount or run `dealer gate mode approval_required` when inbound approval is required. Check
mailbox readback and an actual host receipt before reporting onboarding complete.


### Host profiles and one-command presets

| Environment | Built-in profile | First-class executor |
| --- | --- | --- |
| Orca | `orca-dev` | `orca` (legacy aliases: `orca-spawn`, `orca-wave`) |
| Codex | `codex-dev` | `codex-cli` / `codex` |
| Claude Code | `claude-dev` | `claude-code` |
| Antigravity | `antigravity-dev` | `antigravity-cli` / `antigravity-app` / `orca` (`antigravity` alias) |

All four profiles use the `open` gate and `dedup-cas`; use `--gate approval_required`
or `dealer gate mode approval_required` when approval is required. `orca`, `claude-app`, `chatgpt-app`, `antigravity-app`, `claude-code`, and `codex-cli` support `spawn`, `wave`, `fixed`, and `inbox-only`; standalone `antigravity-cli` supports `spawn` and `inbox-only` (use `orca` or `antigravity-app` for `wave`/`fixed`).

```sh
dealer node up --profile codex-dev --json
dealer setup apply-preset --host codex --mode fixed --session-id <thread> --set-default --json
```

`apply-preset` persists the topic binding (defaulting to the catch-all `'*'` →
`stream:inbox` unless `--topic <name>` is passed), enables required executors and merges
executor settings. It works offline or through the running daemon, taking effect
without a restart. Omit `--set-default` to preserve the node's current default.
`--mode inbox-only` selects durable manual intake. Supported selectors include
`--project`, `--workspace-path`, `--agent`, `--agent-profile`, `--target-bot`,
and `--session-id`; `--notify-lark` enables mailbox eligibility and node notifications,
but does not configure Lark credentials.

For compatibility, `apply-preset` applies the same bindings as `binding-preset`:
`binding-preset` and `apply-preset` emit first-class executors (`orca`, `claude-app`, `chatgpt-app`, `antigravity-app`, `claude-code`, `codex-cli`, `antigravity-cli`, or `inbox` when `--mode inbox-only`) with second-level `mode` (`spawn`, `wave`, `fixed`, `inbox-only`), while preserving backward compatibility for legacy `orca-spawn`, `orca-wave`, `codex`, `antigravity`, and `agent-pty` bindings. `--set-default` selects the named host executor for unbound
messages (or `inbox` for inbox-only). For direct named-executor topic bindings,
use the ready-to-use [host patches](../../examples/user-patches/): `orca.patch.json`,
`codex.patch.json`, `claude-code.patch.json`, and `antigravity.patch.json`.
Start a node with `dealer node up --patch examples/user-patches/codex.patch.json --json`,
or link its topic bindings with `dealer project link <repo> --user-patch <file>`.
Project user patches do not change node-wide profiles; enable the corresponding
profile at node startup. Add receiver-owned workspace paths and real session IDs
when selecting fixed conversations; verify the installed CLI's argv contract.

Files in this skill

  • SKILL.md11.9 KB
  • agents/openai.yaml214 B
  • references/agent-app-matrix.md3.3 KB
  • references/onboarding-prompts.md1.3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.