### Install and setup with interactive picker Source: https://github.com/agentproto/ts/blob/main/packages/plugin-local-browser/README.md Run the setup command to install and configure the local browser plugin. The picker is interactive by default. ```bash npx -y -p @agentproto/plugin-local-browser agentproto-browser setup ``` -------------------------------- ### agentproto setup command examples Source: https://github.com/agentproto/ts/blob/main/docs/cli/verbs/setup.md Common invocations of the setup command: guided, dry-run, unattended with --yes and --skip, and filtering steps with --only. ```bash agentproto setup # guided agentproto setup --dry-run # what would it do? agentproto setup --yes --skip first-run # unattended, no test session agentproto setup --only clients --only skills ``` -------------------------------- ### install and setup commands Source: https://github.com/agentproto/ts/blob/main/packages/cli/README.md Adapter installation with idempotent, force, dry-run, and unverified options; setup re-run with step selection. ```bash agentproto install claude-code # idempotent — skips if version_check passes agentproto install claude-code --force # reinstall regardless agentproto install claude-code --dry-run # print steps, don't execute agentproto install claude-code --allow-unverified # run curl/download installers with no SHA agentproto setup openclaw # re-run adapter setup (env keys, login, …) agentproto setup openclaw --only login # only specific steps ``` -------------------------------- ### Setup output example Source: https://github.com/agentproto/ts/blob/main/docs/cli/verbs/setup.md Example output from running agentproto setup, showing steps, warnings, and a summary line. A failing action is reported and the wizard moves on without aborting later steps. ```text ┌ agentproto setup │ ◆ Preflight │ ◇ Coding clients (MCP) │ ! Windsurf detected, agentproto MCP server not registered │ → fix: agentproto install-mcp --agent windsurf │ ◇ Register the agentproto MCP server with your coding clients — registered with windsurf — restart those clients to pick it up │ │ ✓ Cursor registered in ~/.cursor/mcp.json │ ✓ Windsurf registered in ~/.codeium/windsurf/mcp_config.json │ ◆ Inference endpoints none configured (~/.agentproto/llm-endpoints.json) │ └ 30 ok · 1 warn · 0 missing · 0 broken ``` -------------------------------- ### Manual CLI setup and session commands Source: https://github.com/agentproto/ts/blob/main/README.md Manual installation and usage of the AgentProto CLI. Installs the CLI globally, installs the Claude Code adapter, starts the daemon, starts a session with a prompt, and watches sessions. ```bash npm i -g @agentproto/cli agentproto install claude-code # auto-installs the adapter package too agentproto serve # start the daemon (foreground) agentproto sessions start claude-code --cwd . --prompt "refactor the payments module" agentproto sessions --watch ``` -------------------------------- ### Run the setup wizard with agentproto setup Source: https://github.com/agentproto/ts/blob/main/docs/cli/getting-started.md Initializes a project by checking prerequisites and applying missing configuration. Re-running skips steps that are already fine. Useful flags include --dry-run (show plan, change nothing), --yes (take defaults, unattended, never applies secrets), and --only/--skip . ```bash cd /path/to/your/project agentproto setup ``` -------------------------------- ### Quick start: install adapter, run, serve, and terminal Source: https://github.com/agentproto/ts/blob/main/packages/cli/README.md One-time adapter installation per slug, then one-shot run, daemon serve, and PTY terminal attach. ```bash # 1. Install an adapter (one-time, per slug). npm i -g @agentproto/adapter-claude-code # 2. One-shot: get a single turn back and exit. agentproto run claude-code --cwd . --prompt "summarise this repo" # 3. Daemon: keep the gateway alive so you can drive sessions over HTTP / MCP / WS. agentproto serve & # 4. Spawn a real terminal under PTY and attach to it. agentproto sessions terminal --name claude-tui --attach -- claude ``` -------------------------------- ### Install OpenClaw daemon Source: https://github.com/agentproto/ts/blob/main/adapters/openclaw/OPENCLAW.md Installs and starts the OpenClaw background daemon. This is a one-time per host setup step. ```bash openclaw onboard --install-daemon ``` -------------------------------- ### Adapter install examples Source: https://github.com/agentproto/ts/blob/main/docs/cli/verbs/install.md Examples of installing agent CLI adapters. Resolution tries @agentproto/harness- first, then @agentproto/adapter-; if not importable, it bootstraps via npm i -g. --force reinstalls ignoring version_check, --dry-run prints would-be steps, --skip-setup skips the post-install pipeline. ```bash agentproto install claude-code agentproto install hermes agentproto install opencode --force # reinstall ignoring version_check agentproto install gemini --dry-run # print would-be steps agentproto install goose --skip-setup # install binary, skip post-install pipeline ``` -------------------------------- ### Install an adapter (agentproto install) Source: https://github.com/agentproto/ts/blob/main/docs/cli/concepts/adapters.md Installs an adapter by resolving its npm package and running its install and setup steps. The ledger at ~/.agentproto/setup/.json makes re-runs idempotent; use --force to redo, --dry-run to plan, and --skip-setup to defer configuration. ```bash agentproto install claude-code ``` -------------------------------- ### bureau start command examples Source: https://github.com/agentproto/ts/blob/main/packages/skill-pack-bureau/src/skills/bureau/SKILL.md Shows various ways to start Bureau, orchestrating headless Camofox and bureau serve. Options include detaching, specifying ports, custom Camofox command, and timeout. Camofox command resolution order: --camofox-cmd, $CAMOFOX_SERVE_CMD, launchctl start com.agentik.camofox (macOS). Idempotent: if Camofox is already up, it is not respawned. ```bash bureau start # Camofox :9377 + serve :8830, foreground ``` ```bash bureau start --detach # everything in the background, exit 0 if healthy ``` ```bash bureau start bureau-only # Camofox assumed up, starts just serve ``` ```bash bureau start --port 9000 # bureau serve on :9000 ``` ```bash bureau start --camofox-port 9400 --detach ``` ```bash bureau start --camofox-cmd "camoufox serve --port 9377" --detach ``` ```bash bureau start --timeout 90 # max delay 90 s (default 60) ``` -------------------------------- ### Install skill pack with agentproto install Source: https://github.com/agentproto/ts/blob/main/docs/cli/getting-started.md Lists skills in the pack without writes, then installs it. Without --target, fans out to every installed adapter that declares a metadata.skills block. ```bash # List the skills in the pack, no writes: agentproto install skill/agentproto-pack --list # Install it: agentproto install skill/agentproto-pack ``` -------------------------------- ### Install multiple adapters (hermes, opencode) Source: https://github.com/agentproto/ts/blob/main/docs/cli/verbs/install.md Install additional adapters for hermes and opencode after initial setup. Each command installs a separate adapter. ```bash agentproto install hermes agentproto install opencode ``` -------------------------------- ### Install and run AgentProto CLI with Claude Code adapter Source: https://github.com/agentproto/ts/blob/main/docs/cli/verbs/install.md First-time setup: install the CLI and Claude Code adapter globally, then install the adapter and run it with a prompt. Use for initial configuration. ```bash npm i -g @agentproto/cli @agentproto/adapter-claude-code agentproto install claude-code agentproto run claude-code -p "hello" ``` -------------------------------- ### agentproto setup command examples Source: https://github.com/agentproto/ts/blob/main/docs/cli/verbs/setup.md Shows common invocations of the `agentproto setup` verb: running a fresh setup, re-running a single step with `--only`, forcing all steps with `--force`, and previewing with `--dry-run`. The `--force` flag clears caches and re-prompts secrets; `--dry-run` logs actions without spawning or prompting. ```bash # Run setup for a freshly-installed adapter agentproto setup openclaw # Re-run a single step (e.g. a token expired) agentproto setup openclaw --only configure-token # Force everything (clears caches, re-prompts secrets) agentproto setup openclaw --force # Preview what would happen without spawning agentproto setup openclaw --dry-run ``` -------------------------------- ### agentproto review command examples Source: https://github.com/agentproto/ts/blob/main/docs/cli/verbs/review.md Examples of the `agentproto review` subcommands: `init`, `run`, and `verify`. They demonstrate CI setup, local and headless runs with binding and annotation options, and verification with allowed_signers and signed requirements. ```bash agentproto review init --ci github agentproto review run --binding local --supersede agentproto review run --headless --binding ci --annotate github --pr "$PR_URL" agentproto review verify --if-exported agentproto review verify --allowed-signers .agentproto/allowed_signers --require-signed agentproto review key ``` -------------------------------- ### Install an app by ID Source: https://github.com/agentproto/ts/blob/main/docs/cli/guides/install-apps.md Installs an app from the catalog by its ID. Requires a running daemon (start with `agentproto serve`). The daemon verifies the bundle's digest against the catalog's `sha256`; a failed install leaves any previous install untouched. ```bash agentproto app install @agentik/session-chat ``` -------------------------------- ### Development setup and run (pnpm install, pnpm tauri dev) Source: https://github.com/agentproto/ts/blob/main/packages/desktop/README.md Commands to install dependencies and run the Tauri development server. Requires Rust toolchain (rustup) once. Run from the repo root for pnpm install, then from the package directory for pnpm tauri dev. ```bash pnpm install # one lockfile for the whole ts monorepo # from this package dir: pnpm tauri dev # compiles the Rust core + opens the window ``` -------------------------------- ### Serve the daemon and open the App Store panel Source: https://github.com/agentproto/ts/blob/main/docs/cli/guides/app-store.md Starts the daemon with `agentproto serve` and instructs to open the App Store panel at `http://127.0.0.1:/store` in a browser. The panel is a builtin daemon surface for installing apps without a CLI session. ```bash agentproto serve # then open http://127.0.0.1:/store in a browser ``` -------------------------------- ### Install agentproto CLI and start daemon Source: https://github.com/agentproto/ts/blob/main/packages/vscode/README.md Install the agentproto CLI globally and start the background daemon. Verify it's running on the default endpoint http://127.0.0.1:18790. ```bash npm i -g @agentproto/cli # the `agentproto` command agentproto daemon install # install + start the background daemon agentproto daemon status # verify it's up (default: http://127.0.0.1:18790) ``` -------------------------------- ### Install OpenClaw adapter with agentproto Source: https://github.com/agentproto/ts/blob/main/adapters/openclaw/OPENCLAW.md Installs the OpenClaw adapter and runs post-install onboarding steps. The setup includes install-daemon (skipped if gateway probe succeeds) and ready-check. Re-runs are idempotent; use --force to re-run anyway. ```bash agentproto install openclaw # ↓ install[]: curl https://openclaw.ai/install.sh | bash (or npm) # ↓ setup[]: # • install-daemon — `openclaw onboard --install-daemon` # (skipped when `openclaw gateway probe` succeeds) # • ready-check — `openclaw gateway probe` ``` -------------------------------- ### agent_start with local LM Studio model (controller) Source: https://github.com/agentproto/ts/blob/main/docs/cli/concepts/device-fleet.md Starts an agent on a device host using a local model via the pi adapter. Requires LM Studio lms server start on the host and the pi adapter installed. ```javascript agent_start({ adapter: "pi", model: "lmstudio//", sandbox: "device:", cwd: ... }) ``` -------------------------------- ### Install CLI via npm and check version Source: https://github.com/agentproto/ts/blob/main/docs/cli/getting-started.md Installs the `@agentproto/cli` package globally and prints the installed version. Requires Node.js ≥ 20.9.0. The binary is named `agentproto`; `--help` (no args, or `-h`) prints the full verb list. ```bash npm i -g @agentproto/cli agentproto --version ``` -------------------------------- ### Manual OpenClaw bootstrap without agentproto Source: https://github.com/agentproto/ts/blob/main/adapters/openclaw/OPENCLAW.md Installs OpenClaw, runs onboarding, probes the gateway, and starts the ACP bridge. Use either curl or npm for installation. ```bash curl -fsSL https://openclaw.ai/install.sh | bash # OR npm install -g openclaw@latest openclaw onboard --install-daemon openclaw gateway probe openclaw acp ``` -------------------------------- ### Import start and server from @agentproto/inference-endpoint Source: https://github.com/agentproto/ts/blob/main/packages/inference-endpoint/README.md The package exports `start()` and the underlying `server` for embedding. This example starts the server on port 18090. ```ts import { start } from '@agentproto/inference-endpoint' start(18090) ``` -------------------------------- ### Configure and install the daemon (agentproto daemon install) Source: https://github.com/agentproto/ts/blob/main/docs/cli/verbs/daemon.md Optional configuration commands set daemon workspace, port, allowed origins, tunnel host, autoconnect, and optional E2E encryption. The install command writes the plist, runs launchctl bootout on prior versions, then bootstrap gui/, starting the service immediately via RunAtLoad. Use --dry-run to preview the plist and bootstrap command without touching the filesystem or launchd. ```bash # Optional: configure first agentproto config set daemon.workspace /Users/me/code agentproto config set daemon.port 18791 agentproto config set daemon.allowedOrigins https://guilde.work agentproto config set tunnel.host wss://guilde.work/api/v1/agentproto/tunnel agentproto config set tunnel.autoconnect true # Optional: end-to-end encrypt the tunnel (needs tunnel.token; the host # must also support it, else the daemon falls back to plaintext). agentproto config set tunnel.e2e true agentproto daemon install ``` -------------------------------- ### Run OpenClaw setup standalone Source: https://github.com/agentproto/ts/blob/main/adapters/openclaw/OPENCLAW.md Runs pending setup steps after a --skip-setup install or when adding new steps. Use --only to run a specific step. ```bash agentproto setup openclaw # all pending steps agentproto setup openclaw --only ready-check # one specific step ``` -------------------------------- ### agentproto setup usage Source: https://github.com/agentproto/ts/blob/main/docs/cli/verbs/setup.md Shows the two command forms for agentproto setup: the onboarding wizard (no slug) and adapter setup (with a slug). The wizard runs read-only checks, proposes missing items, and applies accepted changes through existing verbs. The adapter setup re-runs one adapter's AIP-29 setup pipeline. ```text agentproto setup [--yes] [--dry-run] [--json] [--only ...] [--skip ...] agentproto setup [--force] [--dry-run] [--only ]... ``` -------------------------------- ### Quickstart health check and workflow Source: https://github.com/agentproto/ts/blob/main/packages/skill-pack-bureau/src/skills/browser/SKILL.md Shows expected health endpoints and the general workflow for using the browser skill. If health checks fail, start the agentproto server with the given command. ```text health: api 3040 · tunnel 3600 (/internal/forward→401) · daemon 18790 (/health→200) (else: agentproto serve --connect ws://localhost:3600/connect) list_pages → select your tab → navigate/snapshot/evaluate → (data) in-page API fetch ``` -------------------------------- ### agentproto adapters CLI equivalents Source: https://github.com/agentproto/ts/blob/main/packages/skill-pack-agentproto/src/skills/ap-adapters/SKILL.md CLI commands that mirror the adapter API functions: list, show, install, uninstall, enable/disable, plus shorthand install, interactive setup, run, and chat. ```bash agentproto adapters list # = adapter_list agentproto adapters show agentproto adapters install # = adapter_install agentproto adapters uninstall agentproto adapters enable/disable agentproto install # shorthand install agentproto setup # interactive credential/config setup agentproto run # run the adapter directly agentproto chat # interactive chat with a specific adapter ``` -------------------------------- ### Ledger file example Source: https://github.com/agentproto/ts/blob/main/docs/cli/concepts/runtime-profiles.md Example ledger file written after install to ~/.agentproto/profiles/.json. It records per-file outcomes and powers user-edit detection via hashAfter. ```jsonc { "slug": "runtime-profile/standard", "version": "0.1.0", "installedAt": "2026-05-24T01:30:00.000Z", "updatedAt": "2026-05-24T01:30:00.000Z", "files": [ { "dest": ".claude/agents/reviewer.md", "strategy": "overwrite", "hashAfter": "", "appliedAt": "" } ] } ``` -------------------------------- ### agentproto setup successful output Source: https://github.com/agentproto/ts/blob/main/docs/cli/verbs/setup.md Example output from a successful `agentproto setup openclaw` run. Shows step numbering, `skip_if` skipping, masked prompts, command execution, and the final completion message. The ledger is saved incrementally, so completed steps remain recorded across failures. ```text [1/4] cmd/check-credentials ✓ skip_if matched — skipping. [2/4] prompt/api-key Enter your API key [2/4] prompt/api-key $ [3/4] cmd/save-config $ openclaw config set token [4/4] external/oauth-grant opening https://… agentproto: setup for 'openclaw' complete. ``` -------------------------------- ### agentproto mcp-app startup output Source: https://github.com/agentproto/ts/blob/main/docs/cli/verbs/mcp-app.md Example output when the mcp-app starts, showing the number of tools served and the dispatch URL. ```text agentproto mcp-app: serving 6 tool(s) for app "my-book" (dispatching to http://127.0.0.1:18790/apps/my-book/tool-call) ``` -------------------------------- ### Sessions CLI examples: start, terminal, list, watch, stop, export Source: https://github.com/agentproto/ts/blob/main/docs/cli/verbs/sessions.md Collection of CLI commands for managing sessions: start persistent Claude Code session with `--attach`, start orchestrator with `--orchestrator`, spawn PTY-backed REPL with `--name`, list sessions, attach with `--attach`, watch dashboard with `--watch`, stop all sessions via JSON output piped to jq and xargs, and export transcript with `sessions export`. Each command is a separate example. ```bash # Start a persistent Claude Code session and attach agentproto sessions start claude-code --workspace my-app --attach ``` ```bash # Start a scoped orchestrator that can spawn + supervise sub-agents agentproto sessions start claude-code --orchestrator --attach ``` ```bash # Spawn a PTY-backed REPL with a friendly name agentproto sessions terminal --name claude-tui --attach -- claude ``` ```bash # List, peek, detach agentproto sessions agentproto sessions --attach claude-tui # then Ctrl-] q ``` ```bash # Watch the dashboard, drive interactively agentproto sessions --watch ``` ```bash # Stop everything you can find agentproto sessions --json | jq -r '.[].id' | xargs -n1 agentproto sessions stop ``` ```bash # Export a transcript once the session is done agentproto sessions export ses_abc12 -o transcript.md ``` -------------------------------- ### Verified app_install and app_uninstall output Source: https://github.com/agentproto/ts/blob/main/docs/cli/guides/build-your-own-agent-app.md Shows verified terminal output for installing and uninstalling an app against a real local daemon. The install returns the appId, dataDir, agents, and UI; uninstall returns the appId. ```text $ app_install {dir: "/path/to/notes-digest"} → {"appId":"@acme/notes-digest", "dataDir":"/path/to/notes-digest/data", "agents":[…], "ui":{...}} $ app_data_write / app_data_list # (§4 above — both ran against this exact install) $ app_uninstall {appId: "@acme/notes-digest"} → {"appId":"@acme/notes-digest"} ``` -------------------------------- ### agentproto serve boot banner output Source: https://github.com/agentproto/ts/blob/main/docs/cli/verbs/serve.md Example output printed when the agentproto gateway starts. Each line is a sanity check: pty shows whether node-pty was loadable (without it, PTY-backed session routes return 501; install with `npm i -g node-pty`), origins shows STRICT when daemon.strictOrigins=true (an empty strict allowlist is highlighted red and everything 401s except Bearer-token requests), and mode shows local-only or tunnel → (with a · e2e tag when tunnel.e2e is set). ```text ─ agentproto · gateway up · http://127.0.0.1:18790 ─ workspace ~/code/my-project pty enabled (node-pty) origins localhost:* only (default) endpoints /mcp · /sessions · /events · /sessions/:id/pty (WS) · /sessions/:id/terminal/input · /sessions/:id (PATCH) mode tunnel → wss://guilde.work/api/v1/agentproto/tunnel ``` -------------------------------- ### agentproto setup error output Source: https://github.com/agentproto/ts/blob/main/docs/cli/verbs/setup.md Example output when a step fails, halting the pipeline. Shows the step id, failure marker, and the underlying command exit code and message. Already-completed steps stay recorded, so the next run or `--only ` does not re-prompt for them. ```text [2/4] cmd/check-network ✗ failed: cmd exited 7: connection refused ``` -------------------------------- ### agentproto help examples Source: https://github.com/agentproto/ts/blob/main/docs/cli/verbs/help.md Examples of using the agentproto help command. The first retrieves the full documentation for the agent_start tool, while the second retrieves only the section for the 'worktree' field using the --topic flag. ```bash # The whole agent_start doc agentproto help agent_start # Just the `worktree` field's detail agentproto help agent_start --topic worktree ``` -------------------------------- ### Install daemon as background service (macOS/Windows) Source: https://github.com/agentproto/ts/blob/main/docs/cli/getting-started.md Installs the daemon as a background service managed by the OS: launchd plist on macOS, per-user scheduled task at logon on Windows. ```bash agentproto daemon install ``` -------------------------------- ### Build and test from source Source: https://github.com/agentproto/ts/blob/main/README.md Install dependencies, build all packages, and run tests using pnpm. ```bash pnpm install pnpm -r build pnpm -r test ``` -------------------------------- ### agentproto steward CLI usage examples Source: https://github.com/agentproto/ts/blob/main/packages/apps/session-steward/README.md Shows common invocations of the `agentproto steward` command, including classification, analysis, dry runs, custom rules, apply mode, and legacy options. The command installs (upserts) the app and starts the workflow via `workflow_run_file`, passing `AGENTPROTO_SESSION_ID` as `callerSessionId` so a run never judges the session that started it. ```bash agentproto steward # classify: table by action + snapshot id agentproto steward analyze # LLM reasons for the relevant rows agentproto steward act latest # dry run of the default rules agentproto steward act latest --rules my.yaml # …with a custom rules file agentproto steward act latest --apply --only mark-failed,needs-input agentproto steward --apply # one-shot: classify + act agentproto steward --legacy --apply --idle 60 --min-confidence 0.9 --judge agent agentproto steward --legacy --ask-sessions --wait # also ask low-confidence sessions ``` -------------------------------- ### Install from URL, file, git repo, or local folder Source: https://github.com/agentproto/ts/blob/main/docs/cli/guides/install-apps.md Alternative install sources: a bundle URL, a bundle file, a git repo (with optional `--ref`), or a local folder. Git installs never run the app's UI build step unless `--allow-build` is passed, because that runs code from the repo on your machine. ```bash agentproto app install https://example.com/notes-1.2.0.agentapp ``` ```bash agentproto app install ./notes-1.2.0.agentapp ``` ```bash agentproto app install https://github.com/acme/notes --ref main ``` ```bash agentproto app install ./my-app ``` -------------------------------- ### run command examples Source: https://github.com/agentproto/ts/blob/main/packages/cli/README.md One-shot adapter invocation with prompt flag, stdin pipe, resume, and NDJSON output. ```bash # Prompt via flag agentproto run claude-code --cwd . --prompt "what does this repo do?" # Prompt piped over stdin echo "summarise CHANGELOG.md" | agentproto run claude-code # Resume an existing adapter-side protocol session (claude-code session id) agentproto run claude-code --resume # Machine-readable: one event per line as NDJSON agentproto run claude-code --prompt "hi" --json ``` -------------------------------- ### connect() Source: https://github.com/agentproto/ts/blob/main/adapters/mastra-controller/MASTRA-CONTROLLER.md Initializes the controller by reading the manifest, building the controller host, and opening a session in the requested mode. Applies manifest permissions to the session. ```APIDOC ## connect() ### Description Initializes the controller by reading the manifest, building the controller host, and opening a session in the requested mode. Applies manifest permissions to the session. ### Method connect ### Parameters #### Options - **manifest** (string) - Required - Path to the manifest file. - **mode** (string) - Optional - The mode to open the session in. If not provided, uses the `controller_mode` option or the manifest's default mode. ### Response Returns a session object with methods `send`, `events`, `cancel`, `close`, and mode management. ``` -------------------------------- ### Check install with agentproto doctor Source: https://github.com/agentproto/ts/blob/main/docs/cli/getting-started.md Read-only check of the same checklist as the wizard (Node, workspace, daemon, agent harnesses, auth, MCP clients, skills), showing the exact command to fix each gap. Attach `agentproto doctor --json` to bug reports. ```bash agentproto doctor ``` -------------------------------- ### Install @agentproto/cli globally Source: https://github.com/agentproto/ts/blob/main/packages/agentproto-placeholder/README.md Install the real CLI package globally to get the `agentproto` binary on your PATH. ```bash npm install -g @agentproto/cli ``` -------------------------------- ### Install and list adapters with agentproto adapters Source: https://github.com/agentproto/ts/blob/main/docs/cli/concepts/plugins.md Install a plugin package, list installed adapters, and show details for a specific adapter. The `adapters` verb replaced `plugins` in 0.20.0. ```bash agentproto adapters install @guilde/agentproto-bridge agentproto adapters list agentproto adapters show @guilde/agentproto-bridge ``` -------------------------------- ### agent_start with sandbox and cwd (controller) Source: https://github.com/agentproto/ts/blob/main/docs/cli/concepts/device-fleet.md Starts an agent on a device host. sandbox uses the host's fingerprint from devices list; cwd is required and must be an absolute path on the host. ```javascript agent_start({ sandbox: "device:", cwd: "" }) ``` -------------------------------- ### Inspect installed adapters with adapter_list and role_list Source: https://github.com/agentproto/ts/blob/main/packages/skill-pack-agentproto/src/skills/ap-adapters/SKILL.md Use adapter_list to get the static manifest of installed adapters and role_list to see spawn-time roles. role_list shows the lattice before spawning; spawning a role not in it is rejected. ```json adapter_list({}) // → [{ "slug": "claude-code", "version": "0.1.0", "protocol": "acp", ... }, // { "slug": "hermes", ... }] role_list({}) // → spawn-time roles: 'executor' (leaf, cannot delegate), 'supervisor' (may spawn children) ``` -------------------------------- ### makeAdapterWizard Source: https://github.com/agentproto/ts/blob/main/docs/provider-kit.md Creates an interactive CLI wizard that lets users pick an adapter from the catalog and run setup steps. The wizard handles the picker UX and ledger writes, with optional credential storage. ```APIDOC ## makeAdapterWizard ### Description Creates an interactive CLI wizard that lets users pick an adapter from the catalog and run setup steps. The wizard handles the picker UX and ledger writes, with optional credential storage. ### Method Function call ### Endpoint makeAdapterWizard(opts: { catalog: AdapterCatalog resolver: AdapterResolver ledger: SetupLedger credsStore?: CredsStore /** Provide setup steps for a resolved handle. */ getSteps: (handle: THandle) => AdapterWizardStep[] }): { /** Interactive picker: shows a radio list of catalog entries, then * runs setup steps for the chosen slug. Skips ledger-completed * steps unless force=true. */ run(opts?: { force?: boolean; dryRun?: boolean; only?: string[] }): Promise } ### Parameters #### Options - **catalog** (AdapterCatalog) - Required - The adapter catalog to list entries from. - **resolver** (AdapterResolver) - Required - Resolves adapter handles from slugs. - **ledger** (SetupLedger) - Required - Tracks completed setup steps. - **credsStore** (CredsStore) - Optional - Credential store for secrets. - **getSteps** ((handle: THandle) => AdapterWizardStep[]) - Required - Returns setup steps for a resolved handle. ### Return Value Returns an object with a `run` method. #### run Method - **opts** (object) - Optional - Options for the run. - **force** (boolean) - Optional - If true, runs all steps even if ledger-completed. - **dryRun** (boolean) - Optional - If true, does not write to ledger or creds. - **only** (string[]) - Optional - Only run steps with these IDs. - **Returns** (Promise) - Resolves with the number of steps run. ``` -------------------------------- ### Start a persistent session (agentproto sessions start) Source: https://github.com/agentproto/ts/blob/main/docs/cli/concepts/adapters.md Starts a persistent session with the adapter, attaching to the given workspace. ```bash agentproto sessions start claude-code --workspace my-project --attach ``` -------------------------------- ### agentproto adapters CLI Source: https://github.com/agentproto/ts/blob/main/packages/skill-pack-agentproto/src/skills/ap-adapters/SKILL.md Command-line interface for managing adapters on the agentproto daemon. Provides commands to list, show, install, uninstall, enable/disable adapters, plus shorthand install, setup, run, and chat commands. ```APIDOC ## agentproto adapters CLI ### Description Command-line interface for managing adapters on the agentproto daemon. Provides commands to list, show, install, uninstall, enable/disable adapters, plus shorthand install, setup, run, and chat commands. ### Method CLI ### Endpoint agentproto adapters ### Commands - **list** - List installed adapters (equivalent to adapter_list) - **show ** - Show details for a specific adapter - **install ** - Install an adapter (equivalent to adapter_install) - **uninstall ** - Uninstall an adapter - **enable ** - Enable an adapter - **disable ** - Disable an adapter - **install ** - Shorthand install - **setup ** - Interactive credential/config setup - **run ** - Run the adapter directly - **chat ** - Interactive chat with a specific adapter ### Examples ```bash agentproto adapters list agentproto adapters show agentproto adapters install agentproto adapters uninstall agentproto adapters enable/disable agentproto install agentproto setup agentproto run agentproto chat ``` ``` -------------------------------- ### Quickstart: health checks and Voyager fetch flow Source: https://github.com/agentproto/ts/blob/main/packages/skill-pack-bureau/src/skills/linkedin/SKILL.md Run these steps once the browser is free. Check health endpoints (api 3040, tunnel 3600, daemon 18790) or start with agentproto serve --connect ws://localhost:3600/connect. Then navigate any linkedin.com page and call liFetch(voyagerFeedDashMainFeed, …) to get a structured feed. For a person, search + score, build persona, then (gated) reach out. ```text 1. health: api 3040 · tunnel 3600 · daemon 18790 (else: agentproto serve --connect ws://localhost:3600/connect) 2. navigate any linkedin.com page → liFetch(voyagerFeedDashMainFeed, …) → structured feed 3. for a person: search + score → persona.build → (gated) reach out ``` -------------------------------- ### Register a custom substrate via registerSubstrate Source: https://github.com/agentproto/ts/blob/main/packages/agent-runtime/ARCHITECTURE.md Shows how to implement a new substrate and register it through @agentproto/cli/registry/runtime. Users wire it via --plugin on agentproto run-swarm or by listing it under plugins[] in ~/.agentproto/config.json. ```typescript // in your-plugin/src/index.ts import { registerSubstrate } from "@agentproto/cli/registry/runtime" import { MySubstrate } from "./my-substrate.js" registerSubstrate("my-kind", (cfg, ctx) => { return new MySubstrate({ foo: typeof cfg.foo === "string" ? cfg.foo : "default", // … }) }) ``` -------------------------------- ### Start the capability server and check health Source: https://github.com/agentproto/ts/blob/main/packages/skill-pack-bureau/src/skills/bureau/SKILL.md Starts the Bureau daemon (default command) and verifies health. Requires Camofox running on :9377 first. ```bash node dist/index.js [serve] # start the capability server (default cmd) ``` ```bash curl -s http://127.0.0.1:8830/health # {"ok":true,"tools":26} ``` -------------------------------- ### Install and enable the agentproto hermes system-prompt plugin Source: https://github.com/agentproto/ts/blob/main/adapters/hermes/HERMES.md Installs the plugin and enables it, which runs `hermes plugins enable agentproto-system-prompt` via argv (never a shell). Enabling is explicit consent and makes the plugin part of every new hermes session on this machine. The status command shows the installed/enabled state. ```sh agentproto adapters hermes-plugin install --enable agentproto adapters hermes-plugin status # installed / enabled state ``` -------------------------------- ### Full distribution loop: pack, host, install, catalog, resync Source: https://github.com/agentproto/ts/blob/main/docs/cli/guides/distribute-an-app.md Shows the complete workflow for distributing an AgentProto app: pack the app once, host the bundle and catalog on a static host, then consume it anywhere with install, catalog refresh, and resync commands. ```bash # author & publish (once) agentproto app pack ./my-app --release --out ./my-app.agentapp # host my-app.agentapp + catalog.json on any static host # consume (anywhere) app_install { "url": "https://static.example.com/apps/my-app.agentapp" } app_catalog { "refresh": true } # see the remote listing app_resync { "appId": "my-app" } # later: pick up the new bundle ``` -------------------------------- ### Next steps after scaffolding Source: https://github.com/agentproto/ts/blob/main/packages/create-agentproto-app/README.md Commands to run after scaffolding: install dependencies, run the dev server with a bridge proxy at /__agentproto, or build and serve the static output. ```bash cd my-app pnpm install agentproto app dev . # Vite dev server + a bridge proxy at /__agentproto # or, once you're ready to ship the static build: agentproto app build . agentproto app serve . ``` -------------------------------- ### Quick start: runWorkflow with tool and transform steps Source: https://github.com/agentproto/ts/blob/main/packages/workflow-runtime/README.md Defines a tool, driver, and workflow with a tool step and a transform step, then runs it. The output selector returns the transform step's output, which is { n: 42 }. ```ts import { runWorkflow, type RuntimeWorkflow } from "@agentproto/workflow-runtime" import { z } from "zod" import { defineTool } from "@agentproto/tool" import { defineDriver, implementTool } from "@agentproto/driver" const double = defineTool({ id: "demo.double", description: "Double a number.", inputSchema: z.object({ n: z.number() }), outputSchema: z.object({ n: z.number() }), }) const math = defineDriver({ id: "math", name: "Math", description: "arith", kind: "builtin", implements: [{ tool: "demo.double", version: "0.1.0" }], implementations: [implementTool(double, ({ input }) => ({ n: input.n * 2 }))], }) const wf: RuntimeWorkflow = { id: "double-then-add", steps: [ { kind: "tool", id: "d", tool: double, candidates: [math], input: () => ({ n: 21 }) }, { kind: "transform", id: "plus", compute: (b) => ({ n: (b.steps.d as { n: number }).n + 0 }) }, ], output: (b) => b.steps.plus, } const { output, bindings } = await runWorkflow({ workflow: wf }) // output === { n: 42 }; bindings.steps.d === { n: 42 } ``` -------------------------------- ### Example output of provider-preset list Source: https://github.com/agentproto/ts/blob/main/docs/cli/verbs/presets.md Sample table output showing preset ID, status, schema, key env, default model, and base URL. Status reflects the daemon's environment, not the shell. Note that opencode-go and opencode share OPENCODE_API_KEY, so both show ready when the key is set. ```text ID STATUS SCHEMA KEY ENV DEFAULT MODEL BASE URL moonshot ready anthropic MOONSHOT_API_KEY kimi-k2.7-code https://api.moonshot.ai/anthropic openrouter available anthropic OPENROUTER_API_KEY — https://openrouter.ai/api requesty available anthropic REQUESTY_API_KEY — https://router.requesty.ai opencode-go available anthropic OPENCODE_API_KEY minimax-m3 https://opencode.ai/zen/go opencode available anthropic OPENCODE_API_KEY claude-sonnet-4-6 https://opencode.ai/zen deepseek available anthropic DEEPSEEK_API_KEY deepseek-v4-pro https://api.deepseek.com/anthropic xai available openai XAI_API_KEY grok-4.5 http://localhost:18090/v1 xai-anthropic available anthropic XAI_API_KEY grok-4.5 https://api.x.ai llm-endpoint available anthropic LLM_ENDPOINT_ACCESS_TOKENS kimi-k2.7-code http://localhost:18090 openai available openai OPENAI_API_KEY gpt-4.1 http://localhost:18090/v1 openai-direct available openai OPENAI_API_KEY gpt-4.1 https://api.openai.com/v1 mistral available openai MISTRAL_API_KEY mistral-large-latest https://api.mistral.ai/v1 groq available openai GROQ_API_KEY — https://api.groq.com/openai/v1 nebius available openai NEBIUS_API_KEY — https://api.studio.nebius.com/v1 huggingface available openai HF_TOKEN — https://router.huggingface.co/v1 deepinfra available openai DEEPINFRA_API_KEY — https://api.deepinfra.com/v1/openai ``` -------------------------------- ### agentproto daemon command usage Source: https://github.com/agentproto/ts/blob/main/docs/cli/verbs/daemon.md Lists all daemon subcommands: install, uninstall, start, restart, stop, status, and logs. The install command supports --dry-run and logs supports --lines . ```text agentproto daemon install [--dry-run] register service + start it (macOS launchd, Linux systemd --user, Windows Task Scheduler) agentproto daemon uninstall stop + deregister service agentproto daemon start start the service (idempotent; never kills healthy) agentproto daemon restart kill + relaunch agentproto daemon stop stop the service agentproto daemon status installed? running? /health reachable? agentproto daemon logs [--lines ] tail daemon.log ``` -------------------------------- ### Install and run the app with pnpm and agentproto app dev Source: https://github.com/agentproto/ts/blob/main/docs/cli/guides/create-agentproto-app.md Installs dependencies and starts the Vite dev server with a same-origin /__agentproto bridge proxy. The pnpm-workspace.yaml wires ui/ in so one install covers both. Without a daemon running, the dashboard falls back to standaloneTools mocks in ui/src/standalone-tools.ts so the page still renders. ```bash cd my-app pnpm install # pnpm-workspace.yaml wires ui/ in, so one install covers both agentproto app dev . # Vite dev server + a same-origin /__agentproto bridge proxy ``` -------------------------------- ### Install runtime-profile/standard Source: https://github.com/agentproto/ts/blob/main/packages/runtime-profile-standard/README.md Installs the standard file-mode runtime profile into the current repository. Re-runs are idempotent and user edits aren't clobbered without --force. ```bash agentproto install runtime-profile/standard ``` -------------------------------- ### Start a supervisor with --orchestrator-json Source: https://github.com/agentproto/ts/blob/main/docs/cli/guides/fleets.md Starts a supervisor session that can spawn up to 12 children. Requires a running daemon and an installed coding-agent adapter. The prompt instructs the supervisor to spawn workers and wait for them. ```bash agentproto sessions start claude-code \ --cwd ~/code/my-project \ --orchestrator-json '{"maxChildren": 12}' \ --prompt "Split the migration into 10 independent pieces. Spawn one worker per piece with agent_start (role executor, wait false, worktree true). Then wait for them with inbox_wait until pendingChildren is empty. Do not end your turn before that." ``` -------------------------------- ### screencastStart Source: https://github.com/agentproto/ts/blob/main/adapters/browser-chrome/README.md Starts a screencast of the agent's own tab. Options mirror CDP Page.startScreencast and it is idempotent per driver. ```APIDOC ## screencastStart ### Description Starts a screencast of the agent's own tab. Options mirror CDP Page.startScreencast and it is idempotent per driver. ### Method Instance method ### Parameters #### Request Body - `everyNthFrame` (number) - Optional - Frame interval - `quality` (number) - Optional - Quality 1-100 - `format` (string) - Optional - Default 'jpeg' - `maxWidth` (number) - Optional - Maximum width - `maxHeight` (number) - Optional - Maximum height ### Response #### Success Response - `targetId` (string) - Target ID of the tab - `index` (number) - Frame index ### Request Example ```ts const { targetId, index } = await instance.screencastStart({ everyNthFrame: 1, quality: 80 }) ``` ``` -------------------------------- ### Use displayMode controller from window.McpApp Source: https://github.com/agentproto/ts/blob/main/packages/app-client/README.md The bridge installs the display-mode toggle; apps get the controller on window.McpApp.displayMode. Use get() to read the current mode, available() for host-advertised modes, request() to change mode, onChange() to subscribe, and mountToggle() to place an inline button. ```javascript const app = await window.McpApp.connect() app.displayMode.get() // "inline" | "fullscreen" | "pip" app.displayMode.available() // what the host advertises, e.g. ["inline","fullscreen"] await app.displayMode.request("fullscreen") // resolves with the mode actually set app.displayMode.onChange((mode, hostContext) => { /* … */ }) app.displayMode.mountToggle(document.getElementById("my-header")) // inline button ``` -------------------------------- ### agentproto serve (host) Source: https://github.com/agentproto/ts/blob/main/docs/cli/concepts/device-fleet.md Starts the agentproto daemon on the host. The hosted rendezvous broker wss://rdv.agentproto.sh/v1 works out of the box. ```bash agentproto serve ``` -------------------------------- ### agentproto daemon commands Source: https://github.com/agentproto/ts/blob/main/packages/cli/README.md Manage the agentproto CLI as a background service. First set daemon.workspace and daemon.allowedOrigins in config, then install, status, logs, stop, start, restart, and uninstall. install bakes daemon.* config keys into the service argv snapshot; re-run install after config changes. Logs go to ~/.agentproto/daemon.log (stdout+stderr merged). ```bash agentproto config set daemon.workspace ~/code/my-project # one-time agentproto config set daemon.allowedOrigins https://guilde.work agentproto daemon install # write plist + bootstrap agentproto daemon status # plist? loaded? /health probe? agentproto daemon logs --lines 30 # tail ~/.agentproto/daemon.log agentproto daemon stop # SIGTERM agentproto daemon start # kickstart again (idempotent) agentproto daemon restart # kill + relaunch agentproto daemon uninstall # bootout + delete plist ``` -------------------------------- ### Project a tool to AI SDK and Mastra adapters Source: https://github.com/agentproto/ts/blob/main/README.md Shows how to convert a ToolImplementation (greetBuiltin) into Vercel AI SDK and Mastra tool shapes using toAiSdkTool and toMastraTool, with context provided for the AI SDK adapter and source context for Mastra. ```ts import { toAiSdkTool } from "@agentproto/adapter-ai-sdk" import { toMastraTool } from "@agentproto/adapter-mastra" const aiSdkTool = toAiSdkTool(greetBuiltin, { context: { locale: "en" } }) const mastraTool = toMastraTool(greetBuiltin, { source: { context: { locale: "en" } } }) ``` -------------------------------- ### makeSetupLedger Source: https://github.com/agentproto/ts/blob/main/docs/provider-kit.md Creates a setup ledger that tracks which setup steps have been completed for each adapter. Used to skip already-completed steps in wizards. ```APIDOC ## makeSetupLedger ### Description Creates a setup ledger that tracks which setup steps have been completed for each adapter. Used to skip already-completed steps in wizards. ### Method Function call ### Endpoint makeSetupLedger(...) ### Parameters No parameters documented. ### Return Value Returns a SetupLedger instance. ```