Mirra

Setup Guide

This guide walks you through setting up the Mirra Claude Code Bridge on your computer.

Prerequisites

Before you begin, make sure you have:

  • Node.js 18+ installed (download)
  • Claude Code CLI installed and working
  • Mirra account — create one free at getmirra.app

Installation

Install the bridge globally via npm:

npm install -g mirra-cc-bridge

First run

Start the bridge with:

mirra-cc-bridge start

If this is your first time, the setup wizard will run automatically:

███╗   ███╗██╗██████╗ ██████╗  █████╗
████╗ ████║██║██╔══██╗██╔══██╗██╔══██╗
██╔████╔██║██║██████╔╝██████╔╝███████║
██║╚██╔╝██║██║██╔══██╗██╔══██╗██╔══██║
██║ ╚═╝ ██║██║██║  ██║██║  ██║██║  ██║
╚═╝     ╚═╝╚═╝╚═╝  ╚═╝╚═╝  ╚═╝╚═╝  ╚═╝
       claude code bridge

Authenticating with Mirra...

  Opening browser...
  ✓ Browser opened

  Waiting for authorization...

Authenticate in browser

Your browser opens automatically to the Mirra sign-in page. Log in with your Mirra account and click Authorize to connect the bridge.

The CLI receives your credentials automatically — no copying API keys.

No browser? Use mirra-cc-bridge configure --manual to enter an API key directly.

Select destination chat

Choose which Mirra chat should receive Claude Code output. You can select an existing chat or create a new group.

Automatic configuration

The wizard automatically:

  • Configures Claude Code hooks — Sends notifications to Mirra when Claude needs input or completes tasks
  • Establishes Mirra Tunnel — Creates a secure connection between your PC and Mirra Cloud
  • Registers your PC — Makes your computer available as a Mirra resource for remote sessions

Once complete, you'll see:

  ✓ Authentication successful!
    Logged in as: you@example.com

[+] Configuration saved
    config: ~/.mirra/cc-bridge.json
    key:    mirra_abc1...xyz9
    dir:    /Users/you/projects
    group:  abc123def456...

[+] Hooks configured
[+] Mirra Tunnel connected
[+] PC registered as resource

> Bridge running. Waiting for sessions...
  Press Ctrl+C to stop

What gets configured

Claude Code hooks

The bridge adds hooks to ~/.claude/settings.json:

  • Notification hook — Fires when Claude has questions, needs approval, or completes work
  • Stop hook — Fires when a Claude Code session ends

These hooks send structured data to the Mirra app, including permission prompt cards and execution details.

Mirra Tunnel

The bridge establishes a secure tunnel to Mirra Cloud automatically. Unlike external tunnel services, Mirra Tunnel:

  • Requires no additional accounts or setup
  • Uses your Mirra API key for authentication
  • Reconnects automatically if the connection drops

Verify it works

  1. With the bridge running, open the Mirra app on your phone

  2. Go to the Extensions tab and check Active Tunnels — you should see your PC listed as connected

  3. Start a conversation and ask Mirra to run a Claude Code task:

    "Start a Claude Code session to check what files are in my project"

  4. Claude's output will appear in the chat with rich execution cards

Commands reference

CommandDescription
mirra-cc-bridge startStart the bridge (runs setup if needed)
mirra-cc-bridge setupRe-run the setup wizard
mirra-cc-bridge configureConfigure API key and settings
mirra-cc-bridge configure --manualUse manual API key entry instead of browser auth
mirra-cc-bridge statusShow current configuration and connection status
mirra-cc-bridge configDisplay configuration details

Configuration file

The bridge stores its configuration in ~/.mirra/cc-bridge.json:

{
  "apiKey": "mirra_...",
  "userId": "user_abc123",
  "groupId": "group_xyz789",
  "defaultWorkDir": "/Users/you/projects",
  "hooksConfigured": true,
  "setupComplete": true
}

Your API key is stored locally and grants access to your Mirra account. Don't share this file or commit it to version control.

Troubleshooting

Browser doesn't open

If the browser doesn't open automatically during setup:

  1. Copy the URL shown in the terminal
  2. Open it manually in your browser
  3. Complete the authorization

Or use manual mode: mirra-cc-bridge configure --manual

Tunnel not connecting

  1. Check your internet connection
  2. Verify your credentials are valid: mirra-cc-bridge status
  3. Try restarting the bridge

Messages not appearing in Mirra

  1. Ensure the bridge is running: mirra-cc-bridge status
  2. Check that hooks are configured:
    cat ~/.claude/settings.json | grep mirra
  3. Verify you're sending to the right chat (check groupId in config)

Authentication failed or expired

Re-run the setup wizard to authenticate again:

mirra-cc-bridge setup

Hooks not being triggered

Claude Code hooks only run in interactive mode. Make sure Claude Code is running directly (not through a script that suppresses hooks).

Next steps

On this page