_ _
| || | _
-| || || |
#### ### ## ## ##### ### ## ## | || || |-
## ## ## ## ## ## ## ## ## ## ## ## \ \_ || |
## ## ## ## # ## ##### ## ## #### | _/
## ## ## ## ## # ## ## ## ## ## ## -| | \
#### ### ## ## ##### ### ## |_|-
An interactive terminal console for the Cowboy blockchain. Lasso wraps the cowboy CLI into a persistent session with project detection, command history, and local state tracking.
brew install cowboyinc/lasso/lasso(The fully-qualified name matters — plain lasso is an unrelated SAML library in homebrew-core.)
Or run from source:
npm install
npm run devLasso connects to mesa, the public Cowboy devnet, by default — no setup required. New to Cowboy? Run /walkthrough for a guided tour of how the system works.
On launch, Lasso checks the current directory for a .cowboy/ project. If none is found, run /init to create one:
/init # mesa, the public devnet (default)
/init local # a node you run yourself
This initializes the project, generates a wallet, requests faucet funds for it, and scaffolds a starter actor. Wallets with a zero balance are automatically topped up from the faucet at launch; /faucet requests more any time.
| Command | Description |
|---|---|
init [mesa|local] |
Initialize project environment (default: mesa) |
walkthrough [n] |
Guided tour of how Cowboy works |
docs [topic] |
Browse bundled Cowboy reference docs |
faucet [address] |
Request devnet CBY (defaults to your wallet) |
help |
Show all available commands |
clear |
Clear the console |
exit |
Quit lasso |
| Command | Description |
|---|---|
actor deploy <file.py> |
Deploy an actor to the chain |
actor execute --actor <a> --handler <h> [--payload <json>] |
Execute an actor handler |
actor get --address <a> |
Get actor details |
actor address --code <f> --creator <c> --salt <s> |
Compute actor address |
actor new <name> |
Scaffold a new actor project |
actor list |
List deployed actors |
actor logs --address <a> |
View actor logs |
| Command | Description |
|---|---|
runner get --address <a> |
Get runner details |
runner list |
List all runners |
runner register --stake <amount> |
Register as a runner |
Lasso runs as a persistent terminal session built with Ink. Commands are parsed locally and dispatched to the cowboy CLI as subprocesses or sent straight to the validator RPC. Some commands have additional behavior:
initextracts the wallet address from the CLI output and tracks it in.cowboy/config.jsonactor deployextracts the actor address and tracks it locallyactor listis a lasso-only command that lists all actors you've deployed from this consolefaucetand the launch-time auto-fund call the validator'sPOST /faucetendpoint directly- plain text goes to the AI actor builder, grounded by a bundled Cowboy knowledge pack (see
/docs) and any localactors/*.pyfiles you reference by path
The status bar at the bottom shows the current network, project status, and wallet address.
Lasso now uses a shared line editor for the command prompt and masked inputs.
Ctrl+A/Ctrl+Emove to the start or end of the lineCtrl+B/Ctrl+For left/right arrows move one characterAlt+B/Alt+Fmove by word when your terminal sends Meta/Option sequencesCtrl+Hor Backspace deletes backwardCtrl+Dor Delete deletes forwardCtrl+Uclears from the cursor back to the start of the lineCtrl+Kclears from the cursor to the end of the lineCtrl+Wdeletes the previous word- Up/down arrows navigate command history in the main prompt
Ctrl+Cclears the line first; pressing it again on an empty prompt exits Lasso
macOS caveats:
Optionshortcuts depend on your terminal being configured to send Meta/Escape sequences. Terminal.app and iTerm2 may need an explicit Option-as-Meta setting forAlt+B/Alt+Fto work.Commandshortcuts are best-effort only. Most terminals keepCommand+Arrowand similar combinations for local UI actions, so Lasso may never receive those key events.
Config is stored at .cowboy/config.json in the project directory (written by cowboy init, shared with the CLI). Per environment:
rpc_url- the target validator endpoint (default:https://rpc.mesa.cowboylabs.net)key_file- wallet key location under.cowboy/keys/dashboard_url- dashboard API base URL (default:https://dashboard.mesa.cowboylabs.net); drives the AI builder and live actor listsrunner_url- OpenAI-compatible runner endpoint; used by the AI builder only whendashboard_urlis set to""actors- deployed actor addresses and labels
Plain-text prompts go to the Cowboy dashboard agent at
https://dashboard.mesa.cowboylabs.net (configurable via dashboard_url
in .cowboy/config.json). The agent generates actor code server-side;
lasso writes it to actors/<name>/main.py and suggests /actor deploy.
To use a direct vLLM runner instead (the pre-0.4 behavior), set
"dashboard_url": "" and point runner_url at your runner.
Business Source License 1.1 — see LICENSE.