Documentation
40 CLI commands and 41 JSON-RPC methods. Control every aspect of thane — workspaces, terminals, browser panels, sandboxing, and more — from the command line or any language.
Connection
$XDG_RUNTIME_DIR/thane/thane.sock
JSON-RPC 2.0 over newline-delimited JSON on a Unix domain socket.
THANE_WORKSPACE_ID — Current workspace UUID
THANE_SURFACE_ID — Current pane UUID
THANE_SOCKET_PATH — Path to the socket
# Request
{"jsonrpc":"2.0","method":"workspace.create","params":{"title":"My Project"},"id":1}
# Response
{"jsonrpc":"2.0","result":"550e8400-e29b-41d4-a716-446655440000","id":1}CLI Reference
thane-cli is automatically installed when you launch thane. Use it from any terminal to control your workspaces, queue agent tasks, and more.
Installation
thane automatically symlinks thane-cli into ~/.local/bin/ on first launch. Ensure ~/.local/bin is on your PATH.
--socket <PATH> Socket path (default: auto-detected)
env: THANE_SOCKET_PATHSystem
pingCheck if thane is running.
thane-cli ping
system versionShow version information.
thane-cli system version
system configShow current configuration.
thane-cli system config
Workspace
workspace listList all workspaces.
thane-cli workspace list
workspace createCreate a new workspace.
thane-cli workspace create [--title <TITLE>] [--cwd <CWD>]
workspace selectSwitch to a workspace by index.
thane-cli workspace select <INDEX>
workspace closeClose a workspace (active if omitted).
thane-cli workspace close [--id <ID>]
workspace renameRename a workspace.
thane-cli workspace rename <TITLE> [--id <ID>]
workspace infoGet detailed workspace info.
thane-cli workspace info [--id <ID>]
Surface / Pane
surface split-rightSplit the focused pane vertically.
thane-cli surface split-right
surface split-downSplit the focused pane horizontally.
thane-cli surface split-down
surface closeClose the focused pane.
thane-cli surface close
surface focus-nextFocus the next pane.
thane-cli surface focus-next
surface focus-prevFocus the previous pane.
thane-cli surface focus-prev
surface focusFocus a pane by direction.
thane-cli surface focus <up|down|left|right>
surface zoom-toggleToggle pane zoom.
thane-cli surface zoom-toggle
Browser
browser openOpen a URL in a new browser panel.
thane-cli browser open <URL> [--workspace-id <ID>]
browser navigateNavigate an existing browser panel.
thane-cli browser navigate <PANEL_ID> <URL>
browser eval-jsExecute JavaScript in a browser panel.
thane-cli browser eval-js <PANEL_ID> <SCRIPT>
browser clickClick an element by CSS selector.
thane-cli browser click <PANEL_ID> <SELECTOR>
browser type-textType text into an element.
thane-cli browser type-text <PANEL_ID> <SELECTOR> <TEXT>
browser screenshotCapture a screenshot of a browser panel.
thane-cli browser screenshot [--panel-id <ID>] [--full-page]
Agent Queue
queue submitSubmit a task for headless execution. Use "-" to read from stdin.
thane-cli queue submit <FILE> [--priority <N>]
queue listList all tasks in the queue.
thane-cli queue list
queue statusGet the status of a specific task.
thane-cli queue status <ID>
queue cancelCancel a queued or running task.
thane-cli queue cancel <ID>
Sandbox
sandbox statusGet sandbox status for a workspace.
thane-cli sandbox status [--id <ID>]
sandbox enableEnable sandbox for a workspace.
thane-cli sandbox enable [--id <ID>]
sandbox disableDisable sandbox for a workspace.
thane-cli sandbox disable [--id <ID>]
sandbox allowAdd a path to the allowlist.
thane-cli sandbox allow <PATH> [--read-only] [--id <ID>]
sandbox denyAdd a path to the denylist.
thane-cli sandbox deny <PATH> [--id <ID>]
Notifications
notification listList notifications.
thane-cli notification list [--limit <N>]
notification sendSend a notification to a workspace.
thane-cli notification send <TITLE> <BODY> [--workspace-id <ID>]
notification mark-readMark all notifications as read.
thane-cli notification mark-read
notification clearClear all notifications.
thane-cli notification clear
Audit
audit listList recent audit events.
thane-cli audit list [--severity <LEVEL>] [--limit <N>]
audit exportExport all audit events as JSON.
thane-cli audit export [--output <PATH>]
audit clearClear all audit events.
thane-cli audit clear
audit set-policySet the sensitive operation policy.
thane-cli audit set-policy <allow|warn|block> [--id <ID>]
Terminal
terminal screenshotCapture a screenshot of a terminal panel.
thane-cli terminal screenshot [--panel-id <ID>] [--output <PATH>]
JSON-RPC API Reference
For programmatic access from any language. 41 methods over JSON-RPC 2.0 on a Unix domain socket.
System
Health checks, versioning, and configuration.
Workspace
Create, switch, rename, and close workspaces.
Surface / Pane
Split, close, and navigate terminal panes.
Browser
Control the embedded browser panels.
Notifications
Send and manage per-workspace notifications.
Sidebar
Set status entries and read metadata from the sidebar.
Sandbox
Configure per-workspace Landlock sandboxing.
Agent Queue
Submit, monitor, and cancel headless agent tasks.
Audit
Security audit log and sensitive operation policies.