Agent-First API
thane exposes a comprehensive JSON-RPC 2.0 API over a Unix domain socket. Claude Code can create workspaces, spawn terminals, split panes, navigate the browser, read audit logs, and manage the task queue — all programmatically.
41 JSON-RPC Methods
Full workspace lifecycle management: create, list, switch, and close workspaces. Spawn terminals, split panes, send input, read output, and manage the browser.
Unix Socket Transport
Zero-latency local IPC over a Unix domain socket. No HTTP overhead, no authentication tokens — just fast, reliable newline-delimited JSON.
CLI Client Included
thane-cli provides a command-line interface to every API method. Pipe JSON, script workflows, or integrate thane into existing toolchains.
Real-Time Notifications
Subscribe to workspace events, terminal output, cost updates, and audit entries. Build reactive Claude Code workflows that respond to terminal state changes.
How it works
thane runs a tokio-powered Unix socket server that accepts JSON-RPC 2.0 requests as newline-delimited JSON. Each method maps to a workspace operation: workspace.create, terminal.spawn, terminal.send_input, browser.navigate, audit.list, queue.submit, and 35 more.
The API follows a resource-oriented naming convention. Terminal operations use terminal.*, browser operations use browser.*, and workspace operations use workspace.*. Every method returns a structured JSON response with consistent error handling.
The included thane-cli binary wraps every API method in a friendly command-line interface. Run `thane-cli workspace list` to see workspaces, `thane-cli terminal send-input --id 1 --text 'cargo test'` to run a command, or pipe JSON directly for scripting. This makes it easy to integrate thane into shell scripts, CI pipelines, or Claude Code workflows.
Use cases
Claude Code orchestration
Build custom Claude Code workflows that create workspaces, run commands, check results, and iterate — all through the API without user interaction.
CI/CD integration
Use thane-cli in your CI pipeline to run Claude Code in sandboxed workspaces, capture results, and enforce security policies programmatically.
Multi-workspace coordination
Run Claude Code across different workspaces, each with its own terminal and browser, coordinated through a single API socket.
Ready to try thane?
Free for personal use. Kernel-level sandboxing, split panes, embedded browser, and a 41-method API — all on your machine.