Pioneer clients talk to a gateway over JSON-RPC 2.0 on a WebSocket connection. The desktop app uses this protocol, and any other client can use the same contract without linking to gateway internals. The protocol reference documents the public surface fromDocumentation Index
Fetch the complete documentation index at: https://docs.getpioneer.dev/llms.txt
Use this file to discover all available pages before exploring further.
crates/protocol. If a method, event, or payload is not exported there, treat it as an implementation detail.
Transport
The default gateway listener is:Authentication
The WebSocket handshake must include a bearer token:401.
The superuser JWT signing material is stored in the gateway keystore. Rotate it with pioneer secrets rotate-jwt-token superuser; existing superuser bearer tokens become invalid and must be reissued.
Request Envelope
Every request uses JSON-RPC2.0. Request ids are strings with exactly 21 characters.
| Code | Meaning |
|---|---|
-32700 | Parse error |
-32600 | Invalid request |
-32601 | Method not found |
-32602 | Invalid params |
error.data with a machine-readable code and details.
Notifications
Notifications are server-to-client JSON-RPC messages without an id. They are how clients observe long-running turns, tool output, task events, MCP status, and skill catalog changes.turn/start returns after the gateway accepts the turn; the assistant response arrives through turn/* and item/* notifications.
Naming Conventions
Method names use slash-separated groups:Schemas
JSON Schemas are generated fromcrates/protocol and written to /schemas. The schema file names use snake_case type names, for example:
/schemas/turn_start_params.json/schemas/thread_tree_response.json/schemas/mcp_install_params.json/schemas/task_create_params.json
Reference Sections
Workspace & Threads
Workspace lookup, thread creation, folders, history, and subscription cleanup.
Turns
Turn submission, cancellation, item events, timeline composition, and streaming notifications.
Providers
Provider listing, model listing, and API key management.
Skills
Skill upload, install, update, uninstall, policy, health, and catalog notifications.
MCP Servers
MCP install config, policy, restart, uninstall, details, runtime status, and catalog notifications.
Tasks
Durable task creation, scheduling, subagents, task trees, waiting, deliveries, and task events.