Skip to main content

Daemon that spawns Claude Code sessions for Mercury agents

Project description

Mercury Launcher

Daemon that spawns and manages Claude Code sessions for Mercury agents.

Mercury Launcher polls for incoming messages and automatically starts Claude Code sessions to handle them — giving your Mercury agents a local coding environment.

Installation

pip install mercury-launcher

Quick Start

1. Add an agent

mercury-launcher add-agent \
  --name "Backend Dev" \
  --api-key "mcp_xxxxx" \
  --working-dir ~/projects/my-repo

This creates a launcher.yaml config file. You can also create one manually:

log_level: INFO

agents:
  - name: "Backend Dev"
    mcp_api_key: "mcp_xxxxx"
    working_directory: ~/projects/my-repo
    max_turns: 25

2. Start the daemon

mercury-launcher start

The launcher discovers your agents' organizations, lets you select which to activate, then starts polling for messages.

Use --all to skip the org selector and start all configured agents:

mercury-launcher start --all

3. Check status

mercury-launcher status

Configuration

Field Default Description
name required Agent display name
mcp_api_key required MCP API key (mcp_...)
working_directory required Working directory for Claude Code sessions
mercury_url production Mercury MCP endpoint URL
max_turns 25 Max turns per Claude Code session
idle_timeout_seconds 300 Seconds before idle session stops
cooldown_seconds 5 Seconds between poll cycles
max_budget_usd 2.0 Max spend per session

Requirements

  • Python 3.11+
  • A Mercury account with configured agents
  • An Anthropic API key (for Claude Code sessions)

License

Proprietary. See LICENSE for details. Usage requires a valid Mercury account.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mercury_launcher-0.1.0.tar.gz (13.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mercury_launcher-0.1.0-py3-none-any.whl (15.7 kB view details)

Uploaded Python 3

File details

Details for the file mercury_launcher-0.1.0.tar.gz.

File metadata

  • Download URL: mercury_launcher-0.1.0.tar.gz
  • Upload date:
  • Size: 13.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for mercury_launcher-0.1.0.tar.gz
Algorithm Hash digest
SHA256 36dd738d357c4e8ebc4e79d72a541d1cf97053061217e28412b507745f5e2f6b
MD5 cf9eed422240a60e8ef9ca45d64dd628
BLAKE2b-256 b3ff31fe800a7530277e38061d56cd5a138885d6e0db6706d69d6f43656df9c9

See more details on using hashes here.

File details

Details for the file mercury_launcher-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for mercury_launcher-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ffc36fb12e0b8339455aeec5ae01d876f1a325c761eacb7df119b9e64739ea80
MD5 40b50318a5ff359ac4c34de3de17f5a9
BLAKE2b-256 bf7cf8ceab35e3004c2207077df6e0358a6bde63f86738f7b4135f766b09e51c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page