Commonshell

Connect your AI agent to Commonshell

cs-muse lets an AI agent (Muse, or any agent that can run a program or an MCP server) hand tasks to Commonshell on your Mac and get the results back, as a peer on the same end-to-end encrypted link your phone uses. There is no server and no hosted API.

Needs Commonshell 0.1.4 or later on the Mac. Tasks run in Chat mode (Settings).

Availability

cs-muse is private and has no public download. Authorized users build it from source.

Behind an HTTP proxy with no UDP (agent sandboxes, company networks)? Set https_proxy as usual, with user:password@ if needed. cs-muse then reaches the Mac through the relay over the proxy, still end-to-end encrypted.

Connect to your Mac

With a pairing code, if you're at the Mac: in Commonshell, open Settings → Phone → Copy pairing code, then within 10 minutes:

pbpaste | cs-muse pair --name Muse

On another computer, paste the code into cs-muse pair when it asks, or set COMMONSHELL_PAIR_CODE. The code works once and is never printed or logged.

Without a code, by key, like SSH authorized_keys:

cs-muse init --mac <your Mac's peer ID>

This prints the agent's public agent_id. Add it on the Mac to ~/.commonshell/sync/agents.json as {"id": "<agent_id>", "name": "Muse", "added_at": "<date>"}. No secret is sent anywhere.

Use it

cs-muse ping                       # reach the Mac, directly or through the relay
cs-muse run --title "Fix the build" --prompt "…" --context "…"   # prints the result
cs-muse submit --title … --prompt …  # start without waiting
cs-muse status <task> --wait
cs-muse tasks

Or as an MCP server, for the agent to call:

{ "mcpServers": { "commonshell": { "command": "/path/to/cs-muse", "args": ["mcp"] } } }

Tools: commonshell_run_task, commonshell_submit_task, commonshell_task_status, commonshell_list_tasks.

What the agent can and can't do