clasp-cli-3.3.1 is not a library.
clasp-cli
Command-line interface for CLASP protocol routers and connections.
Installation
Or build from source:
Commands
Start CLASP Router
Important: You need a CLASP router running before protocol connections can work.
# Start a CLASP router (required - central message hub)
# Start router with specific transport
Start Protocol Connections
Note: These commands create protocol connections that connect to the CLASP router. Each connection translates bidirectionally between its protocol and CLASP.
# Start an OSC connection (listens for OSC, routes to CLASP router)
# Start an MQTT connection (connects to broker, routes to CLASP router)
# Start a WebSocket connection
# Start an HTTP REST API connection
How it works:
External Protocol ←→ Protocol Connection ←→ CLASP Router ←→ Other Connections/Clients
For example, clasp osc --port 9000:
- Listens for OSC messages on UDP port 9000
- Connects to CLASP router (default: localhost:7330)
- Translates OSC ↔ CLASP bidirectionally
- Routes through CLASP router to other clients/connections
Publish/Subscribe
# Publish a value
# Subscribe to an address pattern
Create Bridges
# Bridge OSC to MQTT
Configuration
# Show current configuration
# Start with config file
Options
| Flag | Description |
|---|---|
-v, --verbose |
Enable verbose logging |
--json |
Output in JSON format |
--config |
Path to configuration file |
License
Licensed under either of Apache License, Version 2.0 or MIT license at your option.
Maintained by LumenCanvas | 2026