@picoxr/pico-cli
v1.0.0
Published
AI toolchain and multi-agent orchestration framework for spatial computing
Keywords
Readme
PICO CLI
@picoxr/pico-cli helps you set up a PICO spatial development project, run apps on a headset or emulator, and debug them from the terminal or an AI coding agent.
Install
Install Node.js 20 or later and npm. Agent setup also uses Git.
Install globally:
npm install -g @picoxr/pico-cliOr run without a global install:
npx @picoxr/pico-cli --helpCheck for updates
Run pico-cli update --check to compare your installed version with the latest version on your
channel. Read the public CLI release notes for new commands, fixes, and migration steps.
When you are ready to upgrade, run pico-cli update. Run
pico-cli --version to verify the installed version.
Quick Start
For development with an AI agent, run pico-cli setup once per user to select your hosts and
install their plugins and toolchains. Run pico-cli doctor to check your environment. In an
existing project, run pico-cli project detect to see its platform and configuration.
If you use npx, replace pico-cli in the examples with npx @picoxr/pico-cli.
Main Command Areas
Find your task below. To see the arguments a command takes, run its help first. For example,
pico-cli app install --help shows how to pass an APK path and select a device.
| Task | Commands to look up |
| ------------------------------------------------------ | ------------------------------------------------------------------------------ |
| Set up an agent, check readiness, or sign in | setup, doctor, auth login, plugin update |
| Create or configure a project and package assets | project create, project configure, project detect, editor pack |
| Find and run a workflow, then read its result | workflow list, workflow describe, workflow start, workflow result read |
| List devices, connect over Wi-Fi, or start an emulator | device list, device connect, emulator doctor, emulator start |
| Install and launch an app or open a URL | app install, app launch, url launch |
| Work with device files or the shell | files ls, files push, shell |
| Debug an app and measure performance | app logcat, log, scene-inspector hierarchy, perf trace |
| Inspect interactions and accessibility | interact query, accessibility runtime-audit, app-function list |
| Inspect the camera or capture a view | camera get, capture screenshot, capture record |
| Find managed tools, knowledge, or ML pipelines | tool list, knowledge doctor, spatialml pipeline search |
| Maintain the installation and privacy settings | update, cleanup, telemetry status |
Run pico-cli --help for the command groups in your installation, or pico-cli --help-all
to include advanced groups. For scripts, check each command's help for its JSON option. Read
the exit code before interpreting stdout. Some usage errors include a recovery command in
errors[].details.helpCommand.
Device, app, App Function, interaction, log snapshot, file stat and Editor status JSON
responses use the tool-result envelope. Read the business payload from data (for example,
data.devices from device list), and check tool_status and errors for the outcome.
| Exit | Meaning | | ---- | ------------------------------------------------------------------------ | | 0 | Success, including cleanup with no applicable targets | | 2 | Invalid usage or missing required confirmation for an unattended command | | 3 | Failed operation or explicit rejection of a confirmation | | 4 | Partial result, or a Workflow wait returning control at a waiting Run |
For pico-cli perf, --format json and --format=json select the same receipt as
--envelope. For trace decode, --format selects the decoded file format and
--envelope requests a separate command receipt. The process returns the Profiler
code in the receipt (0 success, 1 operation failure, 2 argument error).
Interruptions retain their signal exit codes.
Set Up With an AI Agent
To let an AI coding agent install PICO CLI and configure your project, give it the
PICO CLI installation guide.
The guide walks the agent through user-level setup, pico-cli project configure for a Spatial
or Unity project, and verification with pico-cli doctor. Use pico-cli setup --help for the
host choices in your installed version. For Trae, select Trae CLI. Trae IDE cannot load the
plugins installed by setup.
Plugin and MCP Workflows
Choose hosts with the --agent-tool option of pico-cli setup. To refresh their installed
plugins, use pico-cli plugin update.
| Host | --agent-tool | Required application |
| ---------------- | -------------------------------- | ------------------------------------- |
| Claude Code | claude-code (alias claude) | claude |
| Cursor | cursor | Cursor IDE |
| Codex | codex | codex |
| GitHub Copilot | copilot | copilot |
| Trae CLI | traecli (alias traex) | traecli or traex |
| OpenCode V2 | opencode2 | opencode2 or verified V2 opencode |
| CodeBuddy Code | codebuddy | codebuddy |
| Qoder CLI | qoder | qoder |
| Qwen Code | qwen-code (alias qwen) | qwen |
| Antigravity CLI | antigravity | agy |
| Grok CLI | grok | grok |
| DeepSeek Harness | deepseek-harness (alias dsh) | dsh |
| Kimi Code | kimi-code (alias kimi) | kimi |
Pass one or more of these values to --agent-tool, or all for every supported host. The list is the complete set of hosts for the user: a host configured earlier and omitted is removed. A selected host whose required application is missing is reported as failed with a retry command, and that setup run removes no hosts.
If setup, plugin visibility, skill loading, or MCP connectivity is suspect, prefer:
pico-cli doctor --format json
pico-cli knowledge doctor --format jsonInstalled Workflow Packages
Run pico-cli workflow list and choose a name from the output. Replace WORKFLOW_NAME
below with that name. Inspect the input accepted by that package.
pico-cli workflow describe WORKFLOW_NAME --format jsonCreate workflow-input.json using the schema and examples in contracts.input. If the package
requires an agent, check pico-cli workflow start --help for host and model options.
pico-cli workflow start WORKFLOW_NAME --input workflow-input.json --format jsonA STARTED response means the run was accepted. Use the returned runId in place
of RUN_ID to inspect its progress, then read the result once the run reaches a terminal state.
pico-cli workflow run read RUN_ID --format json
pico-cli workflow result read RUN_ID --format jsonIf the run is waiting for input, follow the handoff for that run.
Anonymous Usage Telemetry
To understand which commands are used and where they fail, pico-cli sends
anonymous usage telemetry. It is enabled by default and a one-time
notice is printed the first time an event is recorded.
What is collected is intentionally minimal and non-personal:
- the command name (e.g.
editor.status), whether it succeeded or failed, and how long it took; - a coarse error code on failure (a stable class name, never the message);
- an anonymous, resettable install id, plus your OS, CLI version, and region.
It never collects file paths, command arguments, prompts, credentials, or any personal data.
Manage it any time:
pico-cli telemetry status # show current state and what is collected
pico-cli telemetry inspect # preview pending events locally without network access
pico-cli telemetry disable # turn it off (persisted; drops any queued events)
pico-cli telemetry enable # turn it back on
pico-cli telemetry reset # drop queued events and rotate the anonymous idFor a one-off session, set PICO_CLI_NO_TELEMETRY=1 instead of persisting the
opt-out.
License and Notices
- License: See
LICENSE - Third-party notices:
ThirdPartyNoticeText.txt
