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.
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
- It can submit a task (title, prompt, context) and read the status and result of its own tasks. Nothing else: no other sessions, files, settings or events.
- Each task opens as a tab on your Mac named "Muse: <title>". Claude asks you, on the Mac or your phone, before using tools, as usual. The agent can't answer those prompts.
- The link is QUIC with TLS 1.3, authenticated by each side's key. It goes directly between the two computers when it can, otherwise through a relay that only forwards encrypted packets.
- The agent's private key stays in
~/.config/commonshell-muse/identity.json(readable only by you). To remove an agent, delete its entry from~/.commonshell/sync/agents.jsonon the Mac.